summaryrefslogtreecommitdiffstats
path: root/crypto/stack/safestack.h
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-05-30 15:25:47 +0000
committerBen Laurie <ben@openssl.org>1999-05-30 15:25:47 +0000
commitee8ba0b26c101262521a0bc10233cdd5a136d126 (patch)
tree0d21ce8dd4940180b7604c60d4a83950315a426d /crypto/stack/safestack.h
parent838d25a1ec0011fde245a22ac1cf6cddc518ddfb (diff)
Another safe stack.
Diffstat (limited to 'crypto/stack/safestack.h')
-rw-r--r--crypto/stack/safestack.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h
index d0823c0d0a..38934981e3 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 */