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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user