Add missing sk_<type>_unshift() function to safestack.h

This commit is contained in:
Ralf S. Engelschall 1999-05-04 10:15:02 +00:00
parent 20b85fdd76
commit dee75ecf9c
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,9 @@
Changes between 0.9.2b and 0.9.3
*) Add missing sk_<type>_unshift() function to safestack.h
[Ralf S. Engelschall]
*) Convert casted X509_INFO stacks to type-safe STACK_OF(X509_INFO).
[Ralf S. Engelschall]

View File

@ -72,6 +72,7 @@ type *sk_##type##_value(const STACK_OF(type) *sk,int n); \
type *sk_##type##_set(STACK_OF(type) *sk,int n,type *v); \
void sk_##type##_zero(STACK_OF(type) *sk); \
int sk_##type##_push(STACK_OF(type) *sk,type *v); \
int sk_##type##_unshift(STACK_OF(type) *sk,type *v); \
int sk_##type##_find(STACK_OF(type) *sk,type *v); \
type *sk_##type##_delete(STACK_OF(type) *sk,int n); \
void sk_##type##_delete_ptr(STACK_OF(type) *sk,type *v); \
@ -100,6 +101,8 @@ void sk_##type##_zero(STACK_OF(type) *sk) \
{ sk_zero((STACK *)sk); } \
int sk_##type##_push(STACK_OF(type) *sk,type *v) \
{ return sk_push((STACK *)sk,(char *)v); } \
int sk_##type##_unshift(STACK_OF(type) *sk,type *v) \
{ return sk_unshift((STACK *)sk,(char *)v); } \
int sk_##type##_find(STACK_OF(type) *sk,type *v) \
{ return sk_find((STACK *)sk,(char *)v); } \
type *sk_##type##_delete(STACK_OF(type) *sk,int n) \