diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-30 15:25:47 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-30 15:25:47 +0000 |
commit | ee8ba0b26c101262521a0bc10233cdd5a136d126 (patch) | |
tree | 0d21ce8dd4940180b7604c60d4a83950315a426d /crypto/stack/safestack.h | |
parent | 838d25a1ec0011fde245a22ac1cf6cddc518ddfb (diff) | |
download | openssl-ee8ba0b26c101262521a0bc10233cdd5a136d126.zip openssl-ee8ba0b26c101262521a0bc10233cdd5a136d126.tar.gz openssl-ee8ba0b26c101262521a0bc10233cdd5a136d126.tar.bz2 |
Another safe stack.
Diffstat (limited to 'crypto/stack/safestack.h')
-rw-r--r-- | crypto/stack/safestack.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h index d0823c0..3893498 100644 --- a/crypto/stack/safestack.h +++ b/crypto/stack/safestack.h @@ -82,7 +82,8 @@ int (*sk_##type##_set_cmp_func(STACK_OF(type) *sk, \ STACK_OF(type) *sk_##type##_dup(STACK_OF(type) *sk); \ void sk_##type##_pop_free(STACK_OF(type) *sk,void (*func)(type *)); \ type *sk_##type##_shift(STACK_OF(type) *sk); \ -type *sk_##type##_pop(STACK_OF(type) *sk); +type *sk_##type##_pop(STACK_OF(type) *sk); \ +void sk_##type##_sort(STACK_OF(type) *sk); #define IMPLEMENT_STACK_OF(type) \ STACK_OF(type) *sk_##type##_new(int (*cmp)(type **,type **)) \ @@ -121,6 +122,8 @@ void sk_##type##_pop_free(STACK_OF(type) *sk,void (*func)(type *)) \ type *sk_##type##_shift(STACK_OF(type) *sk) \ { return (type *)sk_shift((STACK *)sk); } \ type *sk_##type##_pop(STACK_OF(type) *sk) \ - { return (type *)sk_pop((STACK *)sk); } + { return (type *)sk_pop((STACK *)sk); } \ +void sk_##type##_sort(STACK_OF(type) *sk) \ + { sk_sort((STACK *)sk); } #endif /* ndef HEADER_SAFESTACK_H */ |