[INFO] fetching crate wolf-crypto-sys 0.1.0-alpha.4...
[INFO] testing wolf-crypto-sys-0.1.0-alpha.4 against 1.100.0-beta.1 for beta-1.100-2
[INFO] extracting crate wolf-crypto-sys 0.1.0-alpha.4 into /workspace/builds/worker-7-tc2/source
[INFO] started tweaking crates.io crate wolf-crypto-sys 0.1.0-alpha.4
[INFO] finished tweaking crates.io crate wolf-crypto-sys 0.1.0-alpha.4
[INFO] tweaked toml for crates.io crate wolf-crypto-sys 0.1.0-alpha.4 written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate wolf-crypto-sys 0.1.0-alpha.4 on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 29 packages to highest compatible versions
[INFO] [stderr]       Adding bindgen v0.70.1 (available: v0.73.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b
[INFO] running `Command { std: "docker" "start" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling unicode-ident v1.0.26
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling glob v0.3.4
[INFO] [stderr]    Compiling libc v0.2.190
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]    Compiling cfg-if v1.0.5
[INFO] [stderr]    Compiling memchr v2.8.3
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling regex-syntax v0.8.11
[INFO] [stderr]    Compiling either v1.19.0
[INFO] [stderr]    Compiling bindgen v0.70.1
[INFO] [stderr]    Compiling log v0.4.34
[INFO] [stderr]    Compiling find-msvc-tools v0.1.14
[INFO] [stderr]    Compiling bitflags v2.13.2
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]    Compiling cc v1.6.0
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]    Compiling clang-sys v1.9.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling syn v2.0.119
[INFO] [stderr]    Compiling regex-automata v0.4.18
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling regex v1.13.1
[INFO] [stderr]    Compiling wolf-crypto-sys v0.1.0-alpha.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:89844
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:90028
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...ore :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:90414
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `memcpy` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:165490
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, *const c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, *const c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "memcpy")]`, or `#[link_name = "memcpy"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `memmove` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:165674
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, *const c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, *const c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "memmove")]`, or `#[link_name = "memmove"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `memset` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:166076
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, i32, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, i32, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "memset")]`, or `#[link_name = "memset"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `memcmp` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:166405
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*const c_void, *const c_void, usize) -> i32` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*const c_void, *const c_void, u64) -> i32`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "memcmp")]`, or `#[link_name = "memcmp"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `strlen` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:171100
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn ...
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*const i8) -> usize` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*const i8) -> u64`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "strlen")]`, or `#[link_name = "strlen"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `bcmp` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:171733
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*const c_void, *const c_void, usize) -> i32` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*const c_void, *const c_void, u64) -> i32`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "bcmp")]`, or `#[link_name = "bcmp"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.28s
[INFO] running `Command { std: "docker" "inspect" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "35b98db8ceba3b704e6c56dd442542fafd1abf0602c3a69b0433954a59998c1b" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:89844
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:90028
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...ore :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/wolf-crypto-sys/d79fec3bcd453d27/out/bindings.rs:3:90414
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 0 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 0 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const _PTHREAD_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u32 = 0 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 1024 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const SIZEOF_LONG : u32 = 8 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const DES_IVLEN : u32 = 8 ; pub const DES_KEYLEN : u32 = 8 ; pub const DES3_IVLEN : u32 = 8 ; pub const DES3_KEYLEN : u32 = 24 ; pub const CHACHA_MATRIX_CNT_IV : u32 = 12 ; pub const CHACHA_IV_WORDS : u32 = 3 ; pub const CHACHA_IV_BYTES : u32 = 12 ; pub const CHACHA_CHUNK_WORDS : u32 = 16 ; pub const WC_POLY1305_PAD_SZ : u32 = 16 ; pub const WC_POLY1305_MAC_SZ : u32 = 16 ; pub const CHACHA20_POLY1305_AEAD_KEYSIZE : u32 = 32 ; pub const CHACHA20_POLY1305_AEAD_IV_SIZE : u32 = 12 ; pub const CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE : u32 = 16 ; pub const CHACHA20_POLY1305_MAX : u32 = 4294967295 ; pub const XCHACHA20_POLY1305_AEAD_NONCE_SIZE : u32 = 24 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SIZEOF_FP_DIGIT : u32 = 8 ; pub const FP_MAX_BITS : u32 = 4096 ; pub const FP_ZPOS : u32 = 0 ; pub const FP_NEG : u32 = 1 ; pub const FP_OKAY : u32 = 0 ; pub const FP_LT : i32 = - 1 ; pub const FP_EQ : u32 = 0 ; pub const FP_GT : u32 = 1 ; pub const FP_YES : u32 = 1 ; pub const FP_NO : u32 = 0 ; pub const FP_PRIME_SIZE : u32 = 256 ; pub const MP_LT : i32 = - 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_GT : u32 = 1 ; pub const MP_OKAY : u32 = 0 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_ZPOS : u32 = 0 ; pub const MP_NEG : u32 = 1 ; pub const MP_RADIX_BIN : u32 = 2 ; pub const MP_RADIX_OCT : u32 = 8 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_RADIX_MAX : u32 = 64 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 1024 ; pub const RSA_MAX_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const DH_MAX_SIZE : u32 = 2048 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const NID_id_GostR3410_2001 : u32 = 811 ; pub const NID_id_GostR3410_2012_256 : u32 = 979 ; pub const NID_id_GostR3410_2012_512 : u32 = 980 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 256 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const CRYPTO_CB_VER : u32 = 2 ; pub const WC_MAX_SYM_KEY_SIZE : u32 = 32 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock () -> clock_t ; } extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } extern "C" { pub fn tzset () ; } extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __unused : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__unused"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __unused) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __pad1 : :: core :: ffi :: c_ulong , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , pub __unused_initialized_1 : :: core :: ffi :: c_uint , pub __unused_initialized_2 : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 16usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 28usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 32usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_1"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_1) - 40usize] ; ["Offset of field: __pthread_cond_s::__unused_initialized_2"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __unused_initialized_2) - 44usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_self () -> pthread_t ; } extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_Ref { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 48usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 8usize] ; ["Offset of field: wolfSSL_Ref::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , mutex) - 0usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 40usize] ; } ; extern "C" { pub fn wolfSSL_RefInit (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefFree (ref_ : * mut wolfSSL_Ref) ; } extern "C" { pub fn wolfSSL_RefInc (ref_ : * mut wolfSSL_Ref , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wolfSSL_RefDec (ref_ : * mut wolfSSL_Ref , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: core :: ffi :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused3 : :: core :: ffi :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: core :: ffi :: c_char ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_short_backupbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _short_backupbuf) - 119usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused3"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused3) - 196usize] ; ["Offset of field: _IO_FILE::_total_written"] [:: core :: mem :: offset_of ! (_IO_FILE , _total_written) - 200usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 208usize] ; } ; impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: core :: ffi :: c_int { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: core :: ffi :: c_int) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: core :: ffi :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: core :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } extern "C" { pub fn getpid () -> __pid_t ; } extern "C" { pub fn getppid () -> __pid_t ; } extern "C" { pub fn getpgrp () -> __pid_t ; } extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } extern "C" { pub fn setsid () -> __pid_t ; } extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } extern "C" { pub fn getuid () -> __uid_t ; } extern "C" { pub fn geteuid () -> __uid_t ; } extern "C" { pub fn getgid () -> __gid_t ; } extern "C" { pub fn getegid () -> __gid_t ; } extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fork () -> __pid_t ; } extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn endusershell () ; } extern "C" { pub fn setusershell () ; } extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } extern "C" { pub fn sync () ; } extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; extern "C" { pub fn mystrnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : :: core :: ffi :: c_uint) -> * mut :: core :: ffi :: c_char ; } pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = * const :: core :: ffi :: c_char ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memmove (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memset_explicit (__s : * mut :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn memcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn strlen (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn bcmp (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1008 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 7 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 19 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 17 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 16 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type THREAD_CB_NOJOIN = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB_NOJOIN , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 4 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } extern "C" { pub fn wolfSSL_Debugging_OFF () ; } extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } pub const WC_SHA256 : _bindgen_ty_20 = 6 ; pub const WC_SHA256_BLOCK_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA256_PAD_SIZE : _bindgen_ty_20 = 56 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 120usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 8usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; } ; extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } pub const WC_SHA224 : _bindgen_ty_21 = 5 ; pub const WC_SHA224_BLOCK_SIZE : _bindgen_ty_21 = 64 ; pub const WC_SHA224_DIGEST_SIZE : _bindgen_ty_21 = 28 ; pub const WC_SHA224_PAD_SIZE : _bindgen_ty_21 = 56 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_uint ; pub type wc_Sha224 = wc_Sha256 ; extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 4usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word32 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 128usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 4usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 59usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub drbg : * mut DRBG , pub drbg_data : DRBG_internal , pub status : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 160usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::drbg"] [:: core :: mem :: offset_of ! (WC_RNG , drbg) - 16usize] ; ["Offset of field: WC_RNG::drbg_data"] [:: core :: mem :: offset_of ! (WC_RNG , drbg_data) - 24usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 152usize] ; } ; extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , b : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , entropy : * const byte , entropySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_MD5 : _bindgen_ty_22 = 3 ; pub const WC_MD5_BLOCK_SIZE : _bindgen_ty_22 = 64 ; pub const WC_MD5_DIGEST_SIZE : _bindgen_ty_22 = 16 ; pub const WC_MD5_PAD_SIZE : _bindgen_ty_22 = 56 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Md5 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 4usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Md5"] [:: core :: mem :: size_of :: < wc_Md5 > () - 104usize] ; ["Alignment of wc_Md5"] [:: core :: mem :: align_of :: < wc_Md5 > () - 8usize] ; ["Offset of field: wc_Md5::buffLen"] [:: core :: mem :: offset_of ! (wc_Md5 , buffLen) - 0usize] ; ["Offset of field: wc_Md5::loLen"] [:: core :: mem :: offset_of ! (wc_Md5 , loLen) - 4usize] ; ["Offset of field: wc_Md5::hiLen"] [:: core :: mem :: offset_of ! (wc_Md5 , hiLen) - 8usize] ; ["Offset of field: wc_Md5::buffer"] [:: core :: mem :: offset_of ! (wc_Md5 , buffer) - 12usize] ; ["Offset of field: wc_Md5::digest"] [:: core :: mem :: offset_of ! (wc_Md5 , digest) - 76usize] ; ["Offset of field: wc_Md5::heap"] [:: core :: mem :: offset_of ! (wc_Md5 , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitMd5 (md5 : * mut wc_Md5) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitMd5_ex (md5 : * mut wc_Md5 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Update (md5 : * mut wc_Md5 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Final (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Free (md5 : * mut wc_Md5) ; } extern "C" { pub fn wc_Md5GetHash (md5 : * mut wc_Md5 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Copy (src : * mut wc_Md5 , dst : * mut wc_Md5) -> :: core :: ffi :: c_int ; } pub const WC_SHA : _bindgen_ty_23 = 4 ; pub const WC_SHA_BLOCK_SIZE : _bindgen_ty_23 = 64 ; pub const WC_SHA_DIGEST_SIZE : _bindgen_ty_23 = 20 ; pub const WC_SHA_PAD_SIZE : _bindgen_ty_23 = 56 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 104usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; } ; extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } pub const WC_SHA512 : _bindgen_ty_24 = 8 ; pub const WC_SHA512_224 : _bindgen_ty_24 = 16 ; pub const WC_SHA512_256 : _bindgen_ty_24 = 17 ; pub const WC_SHA512_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_DIGEST_SIZE : _bindgen_ty_24 = 64 ; pub const WC_SHA512_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : _bindgen_ty_24 = 28 ; pub const WC_SHA512_224_PAD_SIZE : _bindgen_ty_24 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : _bindgen_ty_24 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : _bindgen_ty_24 = 32 ; pub const WC_SHA512_256_PAD_SIZE : _bindgen_ty_24 = 112 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 224usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } pub const WC_SHA384 : _bindgen_ty_25 = 7 ; pub const WC_SHA384_BLOCK_SIZE : _bindgen_ty_25 = 128 ; pub const WC_SHA384_DIGEST_SIZE : _bindgen_ty_25 = 48 ; pub const WC_SHA384_PAD_SIZE : _bindgen_ty_25 = 112 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub type wc_Sha384 = wc_Sha512 ; extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } pub const blake2s_constant_BLAKE2S_BLOCKBYTES : blake2s_constant = 64 ; pub const blake2s_constant_BLAKE2S_OUTBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_KEYBYTES : blake2s_constant = 32 ; pub const blake2s_constant_BLAKE2S_SALTBYTES : blake2s_constant = 8 ; pub const blake2s_constant_BLAKE2S_PERSONALBYTES : blake2s_constant = 8 ; pub type blake2s_constant = :: core :: ffi :: c_uint ; pub const blake2b_constant_BLAKE2B_BLOCKBYTES : blake2b_constant = 128 ; pub const blake2b_constant_BLAKE2B_OUTBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_KEYBYTES : blake2b_constant = 64 ; pub const blake2b_constant_BLAKE2B_SALTBYTES : blake2b_constant = 16 ; pub const blake2b_constant_BLAKE2B_PERSONALBYTES : blake2b_constant = 16 ; pub type blake2b_constant = :: core :: ffi :: c_uint ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : [byte ; 6usize] , pub node_depth : byte , pub inner_length : byte , pub salt : [byte ; 8usize] , pub personal : [byte ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_param"] [:: core :: mem :: size_of :: < __blake2s_param > () - 32usize] ; ["Alignment of __blake2s_param"] [:: core :: mem :: align_of :: < __blake2s_param > () - 1usize] ; ["Offset of field: __blake2s_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2s_param , digest_length) - 0usize] ; ["Offset of field: __blake2s_param::key_length"] [:: core :: mem :: offset_of ! (__blake2s_param , key_length) - 1usize] ; ["Offset of field: __blake2s_param::fanout"] [:: core :: mem :: offset_of ! (__blake2s_param , fanout) - 2usize] ; ["Offset of field: __blake2s_param::depth"] [:: core :: mem :: offset_of ! (__blake2s_param , depth) - 3usize] ; ["Offset of field: __blake2s_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2s_param , leaf_length) - 4usize] ; ["Offset of field: __blake2s_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2s_param , node_offset) - 8usize] ; ["Offset of field: __blake2s_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2s_param , node_depth) - 14usize] ; ["Offset of field: __blake2s_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2s_param , inner_length) - 15usize] ; ["Offset of field: __blake2s_param::salt"] [:: core :: mem :: offset_of ! (__blake2s_param , salt) - 16usize] ; ["Offset of field: __blake2s_param::personal"] [:: core :: mem :: offset_of ! (__blake2s_param , personal) - 24usize] ; } ; pub type blake2s_param = __blake2s_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2s_state { pub h : [word32 ; 8usize] , pub t : [word32 ; 2usize] , pub f : [word32 ; 2usize] , pub buf : [byte ; 128usize] , pub buflen : word32 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2s_state"] [:: core :: mem :: size_of :: < __blake2s_state > () - 181usize] ; ["Alignment of __blake2s_state"] [:: core :: mem :: align_of :: < __blake2s_state > () - 1usize] ; ["Offset of field: __blake2s_state::h"] [:: core :: mem :: offset_of ! (__blake2s_state , h) - 0usize] ; ["Offset of field: __blake2s_state::t"] [:: core :: mem :: offset_of ! (__blake2s_state , t) - 32usize] ; ["Offset of field: __blake2s_state::f"] [:: core :: mem :: offset_of ! (__blake2s_state , f) - 40usize] ; ["Offset of field: __blake2s_state::buf"] [:: core :: mem :: offset_of ! (__blake2s_state , buf) - 48usize] ; ["Offset of field: __blake2s_state::buflen"] [:: core :: mem :: offset_of ! (__blake2s_state , buflen) - 176usize] ; ["Offset of field: __blake2s_state::last_node"] [:: core :: mem :: offset_of ! (__blake2s_state , last_node) - 180usize] ; } ; pub type blake2s_state = __blake2s_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_param { pub digest_length : byte , pub key_length : byte , pub fanout : byte , pub depth : byte , pub leaf_length : word32 , pub node_offset : word64 , pub node_depth : byte , pub inner_length : byte , pub reserved : [byte ; 14usize] , pub salt : [byte ; 16usize] , pub personal : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_param"] [:: core :: mem :: size_of :: < __blake2b_param > () - 64usize] ; ["Alignment of __blake2b_param"] [:: core :: mem :: align_of :: < __blake2b_param > () - 1usize] ; ["Offset of field: __blake2b_param::digest_length"] [:: core :: mem :: offset_of ! (__blake2b_param , digest_length) - 0usize] ; ["Offset of field: __blake2b_param::key_length"] [:: core :: mem :: offset_of ! (__blake2b_param , key_length) - 1usize] ; ["Offset of field: __blake2b_param::fanout"] [:: core :: mem :: offset_of ! (__blake2b_param , fanout) - 2usize] ; ["Offset of field: __blake2b_param::depth"] [:: core :: mem :: offset_of ! (__blake2b_param , depth) - 3usize] ; ["Offset of field: __blake2b_param::leaf_length"] [:: core :: mem :: offset_of ! (__blake2b_param , leaf_length) - 4usize] ; ["Offset of field: __blake2b_param::node_offset"] [:: core :: mem :: offset_of ! (__blake2b_param , node_offset) - 8usize] ; ["Offset of field: __blake2b_param::node_depth"] [:: core :: mem :: offset_of ! (__blake2b_param , node_depth) - 16usize] ; ["Offset of field: __blake2b_param::inner_length"] [:: core :: mem :: offset_of ! (__blake2b_param , inner_length) - 17usize] ; ["Offset of field: __blake2b_param::reserved"] [:: core :: mem :: offset_of ! (__blake2b_param , reserved) - 18usize] ; ["Offset of field: __blake2b_param::salt"] [:: core :: mem :: offset_of ! (__blake2b_param , salt) - 32usize] ; ["Offset of field: __blake2b_param::personal"] [:: core :: mem :: offset_of ! (__blake2b_param , personal) - 48usize] ; } ; pub type blake2b_param = __blake2b_param ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2b_state { pub h : [word64 ; 8usize] , pub t : [word64 ; 2usize] , pub f : [word64 ; 2usize] , pub buf : [byte ; 256usize] , pub buflen : word64 , pub last_node : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2b_state"] [:: core :: mem :: size_of :: < __blake2b_state > () - 361usize] ; ["Alignment of __blake2b_state"] [:: core :: mem :: align_of :: < __blake2b_state > () - 1usize] ; ["Offset of field: __blake2b_state::h"] [:: core :: mem :: offset_of ! (__blake2b_state , h) - 0usize] ; ["Offset of field: __blake2b_state::t"] [:: core :: mem :: offset_of ! (__blake2b_state , t) - 64usize] ; ["Offset of field: __blake2b_state::f"] [:: core :: mem :: offset_of ! (__blake2b_state , f) - 80usize] ; ["Offset of field: __blake2b_state::buf"] [:: core :: mem :: offset_of ! (__blake2b_state , buf) - 96usize] ; ["Offset of field: __blake2b_state::buflen"] [:: core :: mem :: offset_of ! (__blake2b_state , buflen) - 352usize] ; ["Offset of field: __blake2b_state::last_node"] [:: core :: mem :: offset_of ! (__blake2b_state , last_node) - 360usize] ; } ; pub type blake2b_state = __blake2b_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2sp_state { pub S : [[blake2s_state ; 1usize] ; 8usize] , pub R : [blake2s_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2sp_state"] [:: core :: mem :: size_of :: < __blake2sp_state > () - 2145usize] ; ["Alignment of __blake2sp_state"] [:: core :: mem :: align_of :: < __blake2sp_state > () - 1usize] ; ["Offset of field: __blake2sp_state::S"] [:: core :: mem :: offset_of ! (__blake2sp_state , S) - 0usize] ; ["Offset of field: __blake2sp_state::R"] [:: core :: mem :: offset_of ! (__blake2sp_state , R) - 1448usize] ; ["Offset of field: __blake2sp_state::buf"] [:: core :: mem :: offset_of ! (__blake2sp_state , buf) - 1629usize] ; ["Offset of field: __blake2sp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2sp_state , buflen) - 2141usize] ; } ; pub type blake2sp_state = __blake2sp_state ; # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct __blake2bp_state { pub S : [[blake2b_state ; 1usize] ; 4usize] , pub R : [blake2b_state ; 1usize] , pub buf : [byte ; 512usize] , pub buflen : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __blake2bp_state"] [:: core :: mem :: size_of :: < __blake2bp_state > () - 2325usize] ; ["Alignment of __blake2bp_state"] [:: core :: mem :: align_of :: < __blake2bp_state > () - 1usize] ; ["Offset of field: __blake2bp_state::S"] [:: core :: mem :: offset_of ! (__blake2bp_state , S) - 0usize] ; ["Offset of field: __blake2bp_state::R"] [:: core :: mem :: offset_of ! (__blake2bp_state , R) - 1444usize] ; ["Offset of field: __blake2bp_state::buf"] [:: core :: mem :: offset_of ! (__blake2bp_state , buf) - 1805usize] ; ["Offset of field: __blake2bp_state::buflen"] [:: core :: mem :: offset_of ! (__blake2bp_state , buflen) - 2317usize] ; } ; pub type blake2bp_state = __blake2bp_state ; extern "C" { pub fn blake2s_init (S : * mut blake2s_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_key (S : * mut blake2s_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_init_param (S : * mut blake2s_state , P : * const blake2s_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_update (S : * mut blake2s_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s_final (S : * mut blake2s_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init (S : * mut blake2b_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_key (S : * mut blake2b_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_init_param (S : * mut blake2b_state , P : * const blake2b_param) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_update (S : * mut blake2b_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b_final (S : * mut blake2b_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init (S : * mut blake2sp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_init_key (S : * mut blake2sp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_update (S : * mut blake2sp_state , in_ : * const byte , inlen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp_final (S : * mut blake2sp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init (S : * mut blake2bp_state , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_init_key (S : * mut blake2bp_state , outlen : byte , key : * const :: core :: ffi :: c_void , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_update (S : * mut blake2bp_state , in_ : * const byte , inlen : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp_final (S : * mut blake2bp_state , out : * mut byte , outlen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2s (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2b (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2sp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word32 , keylen : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn blake2bp (out : * mut byte , in_ : * const :: core :: ffi :: c_void , key : * const :: core :: ffi :: c_void , outlen : byte , inlen : word64 , keylen : byte) -> :: core :: ffi :: c_int ; } pub const BLAKE2B_ID : _bindgen_ty_26 = 14 ; pub const BLAKE2B_256 : _bindgen_ty_26 = 32 ; pub const BLAKE2S_ID : _bindgen_ty_26 = 15 ; pub const BLAKE2S_256 : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2b { pub S : [blake2b_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2b"] [:: core :: mem :: size_of :: < Blake2b > () - 368usize] ; ["Alignment of Blake2b"] [:: core :: mem :: align_of :: < Blake2b > () - 4usize] ; ["Offset of field: Blake2b::S"] [:: core :: mem :: offset_of ! (Blake2b , S) - 0usize] ; ["Offset of field: Blake2b::digestSz"] [:: core :: mem :: offset_of ! (Blake2b , digestSz) - 364usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Blake2s { pub S : [blake2s_state ; 1usize] , pub digestSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Blake2s"] [:: core :: mem :: size_of :: < Blake2s > () - 188usize] ; ["Alignment of Blake2s"] [:: core :: mem :: align_of :: < Blake2s > () - 4usize] ; ["Offset of field: Blake2s::S"] [:: core :: mem :: offset_of ! (Blake2s , S) - 0usize] ; ["Offset of field: Blake2s::digestSz"] [:: core :: mem :: offset_of ! (Blake2s , digestSz) - 184usize] ; } ; extern "C" { pub fn wc_InitBlake2b (b2b : * mut Blake2b , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2b_WithKey (b2b : * mut Blake2b , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bUpdate (b2b : * mut Blake2b , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2bFinal (b2b : * mut Blake2b , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s (b2s : * mut Blake2s , digestSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitBlake2s_WithKey (b2s : * mut Blake2s , digestSz : word32 , key : * const byte , keylen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sUpdate (b2s : * mut Blake2s , data : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Blake2sFinal (b2s : * mut Blake2s , final_ : * mut byte , requestSz : word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_27 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_27 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_27 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_27 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_27 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_27 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_27 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_27 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_27 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_27 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_27 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_27 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_27 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_27 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_27 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_27 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_27 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_27 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_27 = 72 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 416usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; } ; pub type wc_Shake = wc_Sha3 ; extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } pub const MD4 : _bindgen_ty_28 = 2 ; pub const MD4_BLOCK_SIZE : _bindgen_ty_28 = 64 ; pub const MD4_DIGEST_SIZE : _bindgen_ty_28 = 16 ; pub const MD4_PAD_SIZE : _bindgen_ty_28 = 56 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Md4 { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 4usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Md4"] [:: core :: mem :: size_of :: < Md4 > () - 92usize] ; ["Alignment of Md4"] [:: core :: mem :: align_of :: < Md4 > () - 4usize] ; ["Offset of field: Md4::buffLen"] [:: core :: mem :: offset_of ! (Md4 , buffLen) - 0usize] ; ["Offset of field: Md4::loLen"] [:: core :: mem :: offset_of ! (Md4 , loLen) - 4usize] ; ["Offset of field: Md4::hiLen"] [:: core :: mem :: offset_of ! (Md4 , hiLen) - 8usize] ; ["Offset of field: Md4::digest"] [:: core :: mem :: offset_of ! (Md4 , digest) - 12usize] ; ["Offset of field: Md4::buffer"] [:: core :: mem :: offset_of ! (Md4 , buffer) - 28usize] ; } ; extern "C" { pub fn wc_InitMd4 (md4 : * mut Md4) ; } extern "C" { pub fn wc_Md4Update (md4 : * mut Md4 , data : * const byte , len : word32) ; } extern "C" { pub fn wc_Md4Final (md4 : * mut Md4 , hash : * mut byte) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HashAlg { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 416usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 8usize] ; ["Offset of field: wc_HashAlg::md5"] [:: core :: mem :: offset_of ! (wc_HashAlg , md5) - 0usize] ; ["Offset of field: wc_HashAlg::sha"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha) - 0usize] ; ["Offset of field: wc_HashAlg::sha224"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha224) - 0usize] ; ["Offset of field: wc_HashAlg::sha256"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha256) - 0usize] ; ["Offset of field: wc_HashAlg::sha384"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha384) - 0usize] ; ["Offset of field: wc_HashAlg::sha512"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha512) - 0usize] ; ["Offset of field: wc_HashAlg::sha3"] [:: core :: mem :: offset_of ! (wc_HashAlg , sha3) - 0usize] ; } ; extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Md5Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const RIPEMD : _bindgen_ty_29 = 3 ; pub const RIPEMD_BLOCK_SIZE : _bindgen_ty_29 = 64 ; pub const RIPEMD_DIGEST_SIZE : _bindgen_ty_29 = 20 ; pub const RIPEMD_PAD_SIZE : _bindgen_ty_29 = 56 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RipeMd { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub digest : [word32 ; 5usize] , pub buffer : [word32 ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RipeMd"] [:: core :: mem :: size_of :: < RipeMd > () - 96usize] ; ["Alignment of RipeMd"] [:: core :: mem :: align_of :: < RipeMd > () - 4usize] ; ["Offset of field: RipeMd::buffLen"] [:: core :: mem :: offset_of ! (RipeMd , buffLen) - 0usize] ; ["Offset of field: RipeMd::loLen"] [:: core :: mem :: offset_of ! (RipeMd , loLen) - 4usize] ; ["Offset of field: RipeMd::hiLen"] [:: core :: mem :: offset_of ! (RipeMd , hiLen) - 8usize] ; ["Offset of field: RipeMd::digest"] [:: core :: mem :: offset_of ! (RipeMd , digest) - 12usize] ; ["Offset of field: RipeMd::buffer"] [:: core :: mem :: offset_of ! (RipeMd , buffer) - 32usize] ; } ; extern "C" { pub fn wc_InitRipeMd (ripemd : * mut RipeMd) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdUpdate (ripemd : * mut RipeMd , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RipeMdFinal (ripemd : * mut RipeMd , hash : * mut byte) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 16usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 1usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; } ; extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_30 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_30 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_30 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_30 = 16 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_31 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_31 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_31 = 1 ; pub const AES_BLOCK_SIZE : _bindgen_ty_31 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_31 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_31 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_31 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_31 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_31 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_31 = 13 ; pub const CTR_SZ : _bindgen_ty_31 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_31 = 4 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub gcm : Gcm , pub left : word32 , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 320usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 8usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 248usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 264usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 280usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 288usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 292usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 308usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 312usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 320usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 8usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCtrSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } pub const DES_KEY_SIZE : _bindgen_ty_32 = 8 ; pub const DES3_KEY_SIZE : _bindgen_ty_32 = 24 ; pub const DES_IV_SIZE : _bindgen_ty_32 = 8 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; pub const DES_ENC_TYPE : _bindgen_ty_33 = 8 ; pub const DES3_ENC_TYPE : _bindgen_ty_33 = 7 ; pub const DES_BLOCK_SIZE : _bindgen_ty_33 = 8 ; pub const DES_KS_SIZE : _bindgen_ty_33 = 32 ; pub const DES_ENCRYPTION : _bindgen_ty_33 = 0 ; pub const DES_DECRYPTION : _bindgen_ty_33 = 1 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des { pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub key : [word32 ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des"] [:: core :: mem :: size_of :: < Des > () - 144usize] ; ["Alignment of Des"] [:: core :: mem :: align_of :: < Des > () - 4usize] ; ["Offset of field: Des::reg"] [:: core :: mem :: offset_of ! (Des , reg) - 0usize] ; ["Offset of field: Des::tmp"] [:: core :: mem :: offset_of ! (Des , tmp) - 8usize] ; ["Offset of field: Des::key"] [:: core :: mem :: offset_of ! (Des , key) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Des3 { pub key : [[word32 ; 32usize] ; 3usize] , pub reg : [word32 ; 2usize] , pub tmp : [word32 ; 2usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Des3"] [:: core :: mem :: size_of :: < Des3 > () - 408usize] ; ["Alignment of Des3"] [:: core :: mem :: align_of :: < Des3 > () - 8usize] ; ["Offset of field: Des3::key"] [:: core :: mem :: offset_of ! (Des3 , key) - 0usize] ; ["Offset of field: Des3::reg"] [:: core :: mem :: offset_of ! (Des3 , reg) - 384usize] ; ["Offset of field: Des3::tmp"] [:: core :: mem :: offset_of ! (Des3 , tmp) - 392usize] ; ["Offset of field: Des3::heap"] [:: core :: mem :: offset_of ! (Des3 , heap) - 400usize] ; } ; extern "C" { pub fn wc_Des_SetKey (des : * mut Des , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_SetIV (des : * mut Des , iv : * const byte) ; } extern "C" { pub fn wc_Des_CbcEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_EcbEncrypt (des : * mut Des , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_EcbEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetKey (des : * mut Des3 , key : * const byte , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_SetIV (des : * mut Des3 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecrypt (des : * mut Des3 , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Init (des3 : * mut Des3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3Free (des3 : * mut Des3) ; } pub const ARC4_ENC_TYPE : _bindgen_ty_34 = 4 ; pub const ARC4_STATE_SIZE : _bindgen_ty_34 = 256 ; pub const RC4_KEY_SIZE : _bindgen_ty_34 = 16 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Arc4 { pub x : byte , pub y : byte , pub state : [byte ; 256usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Arc4"] [:: core :: mem :: size_of :: < Arc4 > () - 272usize] ; ["Alignment of Arc4"] [:: core :: mem :: align_of :: < Arc4 > () - 8usize] ; ["Offset of field: Arc4::x"] [:: core :: mem :: offset_of ! (Arc4 , x) - 0usize] ; ["Offset of field: Arc4::y"] [:: core :: mem :: offset_of ! (Arc4 , y) - 1usize] ; ["Offset of field: Arc4::state"] [:: core :: mem :: offset_of ! (Arc4 , state) - 2usize] ; ["Offset of field: Arc4::heap"] [:: core :: mem :: offset_of ! (Arc4 , heap) - 264usize] ; } ; extern "C" { pub fn wc_Arc4Process (arc4 : * mut Arc4 , out : * mut byte , in_ : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4SetKey (arc4 : * mut Arc4 , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Init (arc4 : * mut Arc4 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Arc4Free (arc4 : * mut Arc4) ; } pub const CHACHA_ENC_TYPE : _bindgen_ty_35 = 9 ; pub const CHACHA_MAX_KEY_SZ : _bindgen_ty_35 = 32 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaCha { pub X : [word32 ; 16usize] , pub left : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaCha"] [:: core :: mem :: size_of :: < ChaCha > () - 68usize] ; ["Alignment of ChaCha"] [:: core :: mem :: align_of :: < ChaCha > () - 4usize] ; ["Offset of field: ChaCha::X"] [:: core :: mem :: offset_of ! (ChaCha , X) - 0usize] ; ["Offset of field: ChaCha::left"] [:: core :: mem :: offset_of ! (ChaCha , left) - 64usize] ; } ; extern "C" { # [doc = " IV(nonce) changes with each record\n counter is for what value the block counter should start ... usually 0"] pub fn wc_Chacha_SetIV (ctx : * mut ChaCha , inIv : * const byte , counter : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_Process (ctx : * mut ChaCha , cipher : * mut byte , plain : * const byte , msglen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Chacha_purge_current_block (ctx : * mut ChaCha) ; } extern "C" { pub fn wc_Chacha_SetKey (ctx : * mut ChaCha , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } pub const POLY1305 : _bindgen_ty_36 = 7 ; pub const POLY1305_BLOCK_SIZE : _bindgen_ty_36 = 16 ; pub const POLY1305_DIGEST_SIZE : _bindgen_ty_36 = 16 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Poly1305 { pub r : [word64 ; 3usize] , pub h : [word64 ; 3usize] , pub pad : [word64 ; 2usize] , pub leftover : usize , pub buffer : [:: core :: ffi :: c_uchar ; 16usize] , pub finished : :: core :: ffi :: c_uchar , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Poly1305"] [:: core :: mem :: size_of :: < Poly1305 > () - 96usize] ; ["Alignment of Poly1305"] [:: core :: mem :: align_of :: < Poly1305 > () - 8usize] ; ["Offset of field: Poly1305::r"] [:: core :: mem :: offset_of ! (Poly1305 , r) - 0usize] ; ["Offset of field: Poly1305::h"] [:: core :: mem :: offset_of ! (Poly1305 , h) - 24usize] ; ["Offset of field: Poly1305::pad"] [:: core :: mem :: offset_of ! (Poly1305 , pad) - 48usize] ; ["Offset of field: Poly1305::leftover"] [:: core :: mem :: offset_of ! (Poly1305 , leftover) - 64usize] ; ["Offset of field: Poly1305::buffer"] [:: core :: mem :: offset_of ! (Poly1305 , buffer) - 72usize] ; ["Offset of field: Poly1305::finished"] [:: core :: mem :: offset_of ! (Poly1305 , finished) - 88usize] ; } ; extern "C" { pub fn wc_Poly1305SetKey (poly1305 : * mut Poly1305 , key : * const byte , kySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Update (poly1305 : * mut Poly1305 , m : * const byte , bytes : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305Final (poly1305 : * mut Poly1305 , tag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_Pad (ctx : * mut Poly1305 , lenToPad : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes (ctx : * mut Poly1305 , aadSz : word32 , dataSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_EncodeSizes64 (ctx : * mut Poly1305 , aadSz : word64 , dataSz : word64) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Poly1305_MAC (ctx : * mut Poly1305 , additional : * const byte , addSz : word32 , input : * const byte , sz : word32 , tag : * mut byte , tagSz : word32) -> :: core :: ffi :: c_int ; } pub const CHACHA20_POLY_1305_ENC_TYPE : _bindgen_ty_37 = 8 ; pub const CHACHA20_POLY1305_AEAD_DECRYPT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_AEAD_ENCRYPT : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_INIT : _bindgen_ty_37 = 0 ; pub const CHACHA20_POLY1305_STATE_READY : _bindgen_ty_37 = 1 ; pub const CHACHA20_POLY1305_STATE_AAD : _bindgen_ty_37 = 2 ; pub const CHACHA20_POLY1305_STATE_DATA : _bindgen_ty_37 = 3 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChaChaPoly_Aead { pub chacha : ChaCha , pub poly : Poly1305 , pub aadLen : word32 , pub dataLen : word32 , pub state : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u16 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChaChaPoly_Aead"] [:: core :: mem :: size_of :: < ChaChaPoly_Aead > () - 184usize] ; ["Alignment of ChaChaPoly_Aead"] [:: core :: mem :: align_of :: < ChaChaPoly_Aead > () - 8usize] ; ["Offset of field: ChaChaPoly_Aead::chacha"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , chacha) - 0usize] ; ["Offset of field: ChaChaPoly_Aead::poly"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , poly) - 72usize] ; ["Offset of field: ChaChaPoly_Aead::aadLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , aadLen) - 168usize] ; ["Offset of field: ChaChaPoly_Aead::dataLen"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , dataLen) - 172usize] ; ["Offset of field: ChaChaPoly_Aead::state"] [:: core :: mem :: offset_of ! (ChaChaPoly_Aead , state) - 176usize] ; } ; impl ChaChaPoly_Aead { # [inline] pub fn isEncrypt (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isEncrypt (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isEncrypt : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isEncrypt : u8 = unsafe { :: core :: mem :: transmute (isEncrypt) } ; isEncrypt as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_ChaCha20Poly1305_Encrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inPlaintext : * const byte , inPlaintextLen : word32 , outCiphertext : * mut byte , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Decrypt (inKey : * const byte , inIV : * const byte , inAAD : * const byte , inAADLen : word32 , inCiphertext : * const byte , inCiphertextLen : word32 , inAuthTag : * const byte , outPlaintext : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_CheckTag (authTag : * const byte , authTagChk : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Init (aead : * mut ChaChaPoly_Aead , inKey : * const byte , inIV : * const byte , isEncrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateAad (aead : * mut ChaChaPoly_Aead , inAAD : * const byte , inAADLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_UpdateData (aead : * mut ChaChaPoly_Aead , inData : * const byte , outData : * mut byte , dataLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ChaCha20Poly1305_Final (aead : * mut ChaChaPoly_Aead , outAuthTag : * mut byte) -> :: core :: ffi :: c_int ; } pub type fp_digit = :: core :: ffi :: c_ulonglong ; pub type fp_word = u128 ; pub type fp_sword = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fp_int { pub used : :: core :: ffi :: c_int , pub sign : :: core :: ffi :: c_int , pub dp : [fp_digit ; 72usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fp_int"] [:: core :: mem :: size_of :: < fp_int > () - 584usize] ; ["Alignment of fp_int"] [:: core :: mem :: align_of :: < fp_int > () - 8usize] ; ["Offset of field: fp_int::used"] [:: core :: mem :: offset_of ! (fp_int , used) - 0usize] ; ["Offset of field: fp_int::sign"] [:: core :: mem :: offset_of ! (fp_int , sign) - 4usize] ; ["Offset of field: fp_int::dp"] [:: core :: mem :: offset_of ! (fp_int , dp) - 8usize] ; } ; pub type mp_digit = fp_digit ; pub type mp_word = fp_word ; pub type mp_int = fp_int ; extern "C" { pub fn fp_init (a : * mut fp_int) ; } extern "C" { pub fn fp_zero (a : * mut fp_int) ; } extern "C" { pub fn fp_clear (a : * mut fp_int) ; } extern "C" { pub fn fp_forcezero (a : * mut fp_int) ; } extern "C" { pub fn fp_free (a : * mut fp_int) ; } extern "C" { pub fn fp_set (a : * mut fp_int , b : fp_digit) ; } extern "C" { pub fn fp_set_int (a : * mut fp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_is_bit_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_set_bit (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_copy (a : * const fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_init_copy (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_rshd (a : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_rshb (c : * mut fp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_lshd (a : * mut fp_int , x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_mag (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) ; } extern "C" { pub fn fp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_2expt (a : * mut fp_int , b : :: core :: ffi :: c_int) ; } extern "C" { pub fn fp_mul_2 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div_2 (a : * mut fp_int , b : * mut fp_int) ; } extern "C" { pub fn fp_div_2_mod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_div (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_cmp_d (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_add_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mulmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_submod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_addmod_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqrmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_invmod_mont_ct (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_calc_normalization (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_ex (G : * mut fp_int , X : * mut fp_int , minDigits : :: core :: ffi :: c_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_exptmod_nct (G : * mut fp_int , X : * mut fp_int , P : * mut fp_int , Y : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_count_bits (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_leading_bit (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_unsigned_bin_size (a : * const fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_read_unsigned_bin (a : * mut fp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_len (a : * mut fp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut fp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_add (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn s_fp_sub (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) ; } extern "C" { pub fn fp_mul_comba (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba_small (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba3 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba4 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba6 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba7 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba8 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba9 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba12 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba17 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba20 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba24 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba28 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba32 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba48 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_mul_comba64 (a : * mut fp_int , b : * mut fp_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba_small (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba3 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba4 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba6 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba7 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba8 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba9 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba12 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba17 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba20 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba24 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba28 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba32 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba48 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn fp_sqr_comba64 (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_init_copy (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_clear (a : * mut mp_int) ; } extern "C" { pub fn mp_free (a : * mut mp_int) ; } extern "C" { pub fn mp_forcezero (a : * mut mp_int) ; } extern "C" { pub fn mp_init_multi (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int , e : * mut mp_int , f : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_add_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_d (a : * mut mp_int , b : mp_digit , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mulmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_submod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_addmod_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_invmod_mont_ct (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_ex (g : * mut mp_int , x : * mut mp_int , minDigits : :: core :: ffi :: c_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_exptmod_nct (g : * mut mp_int , x : * mut mp_int , p : * mut mp_int , y : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mul_2d (a : * mut mp_int , b : :: core :: ffi :: c_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_2expt (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int , d : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cmp_d (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_unsigned_bin_size (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_unsigned_bin (a : * mut mp_int , b : * const :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_at_pos (x : :: core :: ffi :: c_int , t : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_to_unsigned_bin_len (a : * mut mp_int , b : * mut :: core :: ffi :: c_uchar , c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sub_d (a : * mut fp_int , b : fp_digit , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_copy (a : * const fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_isodd (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_iszero (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_count_bits (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_leading_bit (a : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_int (a : * mut mp_int , b : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_is_bit_set (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set_bit (a : * mut mp_int , b : mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rshb (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_rshd (a : * mut mp_int , x : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_toradix (a : * mut mp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_radix_size (a : * mut mp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_read_radix (a : * mut mp_int , str_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce (a : * mut fp_int , m : * mut fp_int , mp : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_reduce_ex (a : * mut fp_int , m : * mut fp_int , mp : fp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_setup (a : * mut fp_int , rho : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqr (a : * mut fp_int , b : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_set (a : * mut fp_int , b : fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_sqrmod (a : * mut mp_int , b : * mut mp_int , c : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_montgomery_calc_normalization (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_prime_is_prime_ex (a : * mut mp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct_ex (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int , t : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cond_swap_ct (a : * mut mp_int , b : * mut mp_int , c : :: core :: ffi :: c_int , m : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_cnt_lsb (a : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_div_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int , d : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_2d (a : * mut fp_int , b : :: core :: ffi :: c_int , c : * mut fp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_mod_d (a : * mut fp_int , b : fp_digit , c : * mut fp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_lshd (a : * mut mp_int , b : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_abs (a : * mut mp_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } extern "C" { pub fn get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } extern "C" { pub fn get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const RSA_PUBLIC : _bindgen_ty_38 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_38 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_38 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_38 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_38 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_38 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_38 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_38 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_38 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_38 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_38 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_38 = 62 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_38 = - 1 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 4712usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 584usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 1168usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 1752usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 2336usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 2920usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 3504usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 4088usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 4672usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 4680usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 4688usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 4692usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 4696usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 4704usize] ; } ; extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * mut byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * mut byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaFlattenPublicKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaExportKey (key : * mut RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 1768usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 584usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 1168usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 1752usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 1760usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_39 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_39 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_39 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_39 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_39 = 260 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const DSA_PUBLIC : _bindgen_ty_40 = 0 ; pub const DSA_PRIVATE : _bindgen_ty_40 = 1 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; pub const DSA_160_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_160_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_256_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_256_SIG_SIZE : _bindgen_ty_41 = 64 ; pub const DSA_MIN_HALF_SIZE : _bindgen_ty_41 = 20 ; pub const DSA_MIN_SIG_SIZE : _bindgen_ty_41 = 40 ; pub const DSA_MAX_HALF_SIZE : _bindgen_ty_41 = 32 ; pub const DSA_MAX_SIG_SIZE : _bindgen_ty_41 = 64 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DsaKey { pub p : mp_int , pub q : mp_int , pub g : mp_int , pub y : mp_int , pub x : mp_int , pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DsaKey"] [:: core :: mem :: size_of :: < DsaKey > () - 2936usize] ; ["Alignment of DsaKey"] [:: core :: mem :: align_of :: < DsaKey > () - 8usize] ; ["Offset of field: DsaKey::p"] [:: core :: mem :: offset_of ! (DsaKey , p) - 0usize] ; ["Offset of field: DsaKey::q"] [:: core :: mem :: offset_of ! (DsaKey , q) - 584usize] ; ["Offset of field: DsaKey::g"] [:: core :: mem :: offset_of ! (DsaKey , g) - 1168usize] ; ["Offset of field: DsaKey::y"] [:: core :: mem :: offset_of ! (DsaKey , y) - 1752usize] ; ["Offset of field: DsaKey::x"] [:: core :: mem :: offset_of ! (DsaKey , x) - 2336usize] ; ["Offset of field: DsaKey::type_"] [:: core :: mem :: offset_of ! (DsaKey , type_) - 2920usize] ; ["Offset of field: DsaKey::heap"] [:: core :: mem :: offset_of ! (DsaKey , heap) - 2928usize] ; } ; extern "C" { pub fn wc_InitDsaKey (key : * mut DsaKey) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_InitDsaKey_h (key : * mut DsaKey , h : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDsaKey (key : * mut DsaKey) ; } extern "C" { pub fn wc_DsaSign (digest : * const byte , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaSign_ex (digest : * const byte , digestSz : word32 , out : * mut byte , key : * mut DsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify (digest : * const byte , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaVerify_ex (digest : * const byte , digestSz : word32 , sig : * const byte , key : * mut DsaKey , answer : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDsaPublicKey (output : * mut byte , key : * mut DsaKey , outLen : :: core :: ffi :: c_int , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToPublicDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRaw (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaImportParamsRawCheck (dsa : * mut DsaKey , p : * const :: core :: ffi :: c_char , q : * const :: core :: ffi :: c_char , g : * const :: core :: ffi :: c_char , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportParamsRaw (dsa : * mut DsaKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaExportKeyRaw (dsa : * mut DsaKey , x : * mut byte , xSz : * mut word32 , y : * mut byte , ySz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1_ex (key : * mut byte , keyLen : :: core :: ffi :: c_int , iv : * mut byte , ivLen : :: core :: ffi :: c_int , passwd : * const byte , passwdLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF1 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2_ex (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PBKDF2 (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF (output : * mut byte , passwd : * const byte , pLen : :: core :: ffi :: c_int , salt : * const byte , sLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , typeH : :: core :: ffi :: c_int , purpose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_PBKDF_ex (output : * mut byte , passwd : * const byte , passLen : :: core :: ffi :: c_int , salt : * const byte , saltLen : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , kLen : :: core :: ffi :: c_int , hashType : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_42 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_42 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_42 = 1 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_43 = 14 ; pub const IPAD : _bindgen_ty_43 = 54 ; pub const OPAD : _bindgen_ty_43 = 92 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union wc_HmacHash { pub md5 : wc_Md5 , pub sha : wc_Sha , pub sha224 : wc_Sha224 , pub sha256 : wc_Sha256 , pub sha384 : wc_Sha384 , pub sha512 : wc_Sha512 , pub sha3 : wc_Sha3 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HmacHash"] [:: core :: mem :: size_of :: < wc_HmacHash > () - 416usize] ; ["Alignment of wc_HmacHash"] [:: core :: mem :: align_of :: < wc_HmacHash > () - 8usize] ; ["Offset of field: wc_HmacHash::md5"] [:: core :: mem :: offset_of ! (wc_HmacHash , md5) - 0usize] ; ["Offset of field: wc_HmacHash::sha"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha) - 0usize] ; ["Offset of field: wc_HmacHash::sha224"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha224) - 0usize] ; ["Offset of field: wc_HmacHash::sha256"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha256) - 0usize] ; ["Offset of field: wc_HmacHash::sha384"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha384) - 0usize] ; ["Offset of field: wc_HmacHash::sha512"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha512) - 0usize] ; ["Offset of field: wc_HmacHash::sha3"] [:: core :: mem :: offset_of ! (wc_HmacHash , sha3) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 784usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 8usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 416usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 560usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 704usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 768usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 776usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 777usize] ; } ; extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Decode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } pub const Escaped_WC_STD_ENC : Escaped = 0 ; pub const Escaped_WC_ESC_NL_ENC : Escaped = 1 ; pub const Escaped_WC_NO_NL_ENC : Escaped = 2 ; pub type Escaped = :: core :: ffi :: c_uint ; extern "C" { pub fn Base64_Encode (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_EncodeEsc (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_Encode_NoNl (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn Base64_SkipNewline (in_ : * const byte , inLen : * mut word32 , outJ : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sphincs_key { _unused : [u8 ; 0] , } pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 182 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 183 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 204 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 205 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 184 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 206 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 185 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 98 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 520 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 521 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 522 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 207 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 100 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 209 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 208 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 102 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 523 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 524 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 525 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 526 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 186 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 104 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 667 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 365 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 256 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 106 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 362 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 257 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 210 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 108 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 110 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 211 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_CERTREQ_TYPE : CertType = 9 ; pub const CertType_DSA_TYPE : CertType = 10 ; pub const CertType_ECC_TYPE : CertType = 11 ; pub const CertType_RSA_TYPE : CertType = 12 ; pub const CertType_PUBLICKEY_TYPE : CertType = 13 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 16 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 17 ; pub const CertType_ED25519_TYPE : CertType = 18 ; pub const CertType_ED448_TYPE : CertType = 19 ; pub const CertType_PKCS12_TYPE : CertType = 20 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 21 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_DETECT_CERT_TYPE : CertType = 23 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 24 ; pub const CertType_X942_PARAM_TYPE : CertType = 25 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 27 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 30 ; pub const CertType_SPHINCS_FAST_LEVEL1_TYPE : CertType = 31 ; pub const CertType_SPHINCS_FAST_LEVEL3_TYPE : CertType = 32 ; pub const CertType_SPHINCS_FAST_LEVEL5_TYPE : CertType = 33 ; pub const CertType_SPHINCS_SMALL_LEVEL1_TYPE : CertType = 34 ; pub const CertType_SPHINCS_SMALL_LEVEL3_TYPE : CertType = 35 ; pub const CertType_SPHINCS_SMALL_LEVEL5_TYPE : CertType = 36 ; pub const CertType_ECC_PARAM_TYPE : CertType = 37 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 38 ; pub const CertType_PKCS7_TYPE : CertType = 39 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 517 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 416 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 646 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 648 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 649 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 520 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 658 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 523 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 655 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 524 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 656 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 525 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 657 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 526 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 423 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 424 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 425 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 426 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 427 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 428 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 429 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 430 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 654 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 740 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 256 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 257 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 273 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 276 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 218 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 221 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 225 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL1 : Ctc_SigType = 281 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL3 : Ctc_SigType = 283 ; pub const Ctc_SigType_CTC_SPHINCS_FAST_LEVEL5 : Ctc_SigType = 282 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL1 : Ctc_SigType = 287 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL3 : Ctc_SigType = 285 ; pub const Ctc_SigType_CTC_SPHINCS_SMALL_LEVEL5 : Ctc_SigType = 286 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_44 = 32 ; pub const NAME_SZ : _bindgen_ty_44 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_44 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_44 = 1 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 160usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 32usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 36usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 40usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 44usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 48usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 52usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 56usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 88usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 92usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 124usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 128usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 136usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 144usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaParamsDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer (key : * mut DsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DsaKeyToParamsDer_ex (key : * mut DsaKey , output : * mut byte , inLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_45 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_45 = 1 ; pub const ASN_BEFORE : _bindgen_ty_45 = 0 ; pub const ASN_AFTER : _bindgen_ty_45 = 1 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_MAX_SALT_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_MAX_IV_SIZE : Misc_ASN = 64 ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_DSA_PUB_INTS : Misc_ASN = 4 ; pub const Misc_ASN_DSA_INTS : Misc_ASN = 5 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ENCODED_SIG_SZ : Misc_ASN = 512 ; pub const Misc_ASN_MAX_SIG_SZ : Misc_ASN = 256 ; pub const Misc_ASN_MAX_ALGO_SZ : Misc_ASN = 20 ; pub const Misc_ASN_MAX_LENGTH_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_SHORT_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SEQ_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_SET_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_OCTET_STR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_EXP_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_PRSTR_SZ : Misc_ASN = 6 ; pub const Misc_ASN_MAX_VERSION_SZ : Misc_ASN = 5 ; pub const Misc_ASN_MAX_ENCODED_DIG_ASN_SZ : Misc_ASN = 10 ; pub const Misc_ASN_MAX_ENCODED_DIG_SZ : Misc_ASN = 74 ; pub const Misc_ASN_MAX_RSA_INT_SZ : Misc_ASN = 518 ; pub const Misc_ASN_MAX_DSA_INT_SZ : Misc_ASN = 390 ; pub const Misc_ASN_MAX_DSA_PUBKEY_SZ : Misc_ASN = 1579 ; pub const Misc_ASN_MAX_DSA_PRIVKEY_SZ : Misc_ASN = 1961 ; pub const Misc_ASN_MAX_RSA_E_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_CA_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_SN_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_DER_DIGEST_SZ : Misc_ASN = 100 ; pub const Misc_ASN_MAX_DER_DIGEST_ASN_SZ : Misc_ASN = 36 ; pub const Misc_ASN_MAX_X509_HEADER_SZ : Misc_ASN = 39 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_MAX_PUBLIC_KEY_SZ : Misc_ASN = 1611 ; pub const Misc_ASN_HEADER_ENCRYPTED_KEY_SIZE : Misc_ASN = 0 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const Hash_Sum_MD2h : Hash_Sum = 646 ; pub const Hash_Sum_MD5h : Hash_Sum = 649 ; pub const Hash_Sum_SHAh : Hash_Sum = 88 ; pub const Hash_Sum_SHA224h : Hash_Sum = 417 ; pub const Hash_Sum_SHA256h : Hash_Sum = 414 ; pub const Hash_Sum_SHA384h : Hash_Sum = 415 ; pub const Hash_Sum_SHA512h : Hash_Sum = 416 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 418 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 419 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 420 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 421 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 422 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 423 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 424 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 425 ; pub const Hash_Sum_SM3h : Hash_Sum = 640 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 414 ; pub const Block_Sum_AES128GCMb : Block_Sum = 418 ; pub const Block_Sum_AES128CCMb : Block_Sum = 419 ; pub const Block_Sum_AES192CBCb : Block_Sum = 434 ; pub const Block_Sum_AES192GCMb : Block_Sum = 438 ; pub const Block_Sum_AES192CCMb : Block_Sum = 439 ; pub const Block_Sum_AES256CBCb : Block_Sum = 454 ; pub const Block_Sum_AES256GCMb : Block_Sum = 458 ; pub const Block_Sum_AES256CCMb : Block_Sum = 459 ; pub const Block_Sum_DESb : Block_Sum = 69 ; pub const Block_Sum_DES3b : Block_Sum = 652 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 0 ; pub const Key_Sum_DSAk : Key_Sum = 515 ; pub const Key_Sum_RSAk : Key_Sum = 645 ; pub const Key_Sum_RSAPSSk : Key_Sum = 654 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 651 ; pub const Key_Sum_ECDSAk : Key_Sum = 518 ; pub const Key_Sum_SM2k : Key_Sum = 667 ; pub const Key_Sum_ED25519k : Key_Sum = 256 ; pub const Key_Sum_X25519k : Key_Sum = 254 ; pub const Key_Sum_ED448k : Key_Sum = 257 ; pub const Key_Sum_X448k : Key_Sum = 255 ; pub const Key_Sum_DHk : Key_Sum = 647 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 273 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 276 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 218 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 221 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 225 ; pub const Key_Sum_SPHINCS_FAST_LEVEL1k : Key_Sum = 281 ; pub const Key_Sum_SPHINCS_FAST_LEVEL3k : Key_Sum = 283 ; pub const Key_Sum_SPHINCS_FAST_LEVEL5k : Key_Sum = 282 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL1k : Key_Sum = 287 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL3k : Key_Sum = 285 ; pub const Key_Sum_SPHINCS_SMALL_LEVEL5k : Key_Sum = 286 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 417 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 437 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 457 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 464 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 188 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 189 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 190 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 191 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 660 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 652 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 652 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 653 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 654 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 655 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 426 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 427 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 428 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 429 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 133 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 131 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 145 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 69 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 149 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 128 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 146 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 134 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 129 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 168 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 151 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 144 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 79 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 147 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 150 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 132 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 92 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 753 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 121 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 123 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 1048 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 419 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 265 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 146 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 79 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 116 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 117 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 151 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 71 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 72 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 73 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 74 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 78 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 79 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 91 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 264 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 64 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 24usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub dsa : * mut DsaKey , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 72usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; } ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 32usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 28usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 224usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 96usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 100usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 104usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 108usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 112usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 116usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 120usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 124usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 128usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 132usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 136usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 176usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 216usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 220usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * mut :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 256usize] , pub subject : [:: core :: ffi :: c_char ; 256usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : byte , pub maxPathLen : byte , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * mut :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub nsCertType : byte , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub __bindgen_padding_0 : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 1008usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 36usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 40usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 48usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 56usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 64usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 72usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 80usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 100usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 120usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 128usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 136usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 140usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 141usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 397usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 656usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 664usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 672usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 676usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 680usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 688usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 720usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 728usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 736usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 740usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 744usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 752usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 760usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 768usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 776usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 784usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 788usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 808usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 812usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 832usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 836usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 837usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 838usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 840usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 842usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 848usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 856usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 864usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 872usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 880usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 888usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 896usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 904usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 908usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 912usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 920usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 992usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 996usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub maxPathLen : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * mut :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 10usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit } } extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } extern "C" { pub fn ToTraditional (buffer : * mut byte , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditional_ex (buffer : * mut byte , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , length : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , psw : * const :: core :: ffi :: c_char , pswSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetShortInt (input : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASNTag (input : * const byte , idx : * mut word32 , tag : * mut byte , inputSz : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn StoreDSAParams (arg1 : * mut byte , arg2 : * mut word32 , arg3 : * const mp_int , arg4 : * const mp_int , arg5 : * const mp_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , eccKey : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_NONE : wc_SignatureType = 0 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_ECC : wc_SignatureType = 1 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA : wc_SignatureType = 2 ; pub const wc_SignatureType_WC_SIGNATURE_TYPE_RSA_W_ENC : wc_SignatureType = 3 ; pub type wc_SignatureType = :: core :: ffi :: c_uint ; extern "C" { pub fn wc_SignatureGetSize (sig_type : wc_SignatureType , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerifyHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureVerify (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * const byte , sig_len : word32 , key : * const :: core :: ffi :: c_void , key_len : word32) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerateHash_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , hash_data : * const byte , hash_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_SignatureGenerate_ex (hash_type : wc_HashType , sig_type : wc_SignatureType , data : * const byte , data_len : word32 , sig : * mut byte , sig_len : * mut word32 , key : * const :: core :: ffi :: c_void , key_len : word32 , rng : * mut WC_RNG , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcEncryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_AesCbcDecryptWithKey (out : * mut byte , in_ : * const byte , inSz : word32 , key : * const byte , keySz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcEncryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_Des3_CbcDecryptWithKey (out : * mut byte , in_ : * const byte , sz : word32 , key : * const byte , iv : * const byte) -> :: core :: ffi :: c_int ; } extern "C" { pub fn wc_CryptKey (password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , salt : * mut byte , saltSz : :: core :: ffi :: c_int , iterations : :: core :: ffi :: c_int , id : :: core :: ffi :: c_int , input : * mut byte , length : :: core :: ffi :: c_int , version : :: core :: ffi :: c_int , cbcIv : * mut byte , enc : :: core :: ffi :: c_int , shaOid : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type WOLF_EVENT_FLAG = :: core :: ffi :: c_ushort ; pub const WOLF_EVENT_TYPE_WOLF_EVENT_TYPE_NONE : WOLF_EVENT_TYPE = 0 ; pub type WOLF_EVENT_TYPE = :: core :: ffi :: c_uint ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_READY : WOLF_EVENT_STATE = 0 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_PENDING : WOLF_EVENT_STATE = 1 ; pub const WOLF_EVENT_STATE_WOLF_EVENT_STATE_DONE : WOLF_EVENT_STATE = 2 ; pub type WOLF_EVENT_STATE = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT { pub next : * mut WOLF_EVENT , pub prev : * mut WOLF_EVENT , pub context : * mut :: core :: ffi :: c_void , pub dev : WOLF_EVENT__bindgen_ty_1 , pub threadId : pthread_t , pub ret : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_uint , pub type_ : WOLF_EVENT_TYPE , pub state : WOLF_EVENT_STATE , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLF_EVENT__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLF_EVENT__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLF_EVENT__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLF_EVENT__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLF_EVENT__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT"] [:: core :: mem :: size_of :: < WOLF_EVENT > () - 56usize] ; ["Alignment of WOLF_EVENT"] [:: core :: mem :: align_of :: < WOLF_EVENT > () - 8usize] ; ["Offset of field: WOLF_EVENT::next"] [:: core :: mem :: offset_of ! (WOLF_EVENT , next) - 0usize] ; ["Offset of field: WOLF_EVENT::prev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , prev) - 8usize] ; ["Offset of field: WOLF_EVENT::context"] [:: core :: mem :: offset_of ! (WOLF_EVENT , context) - 16usize] ; ["Offset of field: WOLF_EVENT::dev"] [:: core :: mem :: offset_of ! (WOLF_EVENT , dev) - 24usize] ; ["Offset of field: WOLF_EVENT::threadId"] [:: core :: mem :: offset_of ! (WOLF_EVENT , threadId) - 32usize] ; ["Offset of field: WOLF_EVENT::ret"] [:: core :: mem :: offset_of ! (WOLF_EVENT , ret) - 40usize] ; ["Offset of field: WOLF_EVENT::flags"] [:: core :: mem :: offset_of ! (WOLF_EVENT , flags) - 44usize] ; ["Offset of field: WOLF_EVENT::type_"] [:: core :: mem :: offset_of ! (WOLF_EVENT , type_) - 48usize] ; ["Offset of field: WOLF_EVENT::state"] [:: core :: mem :: offset_of ! (WOLF_EVENT , state) - 52usize] ; } ; pub const WOLF_POLL_FLAGS_WOLF_POLL_FLAG_CHECK_HW : WOLF_POLL_FLAGS = 1 ; pub type WOLF_POLL_FLAGS = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLF_EVENT_QUEUE { pub head : * mut WOLF_EVENT , pub tail : * mut WOLF_EVENT , pub lock : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLF_EVENT_QUEUE"] [:: core :: mem :: size_of :: < WOLF_EVENT_QUEUE > () - 64usize] ; ["Alignment of WOLF_EVENT_QUEUE"] [:: core :: mem :: align_of :: < WOLF_EVENT_QUEUE > () - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::head"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , head) - 0usize] ; ["Offset of field: WOLF_EVENT_QUEUE::tail"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , tail) - 8usize] ; ["Offset of field: WOLF_EVENT_QUEUE::lock"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , lock) - 16usize] ; ["Offset of field: WOLF_EVENT_QUEUE::count"] [:: core :: mem :: offset_of ! (WOLF_EVENT_QUEUE , count) - 56usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , }
[WARN] too much data in the log, truncating it
