diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-06-16 23:29:26 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-06-16 23:29:26 +0000 |
commit | 3aceb94b9e6ac4722b96d4fb1cf7e1a4358941e0 (patch) | |
tree | 9adfd28b708d52c0f0efac181d7cfadc0f1ecb9a /crypto/stack/stack.c | |
parent | fb3e1eeb9364bc4d895cbdc5c048831cc7790c20 (diff) | |
download | openssl-3aceb94b9e6ac4722b96d4fb1cf7e1a4358941e0.zip openssl-3aceb94b9e6ac4722b96d4fb1cf7e1a4358941e0.tar.gz openssl-3aceb94b9e6ac4722b96d4fb1cf7e1a4358941e0.tar.bz2 |
Safe stack reorganisation in terms of function casts.
After some messing around this seems to work but needs
a few more tests. Working out the syntax for sk_set_cmp_func()
(cast it to a function that itself returns a function pointer)
was painful :-(
Needs some testing to see what other compilers think of this
syntax.
Also needs similar stuff for ASN1_SET_OF etc etc.
Diffstat (limited to 'crypto/stack/stack.c')
-rw-r--r-- | crypto/stack/stack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index b3e32a7..2eb531f 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -109,6 +109,11 @@ err: return(NULL); } +STACK *sk_new_null(void) + { + return sk_new((int (*)(const char * const *, const char * const *))NULL); + } + STACK *sk_new(int (*c)(const char * const *, const char * const *)) { STACK *ret; |