diff options
author | Geoff Thorpe <geoff@openssl.org> | 2000-12-04 03:02:44 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2000-12-04 03:02:44 +0000 |
commit | 97b1719583b3b0e096fdba29573678ac6fd6bae3 (patch) | |
tree | 3b3f24532f736677ac53571f55dfe0ef8935be63 /ssl/ssl_lib.c | |
parent | b0dc680f71db4f79c01b41975f869f7346542098 (diff) |
Make the remaining LHASH macro changes. This should leave no remaining
cases of function pointer casting in lh_new() calls - and leave only the
lh_doall and lh_doall_arg cases to be finished.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 2372353455..685fc5560a 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1101,6 +1101,9 @@ int SSL_SESSION_cmp(SSL_SESSION *a,SSL_SESSION *b) return(memcmp(a->session_id,b->session_id,a->session_id_length)); } +static IMPLEMENT_LHASH_HASH_FN(SSL_SESSION_hash, SSL_SESSION *) +static IMPLEMENT_LHASH_COMP_FN(SSL_SESSION_cmp, SSL_SESSION *) + SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) { SSL_CTX *ret=NULL; @@ -1164,8 +1167,8 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) ret->default_passwd_callback_userdata=NULL; ret->client_cert_cb=NULL; - ret->sessions=lh_new((LHASH_HASH_FN_TYPE)SSL_SESSION_hash, - (LHASH_COMP_FN_TYPE)SSL_SESSION_cmp); + ret->sessions=lh_new(LHASH_HASH_FN(SSL_SESSION_hash), + LHASH_COMP_FN(SSL_SESSION_cmp)); if (ret->sessions == NULL) goto err; ret->cert_store=X509_STORE_new(); if (ret->cert_store == NULL) goto err; |