OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
stack.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/stack.h>
#include <openssl/objects.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define MIN_NODES   4
 

Functions

_STACKsk_dup (_STACK *sk)
 
_STACKsk_new_null (void)
 
_STACKsk_new (int(*c)(const void *, const void *))
 
int sk_insert (_STACK *st, void *data, int loc)
 
voidsk_delete_ptr (_STACK *st, void *p)
 
voidsk_delete (_STACK *st, int loc)
 
int sk_find (_STACK *st, void *data)
 
int sk_find_ex (_STACK *st, void *data)
 
int sk_push (_STACK *st, void *data)
 
int sk_unshift (_STACK *st, void *data)
 
voidsk_shift (_STACK *st)
 
voidsk_pop (_STACK *st)
 
void sk_zero (_STACK *st)
 
void sk_pop_free (_STACK *st, void(*func)(void *))
 
void sk_free (_STACK *st)
 
int sk_num (const _STACK *st)
 
voidsk_value (const _STACK *st, int i)
 
voidsk_set (_STACK *st, int i, void *value)
 
void sk_sort (_STACK *st)
 
int sk_is_sorted (const _STACK *st)
 

Variables

const char STACK_version [] ="Stack" OPENSSL_VERSION_PTEXT
 
int(*)(const void *, const void *) sk_set_cmp_func (_STACK *sk, int(*c)(const void *, const void *))
 

Macro Definition Documentation

#define MIN_NODES   4

Definition at line 74 of file stack.c.

Function Documentation

void* sk_delete ( _STACK st,
int  loc 
)

Definition at line 190 of file stack.c.

void* sk_delete_ptr ( _STACK st,
void p 
)

Definition at line 180 of file stack.c.

_STACK* sk_dup ( _STACK sk)

Definition at line 92 of file stack.c.

int sk_find ( _STACK st,
void data 
)

Definition at line 235 of file stack.c.

int sk_find_ex ( _STACK st,
void data 
)

Definition at line 239 of file stack.c.

void sk_free ( _STACK st)

Definition at line 287 of file stack.c.

int sk_insert ( _STACK st,
void data,
int  loc 
)

Definition at line 142 of file stack.c.

int sk_is_sorted ( const _STACK st)

Definition at line 329 of file stack.c.

_STACK* sk_new ( int(*)(const void *, const void *)  c)

Definition at line 120 of file stack.c.

_STACK* sk_new_null ( void  )

Definition at line 115 of file stack.c.

int sk_num ( const _STACK st)

Definition at line 294 of file stack.c.

void* sk_pop ( _STACK st)

Definition at line 261 of file stack.c.

void sk_pop_free ( _STACK st,
void(*)(void *)  func 
)

Definition at line 276 of file stack.c.

int sk_push ( _STACK st,
void data 
)

Definition at line 244 of file stack.c.

void* sk_set ( _STACK st,
int  i,
void value 
)

Definition at line 306 of file stack.c.

void* sk_shift ( _STACK st)

Definition at line 254 of file stack.c.

void sk_sort ( _STACK st)

Definition at line 312 of file stack.c.

int sk_unshift ( _STACK st,
void data 
)

Definition at line 249 of file stack.c.

void* sk_value ( const _STACK st,
int  i 
)

Definition at line 300 of file stack.c.

void sk_zero ( _STACK st)

Definition at line 268 of file stack.c.

Variable Documentation

int(*)(const void *, const void *) sk_set_cmp_func(_STACK *sk, int(*c)(const void *, const void *))

Definition at line 80 of file stack.c.

const char STACK_version[] ="Stack" OPENSSL_VERSION_PTEXT

Definition at line 76 of file stack.c.