cast enumerated algorithm type as int
This commit is contained in:
@@ -628,15 +628,16 @@ static void filter_suite(private_tls_crypto_t *this,
|
|||||||
{
|
{
|
||||||
const char *plugin_name;
|
const char *plugin_name;
|
||||||
suite_algs_t current;
|
suite_algs_t current;
|
||||||
int i, remaining = 0;
|
int *current_alg, i, remaining = 0;
|
||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
|
|
||||||
memset(¤t, 0, sizeof(current));
|
memset(¤t, 0, sizeof(current));
|
||||||
|
current_alg = (int*)((char*)¤t + offset);
|
||||||
|
|
||||||
for (i = 0; i < *count; i++)
|
for (i = 0; i < *count; i++)
|
||||||
{
|
{
|
||||||
enumerator = create_enumerator(lib->crypto);
|
enumerator = create_enumerator(lib->crypto);
|
||||||
while (enumerator->enumerate(enumerator, ((char*)¤t) + offset),
|
while (enumerator->enumerate(enumerator, current_alg, &plugin_name))
|
||||||
&plugin_name)
|
|
||||||
{
|
{
|
||||||
if ((suites[i].encr == ENCR_NULL ||
|
if ((suites[i].encr == ENCR_NULL ||
|
||||||
!current.encr || current.encr == suites[i].encr) &&
|
!current.encr || current.encr == suites[i].encr) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user