| /* Copyright (c) 2014, Google Inc. |
| * |
| * Permission to use, copy, modify, and/or distribute this software for any |
| * purpose with or without fee is hereby granted, provided that the above |
| * copyright notice and this permission notice appear in all copies. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
| * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ |
| |
| #if !defined(IN_STACK_H) |
| #error "Don't include this file directly. Include stack.h." |
| #endif |
| |
| /* ACCESS_DESCRIPTION */ |
| #define sk_ACCESS_DESCRIPTION_new(comp) \ |
| ((STACK_OF(ACCESS_DESCRIPTION) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const ACCESS_DESCRIPTION **a, const ACCESS_DESCRIPTION **b), \ |
| comp))) |
| |
| #define sk_ACCESS_DESCRIPTION_new_null() \ |
| ((STACK_OF(ACCESS_DESCRIPTION) *)sk_new_null()) |
| |
| #define sk_ACCESS_DESCRIPTION_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk)) |
| |
| #define sk_ACCESS_DESCRIPTION_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk)); |
| |
| #define sk_ACCESS_DESCRIPTION_value(sk, i) \ |
| ((ACCESS_DESCRIPTION *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ACCESS_DESCRIPTION) *, sk), (i))) |
| |
| #define sk_ACCESS_DESCRIPTION_set(sk, i, p) \ |
| ((ACCESS_DESCRIPTION *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), (i), \ |
| CHECKED_CAST(void *, ACCESS_DESCRIPTION *, p))) |
| |
| #define sk_ACCESS_DESCRIPTION_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk)) |
| |
| #define sk_ACCESS_DESCRIPTION_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ACCESS_DESCRIPTION *), \ |
| free_func)) |
| |
| #define sk_ACCESS_DESCRIPTION_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(void *, ACCESS_DESCRIPTION *, p), (where)) |
| |
| #define sk_ACCESS_DESCRIPTION_delete(sk, where) \ |
| ((ACCESS_DESCRIPTION *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), (where))) |
| |
| #define sk_ACCESS_DESCRIPTION_delete_ptr(sk, p) \ |
| ((ACCESS_DESCRIPTION *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(void *, ACCESS_DESCRIPTION *, p))) |
| |
| #define sk_ACCESS_DESCRIPTION_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| (out_index), CHECKED_CAST(void *, ACCESS_DESCRIPTION *, p)) |
| |
| #define sk_ACCESS_DESCRIPTION_shift(sk) \ |
| ((ACCESS_DESCRIPTION *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk))) |
| |
| #define sk_ACCESS_DESCRIPTION_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(void *, ACCESS_DESCRIPTION *, p)) |
| |
| #define sk_ACCESS_DESCRIPTION_pop(sk) \ |
| ((ACCESS_DESCRIPTION *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk))) |
| |
| #define sk_ACCESS_DESCRIPTION_dup(sk) \ |
| ((STACK_OF(ACCESS_DESCRIPTION) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ACCESS_DESCRIPTION) *, sk))) |
| |
| #define sk_ACCESS_DESCRIPTION_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk)) |
| |
| #define sk_ACCESS_DESCRIPTION_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ACCESS_DESCRIPTION) *, sk)) |
| |
| #define sk_ACCESS_DESCRIPTION_set_cmp_func(sk, comp) \ |
| ((int (*)(const ACCESS_DESCRIPTION **a, const ACCESS_DESCRIPTION **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const ACCESS_DESCRIPTION **a, \ |
| const ACCESS_DESCRIPTION **b), \ |
| comp))) |
| |
| #define sk_ACCESS_DESCRIPTION_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ACCESS_DESCRIPTION) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ACCESS_DESCRIPTION) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| ACCESS_DESCRIPTION *(*)(ACCESS_DESCRIPTION *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ACCESS_DESCRIPTION *), \ |
| free_func))) |
| |
| /* ASN1_ADB_TABLE */ |
| #define sk_ASN1_ADB_TABLE_new(comp) \ |
| ((STACK_OF(ASN1_ADB_TABLE) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const ASN1_ADB_TABLE **a, const ASN1_ADB_TABLE **b), comp))) |
| |
| #define sk_ASN1_ADB_TABLE_new_null() ((STACK_OF(ASN1_ADB_TABLE) *)sk_new_null()) |
| |
| #define sk_ASN1_ADB_TABLE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk)) |
| |
| #define sk_ASN1_ADB_TABLE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk)); |
| |
| #define sk_ASN1_ADB_TABLE_value(sk, i) \ |
| ((ASN1_ADB_TABLE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_ADB_TABLE) *, sk), (i))) |
| |
| #define sk_ASN1_ADB_TABLE_set(sk, i, p) \ |
| ((ASN1_ADB_TABLE *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), (i), \ |
| CHECKED_CAST(void *, ASN1_ADB_TABLE *, p))) |
| |
| #define sk_ASN1_ADB_TABLE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk)) |
| |
| #define sk_ASN1_ADB_TABLE_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_ADB_TABLE *), free_func)) |
| |
| #define sk_ASN1_ADB_TABLE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_ADB_TABLE *, p), (where)) |
| |
| #define sk_ASN1_ADB_TABLE_delete(sk, where) \ |
| ((ASN1_ADB_TABLE *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), (where))) |
| |
| #define sk_ASN1_ADB_TABLE_delete_ptr(sk, p) \ |
| ((ASN1_ADB_TABLE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_ADB_TABLE *, p))) |
| |
| #define sk_ASN1_ADB_TABLE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), (out_index), \ |
| CHECKED_CAST(void *, ASN1_ADB_TABLE *, p)) |
| |
| #define sk_ASN1_ADB_TABLE_shift(sk) \ |
| ((ASN1_ADB_TABLE *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk))) |
| |
| #define sk_ASN1_ADB_TABLE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_ADB_TABLE *, p)) |
| |
| #define sk_ASN1_ADB_TABLE_pop(sk) \ |
| ((ASN1_ADB_TABLE *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk))) |
| |
| #define sk_ASN1_ADB_TABLE_dup(sk) \ |
| ((STACK_OF(ASN1_ADB_TABLE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_ADB_TABLE) *, sk))) |
| |
| #define sk_ASN1_ADB_TABLE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk)) |
| |
| #define sk_ASN1_ADB_TABLE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_ADB_TABLE) *, sk)) |
| |
| #define sk_ASN1_ADB_TABLE_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_ADB_TABLE **a, const ASN1_ADB_TABLE **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const ASN1_ADB_TABLE **a, \ |
| const ASN1_ADB_TABLE **b), \ |
| comp))) |
| |
| #define sk_ASN1_ADB_TABLE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_ADB_TABLE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_ADB_TABLE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), ASN1_ADB_TABLE *(*)(ASN1_ADB_TABLE *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_ADB_TABLE *), free_func))) |
| |
| /* ASN1_GENERALSTRING */ |
| #define sk_ASN1_GENERALSTRING_new(comp) \ |
| ((STACK_OF(ASN1_GENERALSTRING) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const ASN1_GENERALSTRING **a, const ASN1_GENERALSTRING **b), \ |
| comp))) |
| |
| #define sk_ASN1_GENERALSTRING_new_null() \ |
| ((STACK_OF(ASN1_GENERALSTRING) *)sk_new_null()) |
| |
| #define sk_ASN1_GENERALSTRING_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk)) |
| |
| #define sk_ASN1_GENERALSTRING_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk)); |
| |
| #define sk_ASN1_GENERALSTRING_value(sk, i) \ |
| ((ASN1_GENERALSTRING *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_GENERALSTRING) *, sk), (i))) |
| |
| #define sk_ASN1_GENERALSTRING_set(sk, i, p) \ |
| ((ASN1_GENERALSTRING *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), (i), \ |
| CHECKED_CAST(void *, ASN1_GENERALSTRING *, p))) |
| |
| #define sk_ASN1_GENERALSTRING_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk)) |
| |
| #define sk_ASN1_GENERALSTRING_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_GENERALSTRING *), \ |
| free_func)) |
| |
| #define sk_ASN1_GENERALSTRING_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(void *, ASN1_GENERALSTRING *, p), (where)) |
| |
| #define sk_ASN1_GENERALSTRING_delete(sk, where) \ |
| ((ASN1_GENERALSTRING *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), (where))) |
| |
| #define sk_ASN1_GENERALSTRING_delete_ptr(sk, p) \ |
| ((ASN1_GENERALSTRING *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(void *, ASN1_GENERALSTRING *, p))) |
| |
| #define sk_ASN1_GENERALSTRING_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| (out_index), CHECKED_CAST(void *, ASN1_GENERALSTRING *, p)) |
| |
| #define sk_ASN1_GENERALSTRING_shift(sk) \ |
| ((ASN1_GENERALSTRING *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk))) |
| |
| #define sk_ASN1_GENERALSTRING_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(void *, ASN1_GENERALSTRING *, p)) |
| |
| #define sk_ASN1_GENERALSTRING_pop(sk) \ |
| ((ASN1_GENERALSTRING *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk))) |
| |
| #define sk_ASN1_GENERALSTRING_dup(sk) \ |
| ((STACK_OF(ASN1_GENERALSTRING) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_GENERALSTRING) *, sk))) |
| |
| #define sk_ASN1_GENERALSTRING_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk)) |
| |
| #define sk_ASN1_GENERALSTRING_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_GENERALSTRING) *, sk)) |
| |
| #define sk_ASN1_GENERALSTRING_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_GENERALSTRING **a, const ASN1_GENERALSTRING **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const ASN1_GENERALSTRING **a, \ |
| const ASN1_GENERALSTRING **b), \ |
| comp))) |
| |
| #define sk_ASN1_GENERALSTRING_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_GENERALSTRING) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_GENERALSTRING) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| ASN1_GENERALSTRING *(*)(ASN1_GENERALSTRING *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_GENERALSTRING *), \ |
| free_func))) |
| |
| /* ASN1_INTEGER */ |
| #define sk_ASN1_INTEGER_new(comp) \ |
| ((STACK_OF(ASN1_INTEGER) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const ASN1_INTEGER **a, const ASN1_INTEGER **b), \ |
| comp))) |
| |
| #define sk_ASN1_INTEGER_new_null() ((STACK_OF(ASN1_INTEGER) *)sk_new_null()) |
| |
| #define sk_ASN1_INTEGER_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk)) |
| |
| #define sk_ASN1_INTEGER_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk)); |
| |
| #define sk_ASN1_INTEGER_value(sk, i) \ |
| ((ASN1_INTEGER *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_INTEGER) *, sk), (i))) |
| |
| #define sk_ASN1_INTEGER_set(sk, i, p) \ |
| ((ASN1_INTEGER *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), (i), \ |
| CHECKED_CAST(void *, ASN1_INTEGER *, p))) |
| |
| #define sk_ASN1_INTEGER_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk)) |
| |
| #define sk_ASN1_INTEGER_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_INTEGER *), free_func)) |
| |
| #define sk_ASN1_INTEGER_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(void *, ASN1_INTEGER *, p), (where)) |
| |
| #define sk_ASN1_INTEGER_delete(sk, where) \ |
| ((ASN1_INTEGER *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), (where))) |
| |
| #define sk_ASN1_INTEGER_delete_ptr(sk, p) \ |
| ((ASN1_INTEGER *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(void *, ASN1_INTEGER *, p))) |
| |
| #define sk_ASN1_INTEGER_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), (out_index), \ |
| CHECKED_CAST(void *, ASN1_INTEGER *, p)) |
| |
| #define sk_ASN1_INTEGER_shift(sk) \ |
| ((ASN1_INTEGER *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk))) |
| |
| #define sk_ASN1_INTEGER_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(void *, ASN1_INTEGER *, p)) |
| |
| #define sk_ASN1_INTEGER_pop(sk) \ |
| ((ASN1_INTEGER *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk))) |
| |
| #define sk_ASN1_INTEGER_dup(sk) \ |
| ((STACK_OF(ASN1_INTEGER) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_INTEGER) *, sk))) |
| |
| #define sk_ASN1_INTEGER_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk)) |
| |
| #define sk_ASN1_INTEGER_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_INTEGER) *, sk)) |
| |
| #define sk_ASN1_INTEGER_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_INTEGER **a, const ASN1_INTEGER **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const ASN1_INTEGER **a, const ASN1_INTEGER **b), \ |
| comp))) |
| |
| #define sk_ASN1_INTEGER_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_INTEGER) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_INTEGER) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), ASN1_INTEGER *(*)(ASN1_INTEGER *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_INTEGER *), free_func))) |
| |
| /* ASN1_OBJECT */ |
| #define sk_ASN1_OBJECT_new(comp) \ |
| ((STACK_OF(ASN1_OBJECT) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const ASN1_OBJECT **a, const ASN1_OBJECT **b), \ |
| comp))) |
| |
| #define sk_ASN1_OBJECT_new_null() ((STACK_OF(ASN1_OBJECT) *)sk_new_null()) |
| |
| #define sk_ASN1_OBJECT_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk)) |
| |
| #define sk_ASN1_OBJECT_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk)); |
| |
| #define sk_ASN1_OBJECT_value(sk, i) \ |
| ((ASN1_OBJECT *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_OBJECT) *, sk), (i))) |
| |
| #define sk_ASN1_OBJECT_set(sk, i, p) \ |
| ((ASN1_OBJECT *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| (i), CHECKED_CAST(void *, ASN1_OBJECT *, p))) |
| |
| #define sk_ASN1_OBJECT_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk)) |
| |
| #define sk_ASN1_OBJECT_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_OBJECT *), free_func)) |
| |
| #define sk_ASN1_OBJECT_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(void *, ASN1_OBJECT *, p), (where)) |
| |
| #define sk_ASN1_OBJECT_delete(sk, where) \ |
| ((ASN1_OBJECT *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), (where))) |
| |
| #define sk_ASN1_OBJECT_delete_ptr(sk, p) \ |
| ((ASN1_OBJECT *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(void *, ASN1_OBJECT *, p))) |
| |
| #define sk_ASN1_OBJECT_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), (out_index), \ |
| CHECKED_CAST(void *, ASN1_OBJECT *, p)) |
| |
| #define sk_ASN1_OBJECT_shift(sk) \ |
| ((ASN1_OBJECT *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk))) |
| |
| #define sk_ASN1_OBJECT_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(void *, ASN1_OBJECT *, p)) |
| |
| #define sk_ASN1_OBJECT_pop(sk) \ |
| ((ASN1_OBJECT *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk))) |
| |
| #define sk_ASN1_OBJECT_dup(sk) \ |
| ((STACK_OF(ASN1_OBJECT) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_OBJECT) *, sk))) |
| |
| #define sk_ASN1_OBJECT_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk)) |
| |
| #define sk_ASN1_OBJECT_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_OBJECT) *, sk)) |
| |
| #define sk_ASN1_OBJECT_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_OBJECT **a, const ASN1_OBJECT **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const ASN1_OBJECT **a, const ASN1_OBJECT **b), \ |
| comp))) |
| |
| #define sk_ASN1_OBJECT_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_OBJECT) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_OBJECT) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), ASN1_OBJECT *(*)(ASN1_OBJECT *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_OBJECT *), free_func))) |
| |
| /* ASN1_STRING_TABLE */ |
| #define sk_ASN1_STRING_TABLE_new(comp) \ |
| ((STACK_OF(ASN1_STRING_TABLE) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const ASN1_STRING_TABLE **a, const ASN1_STRING_TABLE **b), \ |
| comp))) |
| |
| #define sk_ASN1_STRING_TABLE_new_null() \ |
| ((STACK_OF(ASN1_STRING_TABLE) *)sk_new_null()) |
| |
| #define sk_ASN1_STRING_TABLE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk)) |
| |
| #define sk_ASN1_STRING_TABLE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk)); |
| |
| #define sk_ASN1_STRING_TABLE_value(sk, i) \ |
| ((ASN1_STRING_TABLE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_STRING_TABLE) *, sk), (i))) |
| |
| #define sk_ASN1_STRING_TABLE_set(sk, i, p) \ |
| ((ASN1_STRING_TABLE *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), (i), \ |
| CHECKED_CAST(void *, ASN1_STRING_TABLE *, p))) |
| |
| #define sk_ASN1_STRING_TABLE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk)) |
| |
| #define sk_ASN1_STRING_TABLE_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_STRING_TABLE *), \ |
| free_func)) |
| |
| #define sk_ASN1_STRING_TABLE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_STRING_TABLE *, p), (where)) |
| |
| #define sk_ASN1_STRING_TABLE_delete(sk, where) \ |
| ((ASN1_STRING_TABLE *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), (where))) |
| |
| #define sk_ASN1_STRING_TABLE_delete_ptr(sk, p) \ |
| ((ASN1_STRING_TABLE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_STRING_TABLE *, p))) |
| |
| #define sk_ASN1_STRING_TABLE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| (out_index), CHECKED_CAST(void *, ASN1_STRING_TABLE *, p)) |
| |
| #define sk_ASN1_STRING_TABLE_shift(sk) \ |
| ((ASN1_STRING_TABLE *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk))) |
| |
| #define sk_ASN1_STRING_TABLE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_STRING_TABLE *, p)) |
| |
| #define sk_ASN1_STRING_TABLE_pop(sk) \ |
| ((ASN1_STRING_TABLE *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk))) |
| |
| #define sk_ASN1_STRING_TABLE_dup(sk) \ |
| ((STACK_OF(ASN1_STRING_TABLE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_STRING_TABLE) *, sk))) |
| |
| #define sk_ASN1_STRING_TABLE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk)) |
| |
| #define sk_ASN1_STRING_TABLE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_STRING_TABLE) *, sk)) |
| |
| #define sk_ASN1_STRING_TABLE_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_STRING_TABLE **a, const ASN1_STRING_TABLE **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const ASN1_STRING_TABLE **a, \ |
| const ASN1_STRING_TABLE **b), \ |
| comp))) |
| |
| #define sk_ASN1_STRING_TABLE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_STRING_TABLE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_STRING_TABLE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| ASN1_STRING_TABLE *(*)(ASN1_STRING_TABLE *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_STRING_TABLE *), \ |
| free_func))) |
| |
| /* ASN1_TYPE */ |
| #define sk_ASN1_TYPE_new(comp) \ |
| ((STACK_OF(ASN1_TYPE) *)sk_new( \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const ASN1_TYPE **a, const ASN1_TYPE **b), comp))) |
| |
| #define sk_ASN1_TYPE_new_null() ((STACK_OF(ASN1_TYPE) *)sk_new_null()) |
| |
| #define sk_ASN1_TYPE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk)) |
| |
| #define sk_ASN1_TYPE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk)); |
| |
| #define sk_ASN1_TYPE_value(sk, i) \ |
| ((ASN1_TYPE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_TYPE) *, sk), (i))) |
| |
| #define sk_ASN1_TYPE_set(sk, i, p) \ |
| ((ASN1_TYPE *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), (i), \ |
| CHECKED_CAST(void *, ASN1_TYPE *, p))) |
| |
| #define sk_ASN1_TYPE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk)) |
| |
| #define sk_ASN1_TYPE_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_TYPE *), free_func)) |
| |
| #define sk_ASN1_TYPE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_TYPE *, p), (where)) |
| |
| #define sk_ASN1_TYPE_delete(sk, where) \ |
| ((ASN1_TYPE *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| (where))) |
| |
| #define sk_ASN1_TYPE_delete_ptr(sk, p) \ |
| ((ASN1_TYPE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_TYPE *, p))) |
| |
| #define sk_ASN1_TYPE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), (out_index), \ |
| CHECKED_CAST(void *, ASN1_TYPE *, p)) |
| |
| #define sk_ASN1_TYPE_shift(sk) \ |
| ((ASN1_TYPE *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk))) |
| |
| #define sk_ASN1_TYPE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_TYPE *, p)) |
| |
| #define sk_ASN1_TYPE_pop(sk) \ |
| ((ASN1_TYPE *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk))) |
| |
| #define sk_ASN1_TYPE_dup(sk) \ |
| ((STACK_OF(ASN1_TYPE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_TYPE) *, sk))) |
| |
| #define sk_ASN1_TYPE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk)) |
| |
| #define sk_ASN1_TYPE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_TYPE) *, sk)) |
| |
| #define sk_ASN1_TYPE_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_TYPE **a, const ASN1_TYPE **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const ASN1_TYPE **a, const ASN1_TYPE **b), comp))) |
| |
| #define sk_ASN1_TYPE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_TYPE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_TYPE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), ASN1_TYPE *(*)(ASN1_TYPE *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_TYPE *), free_func))) |
| |
| /* ASN1_VALUE */ |
| #define sk_ASN1_VALUE_new(comp) \ |
| ((STACK_OF(ASN1_VALUE) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const ASN1_VALUE **a, const ASN1_VALUE **b), \ |
| comp))) |
| |
| #define sk_ASN1_VALUE_new_null() ((STACK_OF(ASN1_VALUE) *)sk_new_null()) |
| |
| #define sk_ASN1_VALUE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk)) |
| |
| #define sk_ASN1_VALUE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk)); |
| |
| #define sk_ASN1_VALUE_value(sk, i) \ |
| ((ASN1_VALUE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_VALUE) *, sk), (i))) |
| |
| #define sk_ASN1_VALUE_set(sk, i, p) \ |
| ((ASN1_VALUE *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| (i), CHECKED_CAST(void *, ASN1_VALUE *, p))) |
| |
| #define sk_ASN1_VALUE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk)) |
| |
| #define sk_ASN1_VALUE_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_VALUE *), free_func)) |
| |
| #define sk_ASN1_VALUE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_VALUE *, p), (where)) |
| |
| #define sk_ASN1_VALUE_delete(sk, where) \ |
| ((ASN1_VALUE *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| (where))) |
| |
| #define sk_ASN1_VALUE_delete_ptr(sk, p) \ |
| ((ASN1_VALUE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_VALUE *, p))) |
| |
| #define sk_ASN1_VALUE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), (out_index), \ |
| CHECKED_CAST(void *, ASN1_VALUE *, p)) |
| |
| #define sk_ASN1_VALUE_shift(sk) \ |
| ((ASN1_VALUE *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk))) |
| |
| #define sk_ASN1_VALUE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(void *, ASN1_VALUE *, p)) |
| |
| #define sk_ASN1_VALUE_pop(sk) \ |
| ((ASN1_VALUE *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk))) |
| |
| #define sk_ASN1_VALUE_dup(sk) \ |
| ((STACK_OF(ASN1_VALUE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(ASN1_VALUE) *, sk))) |
| |
| #define sk_ASN1_VALUE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk)) |
| |
| #define sk_ASN1_VALUE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(ASN1_VALUE) *, sk)) |
| |
| #define sk_ASN1_VALUE_set_cmp_func(sk, comp) \ |
| ((int (*)(const ASN1_VALUE **a, const ASN1_VALUE **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const ASN1_VALUE **a, const ASN1_VALUE **b), \ |
| comp))) |
| |
| #define sk_ASN1_VALUE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(ASN1_VALUE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(ASN1_VALUE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), ASN1_VALUE *(*)(ASN1_VALUE *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(ASN1_VALUE *), free_func))) |
| |
| /* BIO */ |
| #define sk_BIO_new(comp) \ |
| ((STACK_OF(BIO) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const BIO **a, const BIO **b), comp))) |
| |
| #define sk_BIO_new_null() ((STACK_OF(BIO) *)sk_new_null()) |
| |
| #define sk_BIO_num(sk) sk_num(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk)) |
| |
| #define sk_BIO_zero(sk) sk_zero(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk)); |
| |
| #define sk_BIO_value(sk, i) \ |
| ((BIO *)sk_value(CHECKED_CAST(_STACK *, const STACK_OF(BIO) *, sk), (i))) |
| |
| #define sk_BIO_set(sk, i, p) \ |
| ((BIO *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), (i), \ |
| CHECKED_CAST(void *, BIO *, p))) |
| |
| #define sk_BIO_free(sk) sk_free(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk)) |
| |
| #define sk_BIO_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BIO *), free_func)) |
| |
| #define sk_BIO_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(void *, BIO *, p), (where)) |
| |
| #define sk_BIO_delete(sk, where) \ |
| ((BIO *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), (where))) |
| |
| #define sk_BIO_delete_ptr(sk, p) \ |
| ((BIO *)sk_delete_ptr(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(void *, BIO *, p))) |
| |
| #define sk_BIO_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), (out_index), \ |
| CHECKED_CAST(void *, BIO *, p)) |
| |
| #define sk_BIO_shift(sk) \ |
| ((BIO *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk))) |
| |
| #define sk_BIO_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(void *, BIO *, p)) |
| |
| #define sk_BIO_pop(sk) \ |
| ((BIO *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk))) |
| |
| #define sk_BIO_dup(sk) \ |
| ((STACK_OF(BIO) *)sk_dup(CHECKED_CAST(_STACK *, const STACK_OF(BIO) *, sk))) |
| |
| #define sk_BIO_sort(sk) sk_sort(CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk)) |
| |
| #define sk_BIO_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(BIO) *, sk)) |
| |
| #define sk_BIO_set_cmp_func(sk, comp) \ |
| ((int (*)(const BIO **a, const BIO **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const BIO **a, const BIO **b), \ |
| comp))) |
| |
| #define sk_BIO_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(BIO) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(BIO) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), BIO *(*)(BIO *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BIO *), free_func))) |
| |
| /* BY_DIR_ENTRY */ |
| #define sk_BY_DIR_ENTRY_new(comp) \ |
| ((STACK_OF(BY_DIR_ENTRY) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const BY_DIR_ENTRY **a, const BY_DIR_ENTRY **b), \ |
| comp))) |
| |
| #define sk_BY_DIR_ENTRY_new_null() ((STACK_OF(BY_DIR_ENTRY) *)sk_new_null()) |
| |
| #define sk_BY_DIR_ENTRY_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk)) |
| |
| #define sk_BY_DIR_ENTRY_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk)); |
| |
| #define sk_BY_DIR_ENTRY_value(sk, i) \ |
| ((BY_DIR_ENTRY *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_ENTRY) *, sk), (i))) |
| |
| #define sk_BY_DIR_ENTRY_set(sk, i, p) \ |
| ((BY_DIR_ENTRY *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), (i), \ |
| CHECKED_CAST(void *, BY_DIR_ENTRY *, p))) |
| |
| #define sk_BY_DIR_ENTRY_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk)) |
| |
| #define sk_BY_DIR_ENTRY_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BY_DIR_ENTRY *), free_func)) |
| |
| #define sk_BY_DIR_ENTRY_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_ENTRY *, p), (where)) |
| |
| #define sk_BY_DIR_ENTRY_delete(sk, where) \ |
| ((BY_DIR_ENTRY *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), (where))) |
| |
| #define sk_BY_DIR_ENTRY_delete_ptr(sk, p) \ |
| ((BY_DIR_ENTRY *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_ENTRY *, p))) |
| |
| #define sk_BY_DIR_ENTRY_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), (out_index), \ |
| CHECKED_CAST(void *, BY_DIR_ENTRY *, p)) |
| |
| #define sk_BY_DIR_ENTRY_shift(sk) \ |
| ((BY_DIR_ENTRY *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk))) |
| |
| #define sk_BY_DIR_ENTRY_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_ENTRY *, p)) |
| |
| #define sk_BY_DIR_ENTRY_pop(sk) \ |
| ((BY_DIR_ENTRY *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk))) |
| |
| #define sk_BY_DIR_ENTRY_dup(sk) \ |
| ((STACK_OF(BY_DIR_ENTRY) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_ENTRY) *, sk))) |
| |
| #define sk_BY_DIR_ENTRY_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk)) |
| |
| #define sk_BY_DIR_ENTRY_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_ENTRY) *, sk)) |
| |
| #define sk_BY_DIR_ENTRY_set_cmp_func(sk, comp) \ |
| ((int (*)(const BY_DIR_ENTRY **a, const BY_DIR_ENTRY **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const BY_DIR_ENTRY **a, const BY_DIR_ENTRY **b), \ |
| comp))) |
| |
| #define sk_BY_DIR_ENTRY_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(BY_DIR_ENTRY) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(BY_DIR_ENTRY) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), BY_DIR_ENTRY *(*)(BY_DIR_ENTRY *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BY_DIR_ENTRY *), free_func))) |
| |
| /* BY_DIR_HASH */ |
| #define sk_BY_DIR_HASH_new(comp) \ |
| ((STACK_OF(BY_DIR_HASH) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const BY_DIR_HASH **a, const BY_DIR_HASH **b), \ |
| comp))) |
| |
| #define sk_BY_DIR_HASH_new_null() ((STACK_OF(BY_DIR_HASH) *)sk_new_null()) |
| |
| #define sk_BY_DIR_HASH_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk)) |
| |
| #define sk_BY_DIR_HASH_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk)); |
| |
| #define sk_BY_DIR_HASH_value(sk, i) \ |
| ((BY_DIR_HASH *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_HASH) *, sk), (i))) |
| |
| #define sk_BY_DIR_HASH_set(sk, i, p) \ |
| ((BY_DIR_HASH *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| (i), CHECKED_CAST(void *, BY_DIR_HASH *, p))) |
| |
| #define sk_BY_DIR_HASH_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk)) |
| |
| #define sk_BY_DIR_HASH_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BY_DIR_HASH *), free_func)) |
| |
| #define sk_BY_DIR_HASH_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_HASH *, p), (where)) |
| |
| #define sk_BY_DIR_HASH_delete(sk, where) \ |
| ((BY_DIR_HASH *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), (where))) |
| |
| #define sk_BY_DIR_HASH_delete_ptr(sk, p) \ |
| ((BY_DIR_HASH *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_HASH *, p))) |
| |
| #define sk_BY_DIR_HASH_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), (out_index), \ |
| CHECKED_CAST(void *, BY_DIR_HASH *, p)) |
| |
| #define sk_BY_DIR_HASH_shift(sk) \ |
| ((BY_DIR_HASH *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk))) |
| |
| #define sk_BY_DIR_HASH_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(void *, BY_DIR_HASH *, p)) |
| |
| #define sk_BY_DIR_HASH_pop(sk) \ |
| ((BY_DIR_HASH *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk))) |
| |
| #define sk_BY_DIR_HASH_dup(sk) \ |
| ((STACK_OF(BY_DIR_HASH) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_HASH) *, sk))) |
| |
| #define sk_BY_DIR_HASH_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk)) |
| |
| #define sk_BY_DIR_HASH_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(BY_DIR_HASH) *, sk)) |
| |
| #define sk_BY_DIR_HASH_set_cmp_func(sk, comp) \ |
| ((int (*)(const BY_DIR_HASH **a, const BY_DIR_HASH **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const BY_DIR_HASH **a, const BY_DIR_HASH **b), \ |
| comp))) |
| |
| #define sk_BY_DIR_HASH_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(BY_DIR_HASH) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(BY_DIR_HASH) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), BY_DIR_HASH *(*)(BY_DIR_HASH *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(BY_DIR_HASH *), free_func))) |
| |
| /* CONF_VALUE */ |
| #define sk_CONF_VALUE_new(comp) \ |
| ((STACK_OF(CONF_VALUE) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const CONF_VALUE **a, const CONF_VALUE **b), \ |
| comp))) |
| |
| #define sk_CONF_VALUE_new_null() ((STACK_OF(CONF_VALUE) *)sk_new_null()) |
| |
| #define sk_CONF_VALUE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk)) |
| |
| #define sk_CONF_VALUE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk)); |
| |
| #define sk_CONF_VALUE_value(sk, i) \ |
| ((CONF_VALUE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(CONF_VALUE) *, sk), (i))) |
| |
| #define sk_CONF_VALUE_set(sk, i, p) \ |
| ((CONF_VALUE *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| (i), CHECKED_CAST(void *, CONF_VALUE *, p))) |
| |
| #define sk_CONF_VALUE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk)) |
| |
| #define sk_CONF_VALUE_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(CONF_VALUE *), free_func)) |
| |
| #define sk_CONF_VALUE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(void *, CONF_VALUE *, p), (where)) |
| |
| #define sk_CONF_VALUE_delete(sk, where) \ |
| ((CONF_VALUE *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| (where))) |
| |
| #define sk_CONF_VALUE_delete_ptr(sk, p) \ |
| ((CONF_VALUE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(void *, CONF_VALUE *, p))) |
| |
| #define sk_CONF_VALUE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), (out_index), \ |
| CHECKED_CAST(void *, CONF_VALUE *, p)) |
| |
| #define sk_CONF_VALUE_shift(sk) \ |
| ((CONF_VALUE *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk))) |
| |
| #define sk_CONF_VALUE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(void *, CONF_VALUE *, p)) |
| |
| #define sk_CONF_VALUE_pop(sk) \ |
| ((CONF_VALUE *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk))) |
| |
| #define sk_CONF_VALUE_dup(sk) \ |
| ((STACK_OF(CONF_VALUE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(CONF_VALUE) *, sk))) |
| |
| #define sk_CONF_VALUE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk)) |
| |
| #define sk_CONF_VALUE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(CONF_VALUE) *, sk)) |
| |
| #define sk_CONF_VALUE_set_cmp_func(sk, comp) \ |
| ((int (*)(const CONF_VALUE **a, const CONF_VALUE **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const CONF_VALUE **a, const CONF_VALUE **b), \ |
| comp))) |
| |
| #define sk_CONF_VALUE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(CONF_VALUE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(CONF_VALUE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), CONF_VALUE *(*)(CONF_VALUE *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(CONF_VALUE *), free_func))) |
| |
| /* CRYPTO_EX_DATA_FUNCS */ |
| #define sk_CRYPTO_EX_DATA_FUNCS_new(comp) \ |
| ((STACK_OF(CRYPTO_EX_DATA_FUNCS) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const CRYPTO_EX_DATA_FUNCS **a, const CRYPTO_EX_DATA_FUNCS **b), \ |
| comp))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_new_null() \ |
| ((STACK_OF(CRYPTO_EX_DATA_FUNCS) *)sk_new_null()) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk)); |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_value(sk, i) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| (i))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_set(sk, i, p) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), (i), \ |
| CHECKED_CAST(void *, CRYPTO_EX_DATA_FUNCS *, p))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(CRYPTO_EX_DATA_FUNCS *), \ |
| free_func)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| CHECKED_CAST(void *, CRYPTO_EX_DATA_FUNCS *, p), (where)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_delete(sk, where) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), (where))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_delete_ptr(sk, p) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| CHECKED_CAST(void *, CRYPTO_EX_DATA_FUNCS *, p))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| (out_index), CHECKED_CAST(void *, CRYPTO_EX_DATA_FUNCS *, p)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_shift(sk) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| CHECKED_CAST(void *, CRYPTO_EX_DATA_FUNCS *, p)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_pop(sk) \ |
| ((CRYPTO_EX_DATA_FUNCS *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_dup(sk) \ |
| ((STACK_OF(CRYPTO_EX_DATA_FUNCS) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_is_sorted(sk) \ |
| sk_is_sorted( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk)) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_set_cmp_func(sk, comp) \ |
| ((int (*)(const CRYPTO_EX_DATA_FUNCS **a, const CRYPTO_EX_DATA_FUNCS **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(CRYPTO_EX_DATA_FUNCS) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const CRYPTO_EX_DATA_FUNCS **a, \ |
| const CRYPTO_EX_DATA_FUNCS **b), \ |
| comp))) |
| |
| #define sk_CRYPTO_EX_DATA_FUNCS_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(CRYPTO_EX_DATA_FUNCS) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(CRYPTO_EX_DATA_FUNCS) *, \ |
| sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| CRYPTO_EX_DATA_FUNCS *(*)(CRYPTO_EX_DATA_FUNCS *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(CRYPTO_EX_DATA_FUNCS *), \ |
| free_func))) |
| |
| /* DIST_POINT */ |
| #define sk_DIST_POINT_new(comp) \ |
| ((STACK_OF(DIST_POINT) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const DIST_POINT **a, const DIST_POINT **b), \ |
| comp))) |
| |
| #define sk_DIST_POINT_new_null() ((STACK_OF(DIST_POINT) *)sk_new_null()) |
| |
| #define sk_DIST_POINT_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk)) |
| |
| #define sk_DIST_POINT_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk)); |
| |
| #define sk_DIST_POINT_value(sk, i) \ |
| ((DIST_POINT *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(DIST_POINT) *, sk), (i))) |
| |
| #define sk_DIST_POINT_set(sk, i, p) \ |
| ((DIST_POINT *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| (i), CHECKED_CAST(void *, DIST_POINT *, p))) |
| |
| #define sk_DIST_POINT_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk)) |
| |
| #define sk_DIST_POINT_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(DIST_POINT *), free_func)) |
| |
| #define sk_DIST_POINT_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(void *, DIST_POINT *, p), (where)) |
| |
| #define sk_DIST_POINT_delete(sk, where) \ |
| ((DIST_POINT *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| (where))) |
| |
| #define sk_DIST_POINT_delete_ptr(sk, p) \ |
| ((DIST_POINT *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(void *, DIST_POINT *, p))) |
| |
| #define sk_DIST_POINT_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), (out_index), \ |
| CHECKED_CAST(void *, DIST_POINT *, p)) |
| |
| #define sk_DIST_POINT_shift(sk) \ |
| ((DIST_POINT *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk))) |
| |
| #define sk_DIST_POINT_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(void *, DIST_POINT *, p)) |
| |
| #define sk_DIST_POINT_pop(sk) \ |
| ((DIST_POINT *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk))) |
| |
| #define sk_DIST_POINT_dup(sk) \ |
| ((STACK_OF(DIST_POINT) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(DIST_POINT) *, sk))) |
| |
| #define sk_DIST_POINT_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk)) |
| |
| #define sk_DIST_POINT_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(DIST_POINT) *, sk)) |
| |
| #define sk_DIST_POINT_set_cmp_func(sk, comp) \ |
| ((int (*)(const DIST_POINT **a, const DIST_POINT **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const DIST_POINT **a, const DIST_POINT **b), \ |
| comp))) |
| |
| #define sk_DIST_POINT_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(DIST_POINT) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(DIST_POINT) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), DIST_POINT *(*)(DIST_POINT *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(DIST_POINT *), free_func))) |
| |
| /* GENERAL_NAME */ |
| #define sk_GENERAL_NAME_new(comp) \ |
| ((STACK_OF(GENERAL_NAME) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const GENERAL_NAME **a, const GENERAL_NAME **b), \ |
| comp))) |
| |
| #define sk_GENERAL_NAME_new_null() ((STACK_OF(GENERAL_NAME) *)sk_new_null()) |
| |
| #define sk_GENERAL_NAME_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk)) |
| |
| #define sk_GENERAL_NAME_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk)); |
| |
| #define sk_GENERAL_NAME_value(sk, i) \ |
| ((GENERAL_NAME *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAME) *, sk), (i))) |
| |
| #define sk_GENERAL_NAME_set(sk, i, p) \ |
| ((GENERAL_NAME *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), (i), \ |
| CHECKED_CAST(void *, GENERAL_NAME *, p))) |
| |
| #define sk_GENERAL_NAME_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk)) |
| |
| #define sk_GENERAL_NAME_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_NAME *), free_func)) |
| |
| #define sk_GENERAL_NAME_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAME *, p), (where)) |
| |
| #define sk_GENERAL_NAME_delete(sk, where) \ |
| ((GENERAL_NAME *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), (where))) |
| |
| #define sk_GENERAL_NAME_delete_ptr(sk, p) \ |
| ((GENERAL_NAME *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAME *, p))) |
| |
| #define sk_GENERAL_NAME_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), (out_index), \ |
| CHECKED_CAST(void *, GENERAL_NAME *, p)) |
| |
| #define sk_GENERAL_NAME_shift(sk) \ |
| ((GENERAL_NAME *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk))) |
| |
| #define sk_GENERAL_NAME_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAME *, p)) |
| |
| #define sk_GENERAL_NAME_pop(sk) \ |
| ((GENERAL_NAME *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk))) |
| |
| #define sk_GENERAL_NAME_dup(sk) \ |
| ((STACK_OF(GENERAL_NAME) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAME) *, sk))) |
| |
| #define sk_GENERAL_NAME_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk)) |
| |
| #define sk_GENERAL_NAME_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAME) *, sk)) |
| |
| #define sk_GENERAL_NAME_set_cmp_func(sk, comp) \ |
| ((int (*)(const GENERAL_NAME **a, const GENERAL_NAME **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const GENERAL_NAME **a, const GENERAL_NAME **b), \ |
| comp))) |
| |
| #define sk_GENERAL_NAME_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(GENERAL_NAME) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(GENERAL_NAME) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), GENERAL_NAME *(*)(GENERAL_NAME *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_NAME *), free_func))) |
| |
| /* GENERAL_NAMES */ |
| #define sk_GENERAL_NAMES_new(comp) \ |
| ((STACK_OF(GENERAL_NAMES) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const GENERAL_NAMES **a, const GENERAL_NAMES **b), comp))) |
| |
| #define sk_GENERAL_NAMES_new_null() ((STACK_OF(GENERAL_NAMES) *)sk_new_null()) |
| |
| #define sk_GENERAL_NAMES_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk)) |
| |
| #define sk_GENERAL_NAMES_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk)); |
| |
| #define sk_GENERAL_NAMES_value(sk, i) \ |
| ((GENERAL_NAMES *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAMES) *, sk), (i))) |
| |
| #define sk_GENERAL_NAMES_set(sk, i, p) \ |
| ((GENERAL_NAMES *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), (i), \ |
| CHECKED_CAST(void *, GENERAL_NAMES *, p))) |
| |
| #define sk_GENERAL_NAMES_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk)) |
| |
| #define sk_GENERAL_NAMES_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_NAMES *), free_func)) |
| |
| #define sk_GENERAL_NAMES_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAMES *, p), (where)) |
| |
| #define sk_GENERAL_NAMES_delete(sk, where) \ |
| ((GENERAL_NAMES *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), (where))) |
| |
| #define sk_GENERAL_NAMES_delete_ptr(sk, p) \ |
| ((GENERAL_NAMES *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAMES *, p))) |
| |
| #define sk_GENERAL_NAMES_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), (out_index), \ |
| CHECKED_CAST(void *, GENERAL_NAMES *, p)) |
| |
| #define sk_GENERAL_NAMES_shift(sk) \ |
| ((GENERAL_NAMES *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk))) |
| |
| #define sk_GENERAL_NAMES_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_NAMES *, p)) |
| |
| #define sk_GENERAL_NAMES_pop(sk) \ |
| ((GENERAL_NAMES *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk))) |
| |
| #define sk_GENERAL_NAMES_dup(sk) \ |
| ((STACK_OF(GENERAL_NAMES) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAMES) *, sk))) |
| |
| #define sk_GENERAL_NAMES_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk)) |
| |
| #define sk_GENERAL_NAMES_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_NAMES) *, sk)) |
| |
| #define sk_GENERAL_NAMES_set_cmp_func(sk, comp) \ |
| ((int (*)(const GENERAL_NAMES **a, const GENERAL_NAMES **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const GENERAL_NAMES **a, const GENERAL_NAMES **b), \ |
| comp))) |
| |
| #define sk_GENERAL_NAMES_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(GENERAL_NAMES) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(GENERAL_NAMES) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), GENERAL_NAMES *(*)(GENERAL_NAMES *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_NAMES *), free_func))) |
| |
| /* GENERAL_SUBTREE */ |
| #define sk_GENERAL_SUBTREE_new(comp) \ |
| ((STACK_OF(GENERAL_SUBTREE) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const GENERAL_SUBTREE **a, const GENERAL_SUBTREE **b), comp))) |
| |
| #define sk_GENERAL_SUBTREE_new_null() \ |
| ((STACK_OF(GENERAL_SUBTREE) *)sk_new_null()) |
| |
| #define sk_GENERAL_SUBTREE_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk)) |
| |
| #define sk_GENERAL_SUBTREE_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk)); |
| |
| #define sk_GENERAL_SUBTREE_value(sk, i) \ |
| ((GENERAL_SUBTREE *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_SUBTREE) *, sk), (i))) |
| |
| #define sk_GENERAL_SUBTREE_set(sk, i, p) \ |
| ((GENERAL_SUBTREE *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), (i), \ |
| CHECKED_CAST(void *, GENERAL_SUBTREE *, p))) |
| |
| #define sk_GENERAL_SUBTREE_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk)) |
| |
| #define sk_GENERAL_SUBTREE_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_SUBTREE *), free_func)) |
| |
| #define sk_GENERAL_SUBTREE_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_SUBTREE *, p), (where)) |
| |
| #define sk_GENERAL_SUBTREE_delete(sk, where) \ |
| ((GENERAL_SUBTREE *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), (where))) |
| |
| #define sk_GENERAL_SUBTREE_delete_ptr(sk, p) \ |
| ((GENERAL_SUBTREE *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_SUBTREE *, p))) |
| |
| #define sk_GENERAL_SUBTREE_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| (out_index), CHECKED_CAST(void *, GENERAL_SUBTREE *, p)) |
| |
| #define sk_GENERAL_SUBTREE_shift(sk) \ |
| ((GENERAL_SUBTREE *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk))) |
| |
| #define sk_GENERAL_SUBTREE_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(void *, GENERAL_SUBTREE *, p)) |
| |
| #define sk_GENERAL_SUBTREE_pop(sk) \ |
| ((GENERAL_SUBTREE *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk))) |
| |
| #define sk_GENERAL_SUBTREE_dup(sk) \ |
| ((STACK_OF(GENERAL_SUBTREE) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_SUBTREE) *, sk))) |
| |
| #define sk_GENERAL_SUBTREE_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk)) |
| |
| #define sk_GENERAL_SUBTREE_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(GENERAL_SUBTREE) *, sk)) |
| |
| #define sk_GENERAL_SUBTREE_set_cmp_func(sk, comp) \ |
| ((int (*)(const GENERAL_SUBTREE **a, const GENERAL_SUBTREE **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const GENERAL_SUBTREE **a, \ |
| const GENERAL_SUBTREE **b), \ |
| comp))) |
| |
| #define sk_GENERAL_SUBTREE_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(GENERAL_SUBTREE) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(GENERAL_SUBTREE) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), GENERAL_SUBTREE *(*)(GENERAL_SUBTREE *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(GENERAL_SUBTREE *), free_func))) |
| |
| /* MIME_HEADER */ |
| #define sk_MIME_HEADER_new(comp) \ |
| ((STACK_OF(MIME_HEADER) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const MIME_HEADER **a, const MIME_HEADER **b), \ |
| comp))) |
| |
| #define sk_MIME_HEADER_new_null() ((STACK_OF(MIME_HEADER) *)sk_new_null()) |
| |
| #define sk_MIME_HEADER_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk)) |
| |
| #define sk_MIME_HEADER_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk)); |
| |
| #define sk_MIME_HEADER_value(sk, i) \ |
| ((MIME_HEADER *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(MIME_HEADER) *, sk), (i))) |
| |
| #define sk_MIME_HEADER_set(sk, i, p) \ |
| ((MIME_HEADER *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| (i), CHECKED_CAST(void *, MIME_HEADER *, p))) |
| |
| #define sk_MIME_HEADER_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk)) |
| |
| #define sk_MIME_HEADER_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(MIME_HEADER *), free_func)) |
| |
| #define sk_MIME_HEADER_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(void *, MIME_HEADER *, p), (where)) |
| |
| #define sk_MIME_HEADER_delete(sk, where) \ |
| ((MIME_HEADER *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), (where))) |
| |
| #define sk_MIME_HEADER_delete_ptr(sk, p) \ |
| ((MIME_HEADER *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(void *, MIME_HEADER *, p))) |
| |
| #define sk_MIME_HEADER_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), (out_index), \ |
| CHECKED_CAST(void *, MIME_HEADER *, p)) |
| |
| #define sk_MIME_HEADER_shift(sk) \ |
| ((MIME_HEADER *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk))) |
| |
| #define sk_MIME_HEADER_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(void *, MIME_HEADER *, p)) |
| |
| #define sk_MIME_HEADER_pop(sk) \ |
| ((MIME_HEADER *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk))) |
| |
| #define sk_MIME_HEADER_dup(sk) \ |
| ((STACK_OF(MIME_HEADER) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(MIME_HEADER) *, sk))) |
| |
| #define sk_MIME_HEADER_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk)) |
| |
| #define sk_MIME_HEADER_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(MIME_HEADER) *, sk)) |
| |
| #define sk_MIME_HEADER_set_cmp_func(sk, comp) \ |
| ((int (*)(const MIME_HEADER **a, const MIME_HEADER **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const MIME_HEADER **a, const MIME_HEADER **b), \ |
| comp))) |
| |
| #define sk_MIME_HEADER_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(MIME_HEADER) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(MIME_HEADER) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), MIME_HEADER *(*)(MIME_HEADER *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(MIME_HEADER *), free_func))) |
| |
| /* PKCS7_SIGNER_INFO */ |
| #define sk_PKCS7_SIGNER_INFO_new(comp) \ |
| ((STACK_OF(PKCS7_SIGNER_INFO) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const PKCS7_SIGNER_INFO **a, const PKCS7_SIGNER_INFO **b), \ |
| comp))) |
| |
| #define sk_PKCS7_SIGNER_INFO_new_null() \ |
| ((STACK_OF(PKCS7_SIGNER_INFO) *)sk_new_null()) |
| |
| #define sk_PKCS7_SIGNER_INFO_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk)) |
| |
| #define sk_PKCS7_SIGNER_INFO_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk)); |
| |
| #define sk_PKCS7_SIGNER_INFO_value(sk, i) \ |
| ((PKCS7_SIGNER_INFO *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_SIGNER_INFO) *, sk), (i))) |
| |
| #define sk_PKCS7_SIGNER_INFO_set(sk, i, p) \ |
| ((PKCS7_SIGNER_INFO *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), (i), \ |
| CHECKED_CAST(void *, PKCS7_SIGNER_INFO *, p))) |
| |
| #define sk_PKCS7_SIGNER_INFO_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk)) |
| |
| #define sk_PKCS7_SIGNER_INFO_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(PKCS7_SIGNER_INFO *), \ |
| free_func)) |
| |
| #define sk_PKCS7_SIGNER_INFO_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_SIGNER_INFO *, p), (where)) |
| |
| #define sk_PKCS7_SIGNER_INFO_delete(sk, where) \ |
| ((PKCS7_SIGNER_INFO *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), (where))) |
| |
| #define sk_PKCS7_SIGNER_INFO_delete_ptr(sk, p) \ |
| ((PKCS7_SIGNER_INFO *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_SIGNER_INFO *, p))) |
| |
| #define sk_PKCS7_SIGNER_INFO_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| (out_index), CHECKED_CAST(void *, PKCS7_SIGNER_INFO *, p)) |
| |
| #define sk_PKCS7_SIGNER_INFO_shift(sk) \ |
| ((PKCS7_SIGNER_INFO *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk))) |
| |
| #define sk_PKCS7_SIGNER_INFO_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_SIGNER_INFO *, p)) |
| |
| #define sk_PKCS7_SIGNER_INFO_pop(sk) \ |
| ((PKCS7_SIGNER_INFO *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk))) |
| |
| #define sk_PKCS7_SIGNER_INFO_dup(sk) \ |
| ((STACK_OF(PKCS7_SIGNER_INFO) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_SIGNER_INFO) *, sk))) |
| |
| #define sk_PKCS7_SIGNER_INFO_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk)) |
| |
| #define sk_PKCS7_SIGNER_INFO_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_SIGNER_INFO) *, sk)) |
| |
| #define sk_PKCS7_SIGNER_INFO_set_cmp_func(sk, comp) \ |
| ((int (*)(const PKCS7_SIGNER_INFO **a, const PKCS7_SIGNER_INFO **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const PKCS7_SIGNER_INFO **a, \ |
| const PKCS7_SIGNER_INFO **b), \ |
| comp))) |
| |
| #define sk_PKCS7_SIGNER_INFO_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(PKCS7_SIGNER_INFO) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(PKCS7_SIGNER_INFO) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| PKCS7_SIGNER_INFO *(*)(PKCS7_SIGNER_INFO *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(PKCS7_SIGNER_INFO *), \ |
| free_func))) |
| |
| /* PKCS7_RECIP_INFO */ |
| #define sk_PKCS7_RECIP_INFO_new(comp) \ |
| ((STACK_OF(PKCS7_RECIP_INFO) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const PKCS7_RECIP_INFO **a, const PKCS7_RECIP_INFO **b), comp))) |
| |
| #define sk_PKCS7_RECIP_INFO_new_null() \ |
| ((STACK_OF(PKCS7_RECIP_INFO) *)sk_new_null()) |
| |
| #define sk_PKCS7_RECIP_INFO_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk)) |
| |
| #define sk_PKCS7_RECIP_INFO_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk)); |
| |
| #define sk_PKCS7_RECIP_INFO_value(sk, i) \ |
| ((PKCS7_RECIP_INFO *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_RECIP_INFO) *, sk), (i))) |
| |
| #define sk_PKCS7_RECIP_INFO_set(sk, i, p) \ |
| ((PKCS7_RECIP_INFO *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), (i), \ |
| CHECKED_CAST(void *, PKCS7_RECIP_INFO *, p))) |
| |
| #define sk_PKCS7_RECIP_INFO_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk)) |
| |
| #define sk_PKCS7_RECIP_INFO_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(PKCS7_RECIP_INFO *), free_func)) |
| |
| #define sk_PKCS7_RECIP_INFO_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_RECIP_INFO *, p), (where)) |
| |
| #define sk_PKCS7_RECIP_INFO_delete(sk, where) \ |
| ((PKCS7_RECIP_INFO *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), (where))) |
| |
| #define sk_PKCS7_RECIP_INFO_delete_ptr(sk, p) \ |
| ((PKCS7_RECIP_INFO *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_RECIP_INFO *, p))) |
| |
| #define sk_PKCS7_RECIP_INFO_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| (out_index), CHECKED_CAST(void *, PKCS7_RECIP_INFO *, p)) |
| |
| #define sk_PKCS7_RECIP_INFO_shift(sk) \ |
| ((PKCS7_RECIP_INFO *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk))) |
| |
| #define sk_PKCS7_RECIP_INFO_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(void *, PKCS7_RECIP_INFO *, p)) |
| |
| #define sk_PKCS7_RECIP_INFO_pop(sk) \ |
| ((PKCS7_RECIP_INFO *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk))) |
| |
| #define sk_PKCS7_RECIP_INFO_dup(sk) \ |
| ((STACK_OF(PKCS7_RECIP_INFO) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_RECIP_INFO) *, sk))) |
| |
| #define sk_PKCS7_RECIP_INFO_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk)) |
| |
| #define sk_PKCS7_RECIP_INFO_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(PKCS7_RECIP_INFO) *, sk)) |
| |
| #define sk_PKCS7_RECIP_INFO_set_cmp_func(sk, comp) \ |
| ((int (*)(const PKCS7_RECIP_INFO **a, const PKCS7_RECIP_INFO **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const PKCS7_RECIP_INFO **a, \ |
| const PKCS7_RECIP_INFO **b), \ |
| comp))) |
| |
| #define sk_PKCS7_RECIP_INFO_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(PKCS7_RECIP_INFO) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(PKCS7_RECIP_INFO) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| PKCS7_RECIP_INFO *(*)(PKCS7_RECIP_INFO *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(PKCS7_RECIP_INFO *), \ |
| free_func))) |
| |
| /* POLICYINFO */ |
| #define sk_POLICYINFO_new(comp) \ |
| ((STACK_OF(POLICYINFO) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const POLICYINFO **a, const POLICYINFO **b), \ |
| comp))) |
| |
| #define sk_POLICYINFO_new_null() ((STACK_OF(POLICYINFO) *)sk_new_null()) |
| |
| #define sk_POLICYINFO_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk)) |
| |
| #define sk_POLICYINFO_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk)); |
| |
| #define sk_POLICYINFO_value(sk, i) \ |
| ((POLICYINFO *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICYINFO) *, sk), (i))) |
| |
| #define sk_POLICYINFO_set(sk, i, p) \ |
| ((POLICYINFO *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| (i), CHECKED_CAST(void *, POLICYINFO *, p))) |
| |
| #define sk_POLICYINFO_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk)) |
| |
| #define sk_POLICYINFO_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICYINFO *), free_func)) |
| |
| #define sk_POLICYINFO_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYINFO *, p), (where)) |
| |
| #define sk_POLICYINFO_delete(sk, where) \ |
| ((POLICYINFO *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| (where))) |
| |
| #define sk_POLICYINFO_delete_ptr(sk, p) \ |
| ((POLICYINFO *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYINFO *, p))) |
| |
| #define sk_POLICYINFO_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), (out_index), \ |
| CHECKED_CAST(void *, POLICYINFO *, p)) |
| |
| #define sk_POLICYINFO_shift(sk) \ |
| ((POLICYINFO *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk))) |
| |
| #define sk_POLICYINFO_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYINFO *, p)) |
| |
| #define sk_POLICYINFO_pop(sk) \ |
| ((POLICYINFO *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk))) |
| |
| #define sk_POLICYINFO_dup(sk) \ |
| ((STACK_OF(POLICYINFO) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICYINFO) *, sk))) |
| |
| #define sk_POLICYINFO_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk)) |
| |
| #define sk_POLICYINFO_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(POLICYINFO) *, sk)) |
| |
| #define sk_POLICYINFO_set_cmp_func(sk, comp) \ |
| ((int (*)(const POLICYINFO **a, const POLICYINFO **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const POLICYINFO **a, const POLICYINFO **b), \ |
| comp))) |
| |
| #define sk_POLICYINFO_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(POLICYINFO) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(POLICYINFO) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), POLICYINFO *(*)(POLICYINFO *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICYINFO *), free_func))) |
| |
| /* POLICYQUALINFO */ |
| #define sk_POLICYQUALINFO_new(comp) \ |
| ((STACK_OF(POLICYQUALINFO) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const POLICYQUALINFO **a, const POLICYQUALINFO **b), comp))) |
| |
| #define sk_POLICYQUALINFO_new_null() ((STACK_OF(POLICYQUALINFO) *)sk_new_null()) |
| |
| #define sk_POLICYQUALINFO_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk)) |
| |
| #define sk_POLICYQUALINFO_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk)); |
| |
| #define sk_POLICYQUALINFO_value(sk, i) \ |
| ((POLICYQUALINFO *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICYQUALINFO) *, sk), (i))) |
| |
| #define sk_POLICYQUALINFO_set(sk, i, p) \ |
| ((POLICYQUALINFO *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), (i), \ |
| CHECKED_CAST(void *, POLICYQUALINFO *, p))) |
| |
| #define sk_POLICYQUALINFO_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk)) |
| |
| #define sk_POLICYQUALINFO_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICYQUALINFO *), free_func)) |
| |
| #define sk_POLICYQUALINFO_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYQUALINFO *, p), (where)) |
| |
| #define sk_POLICYQUALINFO_delete(sk, where) \ |
| ((POLICYQUALINFO *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), (where))) |
| |
| #define sk_POLICYQUALINFO_delete_ptr(sk, p) \ |
| ((POLICYQUALINFO *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYQUALINFO *, p))) |
| |
| #define sk_POLICYQUALINFO_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), (out_index), \ |
| CHECKED_CAST(void *, POLICYQUALINFO *, p)) |
| |
| #define sk_POLICYQUALINFO_shift(sk) \ |
| ((POLICYQUALINFO *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk))) |
| |
| #define sk_POLICYQUALINFO_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(void *, POLICYQUALINFO *, p)) |
| |
| #define sk_POLICYQUALINFO_pop(sk) \ |
| ((POLICYQUALINFO *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk))) |
| |
| #define sk_POLICYQUALINFO_dup(sk) \ |
| ((STACK_OF(POLICYQUALINFO) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICYQUALINFO) *, sk))) |
| |
| #define sk_POLICYQUALINFO_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk)) |
| |
| #define sk_POLICYQUALINFO_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(POLICYQUALINFO) *, sk)) |
| |
| #define sk_POLICYQUALINFO_set_cmp_func(sk, comp) \ |
| ((int (*)(const POLICYQUALINFO **a, const POLICYQUALINFO **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const POLICYQUALINFO **a, \ |
| const POLICYQUALINFO **b), \ |
| comp))) |
| |
| #define sk_POLICYQUALINFO_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(POLICYQUALINFO) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(POLICYQUALINFO) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), POLICYQUALINFO *(*)(POLICYQUALINFO *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICYQUALINFO *), free_func))) |
| |
| /* POLICY_MAPPING */ |
| #define sk_POLICY_MAPPING_new(comp) \ |
| ((STACK_OF(POLICY_MAPPING) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const POLICY_MAPPING **a, const POLICY_MAPPING **b), comp))) |
| |
| #define sk_POLICY_MAPPING_new_null() ((STACK_OF(POLICY_MAPPING) *)sk_new_null()) |
| |
| #define sk_POLICY_MAPPING_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk)) |
| |
| #define sk_POLICY_MAPPING_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk)); |
| |
| #define sk_POLICY_MAPPING_value(sk, i) \ |
| ((POLICY_MAPPING *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICY_MAPPING) *, sk), (i))) |
| |
| #define sk_POLICY_MAPPING_set(sk, i, p) \ |
| ((POLICY_MAPPING *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), (i), \ |
| CHECKED_CAST(void *, POLICY_MAPPING *, p))) |
| |
| #define sk_POLICY_MAPPING_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk)) |
| |
| #define sk_POLICY_MAPPING_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICY_MAPPING *), free_func)) |
| |
| #define sk_POLICY_MAPPING_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(void *, POLICY_MAPPING *, p), (where)) |
| |
| #define sk_POLICY_MAPPING_delete(sk, where) \ |
| ((POLICY_MAPPING *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), (where))) |
| |
| #define sk_POLICY_MAPPING_delete_ptr(sk, p) \ |
| ((POLICY_MAPPING *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(void *, POLICY_MAPPING *, p))) |
| |
| #define sk_POLICY_MAPPING_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), (out_index), \ |
| CHECKED_CAST(void *, POLICY_MAPPING *, p)) |
| |
| #define sk_POLICY_MAPPING_shift(sk) \ |
| ((POLICY_MAPPING *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk))) |
| |
| #define sk_POLICY_MAPPING_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(void *, POLICY_MAPPING *, p)) |
| |
| #define sk_POLICY_MAPPING_pop(sk) \ |
| ((POLICY_MAPPING *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk))) |
| |
| #define sk_POLICY_MAPPING_dup(sk) \ |
| ((STACK_OF(POLICY_MAPPING) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(POLICY_MAPPING) *, sk))) |
| |
| #define sk_POLICY_MAPPING_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk)) |
| |
| #define sk_POLICY_MAPPING_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(POLICY_MAPPING) *, sk)) |
| |
| #define sk_POLICY_MAPPING_set_cmp_func(sk, comp) \ |
| ((int (*)(const POLICY_MAPPING **a, const POLICY_MAPPING **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const POLICY_MAPPING **a, \ |
| const POLICY_MAPPING **b), \ |
| comp))) |
| |
| #define sk_POLICY_MAPPING_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(POLICY_MAPPING) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(POLICY_MAPPING) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), POLICY_MAPPING *(*)(POLICY_MAPPING *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(POLICY_MAPPING *), free_func))) |
| |
| /* SSL_COMP */ |
| #define sk_SSL_COMP_new(comp) \ |
| ((STACK_OF(SSL_COMP) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const SSL_COMP **a, const SSL_COMP **b), comp))) |
| |
| #define sk_SSL_COMP_new_null() ((STACK_OF(SSL_COMP) *)sk_new_null()) |
| |
| #define sk_SSL_COMP_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk)) |
| |
| #define sk_SSL_COMP_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk)); |
| |
| #define sk_SSL_COMP_value(sk, i) \ |
| ((SSL_COMP *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(SSL_COMP) *, sk), (i))) |
| |
| #define sk_SSL_COMP_set(sk, i, p) \ |
| ((SSL_COMP *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), (i), \ |
| CHECKED_CAST(void *, SSL_COMP *, p))) |
| |
| #define sk_SSL_COMP_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk)) |
| |
| #define sk_SSL_COMP_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(SSL_COMP *), free_func)) |
| |
| #define sk_SSL_COMP_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(void *, SSL_COMP *, p), (where)) |
| |
| #define sk_SSL_COMP_delete(sk, where) \ |
| ((SSL_COMP *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| (where))) |
| |
| #define sk_SSL_COMP_delete_ptr(sk, p) \ |
| ((SSL_COMP *)sk_delete_ptr(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(void *, SSL_COMP *, p))) |
| |
| #define sk_SSL_COMP_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), (out_index), \ |
| CHECKED_CAST(void *, SSL_COMP *, p)) |
| |
| #define sk_SSL_COMP_shift(sk) \ |
| ((SSL_COMP *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk))) |
| |
| #define sk_SSL_COMP_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(void *, SSL_COMP *, p)) |
| |
| #define sk_SSL_COMP_pop(sk) \ |
| ((SSL_COMP *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk))) |
| |
| #define sk_SSL_COMP_dup(sk) \ |
| ((STACK_OF(SSL_COMP) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(SSL_COMP) *, sk))) |
| |
| #define sk_SSL_COMP_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk)) |
| |
| #define sk_SSL_COMP_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(SSL_COMP) *, sk)) |
| |
| #define sk_SSL_COMP_set_cmp_func(sk, comp) \ |
| ((int (*)(const SSL_COMP **a, const SSL_COMP **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const SSL_COMP **a, const SSL_COMP **b), comp))) |
| |
| #define sk_SSL_COMP_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(SSL_COMP) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(SSL_COMP) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), SSL_COMP *(*)(SSL_COMP *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(SSL_COMP *), free_func))) |
| |
| /* STACK_OF_X509_NAME_ENTRY */ |
| #define sk_STACK_OF_X509_NAME_ENTRY_new(comp) \ |
| ((STACK_OF(STACK_OF_X509_NAME_ENTRY) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const STACK_OF_X509_NAME_ENTRY **a, \ |
| const STACK_OF_X509_NAME_ENTRY **b), \ |
| comp))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_new_null() \ |
| ((STACK_OF(STACK_OF_X509_NAME_ENTRY) *)sk_new_null()) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk)); |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_value(sk, i) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| (i))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_set(sk, i, p) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), (i), \ |
| CHECKED_CAST(void *, STACK_OF_X509_NAME_ENTRY *, p))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(STACK_OF_X509_NAME_ENTRY *), \ |
| free_func)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, STACK_OF_X509_NAME_ENTRY *, p), (where)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_delete(sk, where) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| (where))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_delete_ptr(sk, p) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, STACK_OF_X509_NAME_ENTRY *, p))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| (out_index), CHECKED_CAST(void *, STACK_OF_X509_NAME_ENTRY *, p)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_shift(sk) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| CHECKED_CAST(void *, STACK_OF_X509_NAME_ENTRY *, p)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_pop(sk) \ |
| ((STACK_OF_X509_NAME_ENTRY *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_dup(sk) \ |
| ((STACK_OF(STACK_OF_X509_NAME_ENTRY) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_is_sorted(sk) \ |
| sk_is_sorted( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk)) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_set_cmp_func(sk, comp) \ |
| ((int (*)(const STACK_OF_X509_NAME_ENTRY **a, \ |
| const STACK_OF_X509_NAME_ENTRY **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(STACK_OF_X509_NAME_ENTRY) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const STACK_OF_X509_NAME_ENTRY **a, \ |
| const STACK_OF_X509_NAME_ENTRY **b), \ |
| comp))) |
| |
| #define sk_STACK_OF_X509_NAME_ENTRY_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(STACK_OF_X509_NAME_ENTRY) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(STACK_OF_X509_NAME_ENTRY) *, \ |
| sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| STACK_OF_X509_NAME_ENTRY *(*)(STACK_OF_X509_NAME_ENTRY *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(STACK_OF_X509_NAME_ENTRY *), \ |
| free_func))) |
| |
| /* SXNETID */ |
| #define sk_SXNETID_new(comp) \ |
| ((STACK_OF(SXNETID) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const SXNETID **a, const SXNETID **b), comp))) |
| |
| #define sk_SXNETID_new_null() ((STACK_OF(SXNETID) *)sk_new_null()) |
| |
| #define sk_SXNETID_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk)) |
| |
| #define sk_SXNETID_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk)); |
| |
| #define sk_SXNETID_value(sk, i) \ |
| ((SXNETID *)sk_value(CHECKED_CAST(_STACK *, const STACK_OF(SXNETID) *, sk), \ |
| (i))) |
| |
| #define sk_SXNETID_set(sk, i, p) \ |
| ((SXNETID *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), (i), \ |
| CHECKED_CAST(void *, SXNETID *, p))) |
| |
| #define sk_SXNETID_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk)) |
| |
| #define sk_SXNETID_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(SXNETID *), free_func)) |
| |
| #define sk_SXNETID_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(void *, SXNETID *, p), (where)) |
| |
| #define sk_SXNETID_delete(sk, where) \ |
| ((SXNETID *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| (where))) |
| |
| #define sk_SXNETID_delete_ptr(sk, p) \ |
| ((SXNETID *)sk_delete_ptr(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(void *, SXNETID *, p))) |
| |
| #define sk_SXNETID_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), (out_index), \ |
| CHECKED_CAST(void *, SXNETID *, p)) |
| |
| #define sk_SXNETID_shift(sk) \ |
| ((SXNETID *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk))) |
| |
| #define sk_SXNETID_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(void *, SXNETID *, p)) |
| |
| #define sk_SXNETID_pop(sk) \ |
| ((SXNETID *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk))) |
| |
| #define sk_SXNETID_dup(sk) \ |
| ((STACK_OF(SXNETID) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(SXNETID) *, sk))) |
| |
| #define sk_SXNETID_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk)) |
| |
| #define sk_SXNETID_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(SXNETID) *, sk)) |
| |
| #define sk_SXNETID_set_cmp_func(sk, comp) \ |
| ((int (*)(const SXNETID **a, const SXNETID **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const SXNETID **a, const SXNETID **b), comp))) |
| |
| #define sk_SXNETID_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(SXNETID) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(SXNETID) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), SXNETID *(*)(SXNETID *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(SXNETID *), free_func))) |
| |
| /* X509 */ |
| #define sk_X509_new(comp) \ |
| ((STACK_OF(X509) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const X509 **a, const X509 **b), comp))) |
| |
| #define sk_X509_new_null() ((STACK_OF(X509) *)sk_new_null()) |
| |
| #define sk_X509_num(sk) sk_num(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk)) |
| |
| #define sk_X509_zero(sk) sk_zero(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk)); |
| |
| #define sk_X509_value(sk, i) \ |
| ((X509 *)sk_value(CHECKED_CAST(_STACK *, const STACK_OF(X509) *, sk), (i))) |
| |
| #define sk_X509_set(sk, i, p) \ |
| ((X509 *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), (i), \ |
| CHECKED_CAST(void *, X509 *, p))) |
| |
| #define sk_X509_free(sk) sk_free(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk)) |
| |
| #define sk_X509_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509 *), free_func)) |
| |
| #define sk_X509_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(void *, X509 *, p), (where)) |
| |
| #define sk_X509_delete(sk, where) \ |
| ((X509 *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), (where))) |
| |
| #define sk_X509_delete_ptr(sk, p) \ |
| ((X509 *)sk_delete_ptr(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(void *, X509 *, p))) |
| |
| #define sk_X509_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), (out_index), \ |
| CHECKED_CAST(void *, X509 *, p)) |
| |
| #define sk_X509_shift(sk) \ |
| ((X509 *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk))) |
| |
| #define sk_X509_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(void *, X509 *, p)) |
| |
| #define sk_X509_pop(sk) \ |
| ((X509 *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk))) |
| |
| #define sk_X509_dup(sk) \ |
| ((STACK_OF(X509) *)sk_dup(CHECKED_CAST(_STACK *, const STACK_OF(X509) *, sk))) |
| |
| #define sk_X509_sort(sk) sk_sort(CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk)) |
| |
| #define sk_X509_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(X509) *, sk)) |
| |
| #define sk_X509_set_cmp_func(sk, comp) \ |
| ((int (*)(const X509 **a, const X509 **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const X509 **a, const X509 **b), \ |
| comp))) |
| |
| #define sk_X509_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(X509) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(X509) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), X509 *(*)(X509 *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509 *), free_func))) |
| |
| /* X509V3_EXT_METHOD */ |
| #define sk_X509V3_EXT_METHOD_new(comp) \ |
| ((STACK_OF(X509V3_EXT_METHOD) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, \ |
| int (*)(const X509V3_EXT_METHOD **a, const X509V3_EXT_METHOD **b), \ |
| comp))) |
| |
| #define sk_X509V3_EXT_METHOD_new_null() \ |
| ((STACK_OF(X509V3_EXT_METHOD) *)sk_new_null()) |
| |
| #define sk_X509V3_EXT_METHOD_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk)) |
| |
| #define sk_X509V3_EXT_METHOD_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk)); |
| |
| #define sk_X509V3_EXT_METHOD_value(sk, i) \ |
| ((X509V3_EXT_METHOD *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(X509V3_EXT_METHOD) *, sk), (i))) |
| |
| #define sk_X509V3_EXT_METHOD_set(sk, i, p) \ |
| ((X509V3_EXT_METHOD *)sk_set( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), (i), \ |
| CHECKED_CAST(void *, X509V3_EXT_METHOD *, p))) |
| |
| #define sk_X509V3_EXT_METHOD_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk)) |
| |
| #define sk_X509V3_EXT_METHOD_pop_free(sk, free_func) \ |
| sk_pop_free(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509V3_EXT_METHOD *), \ |
| free_func)) |
| |
| #define sk_X509V3_EXT_METHOD_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(void *, X509V3_EXT_METHOD *, p), (where)) |
| |
| #define sk_X509V3_EXT_METHOD_delete(sk, where) \ |
| ((X509V3_EXT_METHOD *)sk_delete( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), (where))) |
| |
| #define sk_X509V3_EXT_METHOD_delete_ptr(sk, p) \ |
| ((X509V3_EXT_METHOD *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(void *, X509V3_EXT_METHOD *, p))) |
| |
| #define sk_X509V3_EXT_METHOD_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| (out_index), CHECKED_CAST(void *, X509V3_EXT_METHOD *, p)) |
| |
| #define sk_X509V3_EXT_METHOD_shift(sk) \ |
| ((X509V3_EXT_METHOD *)sk_shift( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk))) |
| |
| #define sk_X509V3_EXT_METHOD_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(void *, X509V3_EXT_METHOD *, p)) |
| |
| #define sk_X509V3_EXT_METHOD_pop(sk) \ |
| ((X509V3_EXT_METHOD *)sk_pop( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk))) |
| |
| #define sk_X509V3_EXT_METHOD_dup(sk) \ |
| ((STACK_OF(X509V3_EXT_METHOD) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(X509V3_EXT_METHOD) *, sk))) |
| |
| #define sk_X509V3_EXT_METHOD_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk)) |
| |
| #define sk_X509V3_EXT_METHOD_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(X509V3_EXT_METHOD) *, sk)) |
| |
| #define sk_X509V3_EXT_METHOD_set_cmp_func(sk, comp) \ |
| ((int (*)(const X509V3_EXT_METHOD **a, const X509V3_EXT_METHOD **b)) \ |
| sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, int (*)(const X509V3_EXT_METHOD **a, \ |
| const X509V3_EXT_METHOD **b), \ |
| comp))) |
| |
| #define sk_X509V3_EXT_METHOD_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(X509V3_EXT_METHOD) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(X509V3_EXT_METHOD) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), \ |
| X509V3_EXT_METHOD *(*)(X509V3_EXT_METHOD *), copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509V3_EXT_METHOD *), \ |
| free_func))) |
| |
| /* X509_ALGOR */ |
| #define sk_X509_ALGOR_new(comp) \ |
| ((STACK_OF(X509_ALGOR) *)sk_new(CHECKED_CAST( \ |
| stack_cmp_func, int (*)(const X509_ALGOR **a, const X509_ALGOR **b), \ |
| comp))) |
| |
| #define sk_X509_ALGOR_new_null() ((STACK_OF(X509_ALGOR) *)sk_new_null()) |
| |
| #define sk_X509_ALGOR_num(sk) \ |
| sk_num(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk)) |
| |
| #define sk_X509_ALGOR_zero(sk) \ |
| sk_zero(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk)); |
| |
| #define sk_X509_ALGOR_value(sk, i) \ |
| ((X509_ALGOR *)sk_value( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(X509_ALGOR) *, sk), (i))) |
| |
| #define sk_X509_ALGOR_set(sk, i, p) \ |
| ((X509_ALGOR *)sk_set(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| (i), CHECKED_CAST(void *, X509_ALGOR *, p))) |
| |
| #define sk_X509_ALGOR_free(sk) \ |
| sk_free(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk)) |
| |
| #define sk_X509_ALGOR_pop_free(sk, free_func) \ |
| sk_pop_free( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509_ALGOR *), free_func)) |
| |
| #define sk_X509_ALGOR_insert(sk, p, where) \ |
| sk_insert(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(void *, X509_ALGOR *, p), (where)) |
| |
| #define sk_X509_ALGOR_delete(sk, where) \ |
| ((X509_ALGOR *)sk_delete(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| (where))) |
| |
| #define sk_X509_ALGOR_delete_ptr(sk, p) \ |
| ((X509_ALGOR *)sk_delete_ptr( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(void *, X509_ALGOR *, p))) |
| |
| #define sk_X509_ALGOR_find(sk, out_index, p) \ |
| sk_find(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), (out_index), \ |
| CHECKED_CAST(void *, X509_ALGOR *, p)) |
| |
| #define sk_X509_ALGOR_shift(sk) \ |
| ((X509_ALGOR *)sk_shift(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk))) |
| |
| #define sk_X509_ALGOR_push(sk, p) \ |
| sk_push(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(void *, X509_ALGOR *, p)) |
| |
| #define sk_X509_ALGOR_pop(sk) \ |
| ((X509_ALGOR *)sk_pop(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk))) |
| |
| #define sk_X509_ALGOR_dup(sk) \ |
| ((STACK_OF(X509_ALGOR) *)sk_dup( \ |
| CHECKED_CAST(_STACK *, const STACK_OF(X509_ALGOR) *, sk))) |
| |
| #define sk_X509_ALGOR_sort(sk) \ |
| sk_sort(CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk)) |
| |
| #define sk_X509_ALGOR_is_sorted(sk) \ |
| sk_is_sorted(CHECKED_CAST(_STACK *, const STACK_OF(X509_ALGOR) *, sk)) |
| |
| #define sk_X509_ALGOR_set_cmp_func(sk, comp) \ |
| ((int (*)(const X509_ALGOR **a, const X509_ALGOR **b))sk_set_cmp_func( \ |
| CHECKED_CAST(_STACK *, STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(stack_cmp_func, \ |
| int (*)(const X509_ALGOR **a, const X509_ALGOR **b), \ |
| comp))) |
| |
| #define sk_X509_ALGOR_deep_copy(sk, copy_func, free_func) \ |
| ((STACK_OF(X509_ALGOR) *)sk_deep_copy( \ |
| CHECKED_CAST(const _STACK *, const STACK_OF(X509_ALGOR) *, sk), \ |
| CHECKED_CAST(void *(*)(void *), X509_ALGOR *(*)(X509_ALGOR *), \ |
| copy_func), \ |
| CHECKED_CAST(void (*)(void *), void (*)(X509_ALGOR *), free_func))) |
| |