From 56edea78f6be24eb452c8b8268b397f74a491663 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 29 Apr 2011 21:29:38 +0000 Subject: [PATCH] 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 --- harbour/ChangeLog | 5 +++++ harbour/contrib/hbssl/bio.c | 6 ++++-- harbour/contrib/hbssl/ssl.c | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0e9f45d6ad..8839307c18 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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() diff --git a/harbour/contrib/hbssl/bio.c b/harbour/contrib/hbssl/bio.c index 7594869edc..8f3d0b1380 100644 --- a/harbour/contrib/hbssl/bio.c +++ b/harbour/contrib/hbssl/bio.c @@ -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 ) { diff --git a/harbour/contrib/hbssl/ssl.c b/harbour/contrib/hbssl/ssl.c index 7364f34fb0..3f82116347 100644 --- a/harbour/contrib/hbssl/ssl.c +++ b/harbour/contrib/hbssl/ssl.c @@ -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 ) {