Lines Matching refs:sk
141 OPENSSL_EXPORT size_t sk_num(const _STACK *sk);
145 OPENSSL_EXPORT void sk_zero(_STACK *sk);
149 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i);
153 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p);
157 OPENSSL_EXPORT void sk_free(_STACK *sk);
163 OPENSSL_EXPORT void sk_pop_free_ex(_STACK *sk,
171 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where);
176 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where);
181 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, const void *p);
194 OPENSSL_EXPORT int sk_find(const _STACK *sk, size_t *out_index, const void *p,
200 OPENSSL_EXPORT void *sk_shift(_STACK *sk);
204 OPENSSL_EXPORT size_t sk_push(_STACK *sk, void *p);
208 OPENSSL_EXPORT void *sk_pop(_STACK *sk);
212 OPENSSL_EXPORT _STACK *sk_dup(const _STACK *sk);
217 OPENSSL_EXPORT void sk_sort(_STACK *sk);
221 OPENSSL_EXPORT int sk_is_sorted(const _STACK *sk);
225 OPENSSL_EXPORT stack_cmp_func sk_set_cmp_func(_STACK *sk, stack_cmp_func comp);
231 const _STACK *sk, void *(*call_copy_func)(stack_copy_func, void *),
243 OPENSSL_EXPORT void sk_pop_free(_STACK *sk, stack_free_func free_func);
312 OPENSSL_INLINE size_t sk_##name##_num(const STACK_OF(name) *sk) { \
313 return sk_num((const _STACK *)sk); \
316 OPENSSL_INLINE void sk_##name##_zero(STACK_OF(name) *sk) { \
317 sk_zero((_STACK *)sk); \
320 OPENSSL_INLINE ptrtype sk_##name##_value(const STACK_OF(name) *sk, \
322 return (ptrtype)sk_value((const _STACK *)sk, i); \
325 OPENSSL_INLINE ptrtype sk_##name##_set(STACK_OF(name) *sk, size_t i, \
327 return (ptrtype)sk_set((_STACK *)sk, i, (void *)p); \
330 OPENSSL_INLINE void sk_##name##_free(STACK_OF(name) * sk) { \
331 sk_free((_STACK *)sk); \
335 STACK_OF(name) * sk, stack_##name##_free_func free_func) { \
336 sk_pop_free_ex((_STACK *)sk, sk_##name##_call_free_func, \
340 OPENSSL_INLINE size_t sk_##name##_insert(STACK_OF(name) *sk, ptrtype p, \
342 return sk_insert((_STACK *)sk, (void *)p, where); \
345 OPENSSL_INLINE ptrtype sk_##name##_delete(STACK_OF(name) *sk, \
347 return (ptrtype)sk_delete((_STACK *)sk, where); \
350 OPENSSL_INLINE ptrtype sk_##name##_delete_ptr(STACK_OF(name) *sk, \
352 return (ptrtype)sk_delete_ptr((_STACK *)sk, (const void *)p); \
355 OPENSSL_INLINE int sk_##name##_find(const STACK_OF(name) *sk, \
357 return sk_find((const _STACK *)sk, out_index, (const void *)p, \
361 OPENSSL_INLINE ptrtype sk_##name##_shift(STACK_OF(name) *sk) { \
362 return (ptrtype)sk_shift((_STACK *)sk); \
365 OPENSSL_INLINE size_t sk_##name##_push(STACK_OF(name) *sk, ptrtype p) { \
366 return sk_push((_STACK *)sk, (void *)p); \
369 OPENSSL_INLINE ptrtype sk_##name##_pop(STACK_OF(name) *sk) { \
370 return (ptrtype)sk_pop((_STACK *)sk); \
373 OPENSSL_INLINE STACK_OF(name) * sk_##name##_dup(const STACK_OF(name) *sk) { \
374 return (STACK_OF(name) *)sk_dup((const _STACK *)sk); \
377 OPENSSL_INLINE void sk_##name##_sort(STACK_OF(name) *sk) { \
378 sk_sort((_STACK *)sk); \
381 OPENSSL_INLINE int sk_##name##_is_sorted(const STACK_OF(name) *sk) { \
382 return sk_is_sorted((const _STACK *)sk); \
386 STACK_OF(name) *sk, stack_##name##_cmp_func comp) { \
387 return (stack_##name##_cmp_func)sk_set_cmp_func((_STACK *)sk, \
392 sk_##name##_deep_copy(const STACK_OF(name) *sk, \
396 (const _STACK *)sk, sk_##name##_call_copy_func, \
448 static void Free(Stack *sk) { sk_free(reinterpret_cast<_STACK *>(sk)); }
456 static void Free(Stack *sk) {
460 sk_pop_free_ex(reinterpret_cast<_STACK *>(sk),
474 StackIteratorImpl(const Stack *sk, size_t idx) : sk_(sk), idx_(idx) {}
515 PushToStack(Stack *sk,
517 if (!sk_push(reinterpret_cast<_STACK *>(sk), elem.get())) {
529 inline bssl::internal::StackIterator<Stack> begin(const Stack *sk) {
530 return bssl::internal::StackIterator<Stack>(sk, 0);
534 inline bssl::internal::StackIterator<Stack> end(const Stack *sk) {
536 sk, sk_num(reinterpret_cast<const _STACK *>(sk)));