From: Ralf S. Engelschall Date: Tue, 4 May 1999 10:15:02 +0000 (+0000) Subject: Add missing sk__unshift() function to safestack.h X-Git-Tag: OpenSSL_0_9_3beta1~163 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dee75ecf9cdc1f607308d13415f410bbb025609e;p=oweals%2Fopenssl.git Add missing sk__unshift() function to safestack.h --- diff --git a/CHANGES b/CHANGES index 18cc5f0d4a..5a13c34705 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ Changes between 0.9.2b and 0.9.3 + *) Add missing sk__unshift() function to safestack.h + [Ralf S. Engelschall] + *) Convert casted X509_INFO stacks to type-safe STACK_OF(X509_INFO). [Ralf S. Engelschall] diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h index 48e695fb27..3c9fdba658 100644 --- a/crypto/stack/safestack.h +++ b/crypto/stack/safestack.h @@ -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) \