2011-04-29 23:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
    ! fixed BIO_TEST_FLAGS(), SSL_SET_MTU() to be always defined on prg level
This commit is contained in:
Viktor Szakats
2011-04-29 21:29:38 +00:00
parent 2b98d23bec
commit 56edea78f6
3 changed files with 11 additions and 4 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-04-29 23:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
* contrib/hbssl/bio.c
! fixed BIO_TEST_FLAGS(), SSL_SET_MTU() to be always defined on prg level
2011-04-29 18:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
! fixed time checking in *nix version of hb_fsPipeIsData()

View File

@@ -190,17 +190,19 @@ HB_FUNC( BIO_GET_FLAGS )
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
#if ! defined( HB_OPENSSL_OLD_OSX_ )
HB_FUNC( BIO_TEST_FLAGS )
{
BIO * bio = hb_BIO_par( 1 );
if( bio )
#if ! defined( HB_OPENSSL_OLD_OSX_ )
hb_retni( BIO_test_flags( bio, hb_parni( 2 ) ) );
#else
hb_retni( 0 );
#endif
else
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
#endif
HB_FUNC( BIO_SET_FD )
{

View File

@@ -1252,20 +1252,20 @@ HB_FUNC( SSL_GET_MODE )
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
#if ! defined( HB_OPENSSL_OLD_OSX_ )
HB_FUNC( SSL_SET_MTU )
{
if( hb_SSL_is( 1 ) )
{
#if ! defined( HB_OPENSSL_OLD_OSX_ )
SSL * ssl = hb_SSL_par( 1 );
if( ssl )
SSL_set_mtu( ssl, hb_parnl( 2 ) );
#endif
}
else
hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
#endif
HB_FUNC( SSL_GET_CERTIFICATE )
{