fixed compilation issues on solaris 8

This commit is contained in:
hyung-hwan 2017-09-09 15:03:55 +00:00
parent 70f8765ada
commit 936426de42
2 changed files with 8 additions and 6 deletions

View File

@ -844,6 +844,7 @@ static int dev_sck_ioctl (qse_aio_dev_t* dev, int cmd, void* arg)
#endif
}
#if defined(USE_SSL)
if (rdev->ssl_ctx)
{
SSL_CTX_free (rdev->ssl_ctx);
@ -855,6 +856,7 @@ static int dev_sck_ioctl (qse_aio_dev_t* dev, int cmd, void* arg)
rdev->ssl = QSE_NULL;
}
}
#endif
if (bnd->options & QSE_AIO_DEV_SCK_BIND_SSL)
{

View File

@ -25,9 +25,9 @@ static int test1 ()
for (i = 0; i < QSE_COUNTOF(test_data); i++)
{
qse_uint8_t tmp[16];
qse_uint8_t tmp[QSE_BLOWFISH_BLOCK_SIZE];
memcpy (tmp, test_data[i], QSE_BLOWFISH_BLOCK_SIZE);
qse_blowfish_encrypt_block (&bf, tmp);
qse_blowfish_encrypt_block (&bf, &tmp);
qse_printf (QSE_T("%05d ENC => "), i);
if (memcmp (tmp, test_data[i], QSE_BLOWFISH_BLOCK_SIZE) == 0)
@ -39,7 +39,7 @@ static int test1 ()
qse_printf (QSE_T("OK\n"));
}
qse_blowfish_decrypt_block (&bf, tmp);
qse_blowfish_decrypt_block (&bf, &tmp);
qse_printf (QSE_T("%05d DEC => "), i);
if (memcmp (tmp, test_data[i], QSE_BLOWFISH_BLOCK_SIZE) != 0)
{
@ -72,9 +72,9 @@ static int test2 ()
for (i = 0; i < QSE_COUNTOF(test_data); i++)
{
qse_uint8_t tmp[16];
qse_uint8_t tmp[QSE_KSEED_BLOCK_SIZE];
memcpy (tmp, test_data[i], QSE_KSEED_BLOCK_SIZE);
qse_kseed_encrypt_block (&bf, tmp);
qse_kseed_encrypt_block (&bf, &tmp);
qse_printf (QSE_T("%05d ENC => "), i);
if (memcmp (tmp, test_data[i], QSE_KSEED_BLOCK_SIZE) == 0)
@ -86,7 +86,7 @@ static int test2 ()
qse_printf (QSE_T("OK\n"));
}
qse_kseed_decrypt_block (&bf, tmp);
qse_kseed_decrypt_block (&bf, &tmp);
qse_printf (QSE_T("%05d DEC => "), i);
if (memcmp (tmp, test_data[i], QSE_KSEED_BLOCK_SIZE) != 0)
{