Set correct types in wolfSSL_sk_*_new functions

- Use WOLF_SK_COMPARE_CB() to generate the correct types instead of using void* for the callback parameters.
- Remove WOLFSSL_STACK.comp entirely since it is not used anywhere. Ignore input parameters that used to set this member.
This commit is contained in:
Juliusz Sosinowicz
2022-09-08 11:55:32 +02:00
parent 4066568315
commit 28af88788a
7 changed files with 28 additions and 62 deletions

View File

@@ -19312,7 +19312,6 @@ int wolfSSL_sk_push(WOLFSSL_STACK* sk, const void *data)
sk->num += 1;
#ifdef OPENSSL_ALL
node->comp = sk->comp;
node->hash_fn = sk->hash_fn;
node->hash = sk->hash;
sk->hash = 0;