Skip to content

Commit

Permalink
Try to fix intermittent CI failures in sslapitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-edlinger committed Mar 7, 2024
1 parent d6c7fea commit bc023f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/tls-provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ static int tls_prov_get_capabilities(void *provctx, const char *capability,
}

/* Register our 2 groups */
OPENSSL_assert(xor_group.group_id >= 65024
&& xor_group.group_id < 65279 - NUM_DUMMY_GROUPS);
ret = cb(xor_group_params, arg);
ret &= cb(xor_kemgroup_params, arg);

Expand All @@ -196,6 +198,7 @@ static int tls_prov_get_capabilities(void *provctx, const char *capability,

for (i = 0; i < NUM_DUMMY_GROUPS; i++) {
OSSL_PARAM dummygroup[OSSL_NELEM(xor_group_params)];
unsigned int dummygroup_id;

memcpy(dummygroup, xor_group_params, sizeof(xor_group_params));

Expand All @@ -211,7 +214,8 @@ static int tls_prov_get_capabilities(void *provctx, const char *capability,
dummygroup[0].data = dummy_group_names[i];
dummygroup[0].data_size = strlen(dummy_group_names[i]) + 1;
/* assign unique group IDs also to dummy groups for registration */
*((int *)(dummygroup[3].data)) = 65279 - NUM_DUMMY_GROUPS + i;
dummygroup_id = 65279 - NUM_DUMMY_GROUPS + i;
dummygroup[3].data = (unsigned char*)&dummygroup_id;
ret &= cb(dummygroup, arg);
}

Expand Down

0 comments on commit bc023f9

Please sign in to comment.