Update the test program to compile and run with the changes I just made
to ENGINE_new (and ENGINE_get_struct_size).
This commit is contained in:
parent
0e0e569cbf
commit
bb51f21728
@ -94,16 +94,16 @@ int main(int argc, char *argv[])
|
|||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
memset(block, 0, 512 * sizeof(ENGINE *));
|
memset(block, 0, 512 * sizeof(ENGINE *));
|
||||||
if(((new_h1 = ENGINE_new(NULL)) == NULL) ||
|
if(((new_h1 = ENGINE_new()) == NULL) ||
|
||||||
!ENGINE_set_id(new_h1, "test_id0") ||
|
!ENGINE_set_id(new_h1, "test_id0") ||
|
||||||
!ENGINE_set_name(new_h1, "First test item") ||
|
!ENGINE_set_name(new_h1, "First test item") ||
|
||||||
((new_h2 = ENGINE_new(NULL)) == NULL) ||
|
((new_h2 = ENGINE_new()) == NULL) ||
|
||||||
!ENGINE_set_id(new_h2, "test_id1") ||
|
!ENGINE_set_id(new_h2, "test_id1") ||
|
||||||
!ENGINE_set_name(new_h2, "Second test item") ||
|
!ENGINE_set_name(new_h2, "Second test item") ||
|
||||||
((new_h3 = ENGINE_new(NULL)) == NULL) ||
|
((new_h3 = ENGINE_new()) == NULL) ||
|
||||||
!ENGINE_set_id(new_h3, "test_id2") ||
|
!ENGINE_set_id(new_h3, "test_id2") ||
|
||||||
!ENGINE_set_name(new_h3, "Third test item") ||
|
!ENGINE_set_name(new_h3, "Third test item") ||
|
||||||
((new_h4 = ENGINE_new(NULL)) == NULL) ||
|
((new_h4 = ENGINE_new()) == NULL) ||
|
||||||
!ENGINE_set_id(new_h4, "test_id3") ||
|
!ENGINE_set_id(new_h4, "test_id3") ||
|
||||||
!ENGINE_set_name(new_h4, "Fourth test item"))
|
!ENGINE_set_name(new_h4, "Fourth test item"))
|
||||||
{
|
{
|
||||||
@ -198,7 +198,7 @@ int main(int argc, char *argv[])
|
|||||||
id = strdup(buf);
|
id = strdup(buf);
|
||||||
sprintf(buf, "Fake engine type %i", loop);
|
sprintf(buf, "Fake engine type %i", loop);
|
||||||
name = strdup(buf);
|
name = strdup(buf);
|
||||||
if(((block[loop] = ENGINE_new(NULL)) == NULL) ||
|
if(((block[loop] = ENGINE_new()) == NULL) ||
|
||||||
!ENGINE_set_id(block[loop], id) ||
|
!ENGINE_set_id(block[loop], id) ||
|
||||||
!ENGINE_set_name(block[loop], name))
|
!ENGINE_set_name(block[loop], name))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user