2011-07-12 16:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbssl/ssl.c
    * previous patch modified along with Przemek's suggestion
      to also RTE for -1 values passed
This commit is contained in:
Viktor Szakats
2011-07-12 14:09:37 +00:00
parent 50d3cac0ba
commit 0a46c3e12b
2 changed files with 17 additions and 6 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-07-12 16:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
* previous patch modified along with Przemek's suggestion
to also RTE for -1 values passed
2011-07-12 16:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/macro/macrolex.c
! added missing YY token assignment I removed by mistake in last

View File

@@ -391,12 +391,14 @@ HB_FUNC( SSL_TOTAL_RENEGOTIATIONS )
HB_FUNC( SSL_SET_FD )
{
if( hb_SSL_is( 1 ) && HB_ISNUM( 2 ) )
int iSD;
if( hb_SSL_is( 1 ) && ( iSD = hb_parnidef( 2, -1 ) ) != -1 )
{
SSL * ssl = hb_SSL_par( 1 );
if( ssl )
hb_retni( SSL_set_fd( ssl, hb_parni( 2 ) ) );
hb_retni( SSL_set_fd( ssl, iSD ) );
}
else
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
@@ -404,12 +406,14 @@ HB_FUNC( SSL_SET_FD )
HB_FUNC( SSL_SET_RFD )
{
if( hb_SSL_is( 1 ) && HB_ISNUM( 2 ) )
int iSD;
if( hb_SSL_is( 1 ) && ( iSD = hb_parnidef( 2, -1 ) ) != -1 )
{
SSL * ssl = hb_SSL_par( 1 );
if( ssl )
hb_retni( SSL_set_rfd( ssl, hb_parni( 2 ) ) );
hb_retni( SSL_set_rfd( ssl, iSD ) );
}
else
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
@@ -417,12 +421,14 @@ HB_FUNC( SSL_SET_RFD )
HB_FUNC( SSL_SET_WFD )
{
if( hb_SSL_is( 1 ) && HB_ISNUM( 2 ) )
int iSD;
if( hb_SSL_is( 1 ) && ( iSD = hb_parnidef( 2, -1 ) ) != -1 )
{
SSL * ssl = hb_SSL_par( 1 );
if( ssl )
hb_retni( SSL_set_wfd( ssl, hb_parni( 2 ) ) );
hb_retni( SSL_set_wfd( ssl, iSD ) );
}
else
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );