Commit Graph

11471 Commits

Author SHA1 Message Date
Viktor Szakats
a67b63175a 2009-07-23 12:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/dates2.c
    * Renamed DAYSINMONTH() to HBMISC_DAYSINMONTH(),
      to avoid collision with hbct function with the same
      name, but different functionality.
    - Deleted functions below from hbmisc library:
      EOM(), BOM(), WOM(), DOY(), WOY(), EOY(), BOY()
      They have superior alternatives with the same name
      in hbct lib, please use those.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/tests/pem.prg
  + contrib/hbssl/tests/pubkey.pem
  * contrib/hbssl/tests/crypt.prg
  * contrib/hbssl/err.c
    + Added EVP_SEALINIT() (under development)
    + Added EVP_SEALUPDATE(), EVP_SEALFINAL().
    + Added SSL_SET_MSG_CALLBACK() (it's a debug function really,
      and the solution is slightly hackish, as I have to access
      OpenSSL structure and Harbour item freeing needs to be done
      manually. Anyhow it can be excluded from builds.
    + Added ERR_LOAD_CRYPTO_STRINGS().
    + Added ERR_PRINT_ERRORS(). (very useful)
    + Added ERR_FREE_STRINGS().

  * include/hbapi.h
  * source/vm/arrays.c
  * source/vm/extend.c
  * source/debug/dbgentry.c
  * source/rtl/hbgtcore.c
    ! Renamed API function hb_arraySetCPtr() to hb_arraySetCLPtr().
      Old function name still available for compatibility.
2009-07-23 10:03:20 +00:00
Viktor Szakats
8aa43735fc 2009-07-23 01:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbssl/tests/pem.prg
  + contrib/hbssl/tests/privkey.pem
  * contrib/hbssl/pem.c
    + Added these public/private key loading functions:
      PEM_READ_BIO_PRIVATEKEY()
      PEM_READ_BIO_PUBKEY()
      PEM_READ_BIO_RSAPRIVATEKEY()
      PEM_READ_BIO_RSAPUBLICKEY()
      PEM_READ_BIO_RSA_PUBKEY()
      PEM_READ_BIO_DSAPRIVATEKEY()
      PEM_READ_BIO_DSA_PUBKEY()
      PEM_READ_BIO_DSAPARAMS()
      PEM_READ_BIO_DHPARAMS()
      PEM_READ_BIO_X509()
      PEM_READ_BIO_X509_AUX()
      PEM_READ_BIO_X509_REQ()
      PEM_READ_BIO_X509_CRL()
      PEM_READ_BIO_PKCS7()
      Usage:
         PEM_READ_BIO_*( <ptrBIO> | <cFileName> | <fhnd>, <bPasswordCB> | <cPassword> ) -> ptr | NULL
         To load from memory, BIO_new_mem_buf() can be used, see in test.
         <bPasswordCB> is a codeblock which receive a logical parameter indicating 
         write/read mode (.T. = write) a returns password as string or else (like NIL) for failure.
2009-07-22 23:10:18 +00:00
Viktor Szakats
2f3f3252de 2009-07-22 22:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    ! Fixed GTSLN exclusion if HB_COMMERCE is set.
      This is rrequired to communicate this fact with 
      postinst.sh (hb-func.sh -> hbmk script and hbmk.cfg)
      Thanks to Tamas Tevesz for report and tests.

  ; Reported libharu WinCE failures and Pelles C warnings:
    http://bugs.libharu.org/view.php?id=22
    http://bugs.libharu.org/view.php?id=21
2009-07-22 20:12:26 +00:00
Viktor Szakats
e8ce337069 2009-07-22 19:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * make_gnu.bat
    * Tweak to previous fix, it didn't work. Falling back to
      less elegant solution.

  * external/libhpdf/Makefile
  + external/libhpdf/_hbhbpdf.c
    + Added ugly hack to make it build on mingwarm targets.

  * contrib/hbssl/Makefile
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/evpmd.c
    * Changed to make it build on darwin.
      It's be better to control feature automatically by
      OPENSSL_VERSION_NUMBER, but documentation is very scarce.

  * utils/hbmk2/hbmk2.prg
    ! Temp fix to not pass runflags to darwin GUI programs
      (started via 'open'), until we find out how to make it.
      Prevsiously 'open' considered extra options as its own,
      and failed.
2009-07-22 17:33:12 +00:00
Viktor Szakats
bbc434f9a2 2009-07-22 17:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* make_gnu.bat
    ! Added SHLVL=0 to make commands to force native shell
      even if sh shell is found in the PATH (f.e. when msys or
      cygwin is present there, for mingwarm targets, cygwin is
      even required.)

  * external/libhpdf/Makefile
    + Made it compile with mingwarm.

  * include/hbextern.ch
    ! Fixed typo in prev.

  * contrib/hbssl/pem.c
    + Added two new functions. Under testing.
      PEM_READ_BIO_RSAPRIVATEKEY()
      PEM_READ_BIO_RSAPUBLICKEY()
2009-07-22 15:52:10 +00:00
Viktor Szakats
ca1de835cd 2009-07-22 15:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbcrypt
    * Deleted after move. (SVN got confused if done if previous pass)
2009-07-22 13:59:16 +00:00
Viktor Szakats
40a7012cb7 2009-07-22 15:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * include/hbextern.ch
  * contrib/Makefile
  * source/rtl/Makefile
  + source/rtl/sha1.c
  + source/rtl/sha1.h
  + source/rtl/hbsha1hm.c
  + source/rtl/sha2.c
  + source/rtl/sha2.h
  + source/rtl/hbsha2hm.c
  + source/rtl/sha1hmac.c
  + source/rtl/sha1hmac.h
  + source/rtl/hbsha1.c
  + source/rtl/sha2hmac.c
  + source/rtl/sha2hmac.h
  + source/rtl/hbsha2.c
  + tests/testsha1.prg
  + tests/testsha2.prg
    * hbcrypt contrib library merged into the core.
2009-07-22 13:53:21 +00:00
Viktor Szakats
2849c6e191 2009-07-22 15:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * source/common/hbstr.c
  * source/rtl/hbmd5.c
    * Moved (and somewhat standardized and renamed) mem to hex C
      function from hbm5/rtl to common lib.

  * bin/hb-func.sh
    ! Fixed double '%' chars in hbmk.cfg generation.

  * contrib/hbcrypt/Makefile
  + contrib/hbcrypt/hbsha1.c
  + contrib/hbcrypt/hbsha1hm.c
  + contrib/hbcrypt/tests/testsha1.prg
    + Added HB_SHA1() and HB_HMAC_SHA1() functions.

  * source/rtl/hbmd5.c
    * Changed meaning of second boolean parameter. From
      now on a .T. has to be passed to get binary output.
      (I won't list this as a incompatible, as the new
      parameter has just been introduced)
    ; by now HB_MD5() and HB_SHA*() functions are synced 
      in functionality.

  * contrib/hbcrypt/hbsha1.c
  * contrib/hbcrypt/hbsha2.c
  * contrib/hbcrypt/hbsha1hm.c
  * contrib/hbcrypt/hbsha2hm.c
  * contrib/hbcrypt/tests/testsha2.prg
    * Changed all SHA2 functions to returned digest in hex
      format by default. The binary format can be requested by
      passing .T. as an extra parameter.
      INCOMPATIBLE: Please update your sources if you used
                    these functions. Add .T. parameter to keep
                    current workings.

  * contrib/hbcurl/hbcurl.c
    % Cleaned types (no BYTE, no BOOL, deleted unnecessary casts).
      Only a few ULONGs remained.

  * contrib/hbssl/pem.c
    + Some advances.
2009-07-22 13:41:36 +00:00
Viktor Szakats
996a3ae9ea 2009-07-22 13:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/pem.c
    + Added pem.c. Not developed yet.

  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
    + Added OpenSSL ticket numbers for reported bugs.
2009-07-22 11:13:15 +00:00
Viktor Szakats
4512960cfc 2009-07-22 12:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbcurl/hbcurl.c
    % Callback functions changed to 'static'.

  * contrib/hbcurl/hbcurl.hbc
    * Added some level of static linking support.
    * Corrected libs line for mingw.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/evpmd.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/tests/hbmk.hbm
  * contrib/hbssl/tests/digest.prg
  * contrib/hbssl/tests/crypt.prg
  * contrib/hbssl/evp.c
    * Some variables renamed.
    ! Fixed GPF when invalid CIPHER or MD is passed.
    + Added EVP_BytesToKey() examples.
    + Added -w3 to tests.
2009-07-22 10:42:25 +00:00
Viktor Szakats
cc375dfc00 2009-07-22 11:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/xhbfunc.c
    + Added HB_F_EOF() xhb compatibility function.

  * contrib/hbssl/Makefile
  - contrib/hbssl/sslx509.c
  + contrib/hbssl/x509.c
  - contrib/hbssl/sslrand.c
  + contrib/hbssl/rand.c
  - contrib/hbssl/sslbio.c
  + contrib/hbssl/bio.c
  - contrib/hbssl/sslerr.c
  + contrib/hbssl/err.c
    * Renamed a few source files.
    * SSL_RAND_*() functions renamed to RAND_*() to have
      the exact same name as in OpenSSL.
  * contrib/hbssl/tests/test.prg

  * contrib/hbssl/Makefile
  * contrib/hbssl/bio.c
  + contrib/hbssl/tests/bio.prg
  * contrib/hbssl/hbssl.ch
    + Added lots of new BIO functions:
      BIO_NEW()
      BIO_SET()
      BIO_CLEAR_FLAGS()
      BIO_SET_FLAGS()
      BIO_GET_FLAGS()
      BIO_TEST_FLAGS()
      BIO_SET_FD()
      BIO_GET_FD()
      BIO_GET_RETRY_REASON()
      BIO_SET_RETRY_SPECIAL()
      BIO_SET_RETRY_READ()
      BIO_SET_RETRY_WRITE()
      BIO_SHOULD_READ()
      BIO_SHOULD_WRITE()
      BIO_SHOULD_IO_SPECIAL()
      BIO_RETRY_TYPE()
      BIO_SHOULD_RETRY()
      BIO_CTRL_PENDING()
      BIO_CTRL_WPENDING()
      BIO_FLUSH()
      BIO_SEEK()
      BIO_TELL()
      BIO_RESET()
      BIO_EOF()
      BIO_SET_CLOSE()
      BIO_GET_CLOSE()
      BIO_NEW_FILE()
      BIO_NEW_MEM_BUF()
      BIO_READ()
      BIO_GETS()
      BIO_WRITE()
      BIO_PUTS()
      BIO_VFREE()
      BIO_FREE_ALL()
      BIO_NEW_CONNECT()
      BIO_NEW_ACCEPT()
      BIO_SET_CONN_HOSTNAME()
      BIO_SET_CONN_PORT()
      BIO_SET_CONN_INT_PORT()
      BIO_SET_CONN_IP()
      BIO_GET_CONN_HOSTNAME()
      BIO_GET_CONN_PORT()
      BIO_GET_CONN_IP()
      BIO_GET_CONN_INT_PORT()
      BIO_SET_NBIO()
      BIO_DO_CONNECT()
      ERR_LOAD_BIO_STRINGS()
2009-07-22 09:48:44 +00:00
Viktor Szakats
bed56bb8dc 2009-07-22 01:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/instsh.cf
  * config/dirsh.cf
  * config/globsh.cf
    ! Added double quotes to all 'if [ -? * ]' expressions:
      'if [ -? "*" ]'. This fixes clean rule in Solaris builds
      '[ -z $(EXE_FILE) ]' when $(EXE_FILE) was empty.
      (Thanks for Tamas Tevesz for report and fix suggestion)
      Please speak up if there is any reason why double quotes
      weren't used in bash commands embedded in .cf files while
      they are consistently used in all .sh files.
2009-07-21 23:01:20 +00:00
Pritpal Bedi
8f8b8cbb3b 2009-07-21 14:17 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_slots.cpp
  * contrib/hbqt/hbqt_slots.h
  * contrib/hbqt/moc_slots.cpp
    ! Normalized the events management code. Now uniform across all objects.
2009-07-21 21:19:22 +00:00
Viktor Szakats
20af5dd584 2009-07-21 19:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/evpciph.c
  * contrib/hbssl/evpenc.c
    ! Potential fix to passing buffer size to some functions. The 
      docs are not fully clear, but anyhow this cannot hurt.
2009-07-21 17:48:48 +00:00
Viktor Szakats
7b80364619 2009-07-21 19:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/evppkey.c
  * contrib/hbssl/evpciph.c
  * contrib/hbssl/hbssl.h
  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/sslerr.c
  * contrib/hbssl/evp.c
  * contrib/hbssl/evpmd.c
  * contrib/hbssl/evpenc.c
  * contrib/hbssl/tests/digest.prg
  + contrib/hbssl/tests/encode.prg
    * SSL_ERR_*() functions renamed to ERR_*() to have
      the exact same name as in OpenSSL.
    ! Minor fixes and cleanups.
    + Added:
      OPENSSL_VERSION()
      SSLEAY()
      SSL_USE_PRIVATEKEY()
      SSL_CTX_USE_PRIVATEKEY()
      EVP_SIGNFINAL()
      EVP_VERIFYFINAL()
      EVP_PKEY_NEW()
      EVP_PKEY_TYPE()
      EVP_PKEY_SIZE()
      EVP_PKEY_BITS()
      EVP_PKEY_ASSIGN()
      EVP_PKEY_ASSIGN_RSA()
      EVP_PKEY_ASSIGN_DSA()
      EVP_PKEY_ASSIGN_DH()
      EVP_BYTESTOKEY()
      ERR_LOAD_EVP_STRINGS()
    + Added OpenSSLs own BASE64 functions:
      HB_EVP_ENCODE_CTX_CREATE()
      EVP_ENCODEINIT()
      EVP_ENCODEUPDATE()
      EVP_ENCODEFINAL()
      EVP_DECODEINIT()
      EVP_DECODEUPDATE()
      EVP_DECODEFINAL()
2009-07-21 17:41:17 +00:00
Viktor Szakats
ea8a5f8a86 2009-07-21 15:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/evp.c
  + contrib/hbssl/evpciph.c
  + contrib/hbssl/evpmd.c
  * contrib/hbssl/hbssl.ch
  + contrib/hbssl/tests/digest.prg
  + contrib/hbssl/tests/crypt.prg
    + Added almost complete EVP (hashing, encryption, decryption) API.
      This means support for a max of 14 hashing methods and 
      about 90 symmetric encryption methods.

  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
    * Moved two functions between files.

  * bin/postinst.bat
  * config/globsh.cf
    + Tweaked/fixed to allow building Harbour present on a path
      which contains spaces.
2009-07-21 13:08:20 +00:00
Viktor Szakats
99334f7547 2009-07-21 01:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/sslctx.c
  * contrib/hbssl/ssl.c
    + Added:
      SSL_CTX_USE_RSAPRIVATEKEY_ASN1()
      SSL_CTX_USE_PRIVATEKEY_ASN1()
      SSL_CTX_USE_CERTIFICATE_ASN1()
      SSL_USE_RSAPRIVATEKEY_ASN1()
      SSL_USE_PRIVATEKEY_ASN1()
      SSL_USE_CERTIFICATE_ASN1()
2009-07-20 23:04:47 +00:00
Viktor Szakats
2a1929a261 2009-07-21 00:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/net.c
    ! Fixed NETNAME()/hb_netname() on dos/watcom platforms
      in error cases it was leaking 16 bytes of memory.
      (+ minor formatting)
      Please review me.
    + NETNAME(), HB_USERNAME() now do conversion from OS
      codepage. Couldn't test it, please review me.
2009-07-20 22:24:54 +00:00
Viktor Szakats
e2cca2e1e6 2009-07-20 17:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_reg.prg
  * contrib/hbwin/win_regc.c
    ! GETREGISTRY() fixed to return default only if the
      registry entry doesn't exist. Previously it was
      falling back to default even if the value existed but
      was empty. In case of empty string, these weren't
      possible to write from hbwin, but could exist in registry
      when written by other tools.
    ! GETREGISTRY() fixed to return binary data as string
      for REG_BINARY types. (previously it was returning
      an unsigned int - essentially truncating everything
      beyong the first 4 bytes).
    ! GETREGISTRY() fixed to swap words for REG_DWORD_BIG_ENDIAN
      values to return correct unsigned integer results.
      (not tested)
    ! GETREGISTRY() fixed to strip only the ending Chr( 0 )
      from string values. This makes it possible to utilize
      strings containing nul chars (obviously) and also to
      parse REG_MULTI_SZ multistring values.
    ! GETREGISTRY() fixed to not RTE if WIN_REGQUERYVALUEEX()
      returned non-null length and a non-string value.
      I still have to understand how this was possible, but
      I got a report that it happened on a system.
    ! WIN_REGQUERYVALUEEX() fixed to store NIL in 5th param,
      if the registry entry doesn't exist.
    ! WIN_REGQUERYVALUEEX() fixed to store empty string when
      registry value is zero length.

  * include/hbapi.h
  * source/vm/extend.c
    + Added API hb_stor() to store a NIL into a parameter passed
      by reference.

  * source/vm/arrays.c
    * Minor formatting.
2009-07-20 15:48:57 +00:00
Pritpal Bedi
cd7375406b 2009-07-20 08:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_slots.cpp
  * contrib/hbqt/hbqt_slots.h
  * contrib/hbqt/moc_slots.cpp
    + Added "timeout()" signal. I am not sure if it will work.
      Please let me know if I am right, otherwise I have to restructure
      this mechanism from bottom-up.
2009-07-20 15:47:28 +00:00
Przemyslaw Czerpak
8f26e540ec 2009-07-20 13:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
    * cleaned hb_itemPutC*() functions. Now each function which accepts
      only pure szText pointer without length can be called with NULL
      as szText. Each function which need string length parameter needs
      non NULL szText value. I hope it's easy to remember for developers.
    % minor code optimizations for above rules

  * harbour/source/rtl/filebuf.c
    * allow to reuse tables in aliased workarea in RW mode after previous
      opening in RO mode
2009-07-20 11:20:22 +00:00
Viktor Szakats
7640a5451b 2009-07-20 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/tests/test.prg
    + Added:
      SSL_CTX_GET_OPTIONS()
      SSL_CTX_GET_CLIENT_CA_LIST()
      SSL_GET_OPTIONS()
      SSL_GET_CIPHERS()
      SSL_GET_CLIENT_CA_LIST()
      SSL_LOAD_CLIENT_CA_FILE()
2009-07-20 11:02:32 +00:00
Viktor Szakats
a45194d863 2009-07-20 10:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapinet.h
    ! Fix for Cygwin.
2009-07-20 08:29:14 +00:00
Viktor Szakats
6e3895739e 2009-07-20 10:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapinet.h
  * source/rtl/hbinet.c
    ! Fixed headers for non-Windows.
2009-07-20 08:21:50 +00:00
Viktor Szakats
583425325e 2009-07-20 09:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/hbssl.h
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslx509.c
    + Using GC collected pointers for X509 objects retrieved.
2009-07-20 07:39:01 +00:00
Viktor Szakats
e8770373c9 2009-07-20 09:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/sslctx.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/hbssl.ch
  * contrib/hbssl/sslx509.c
    + Added X509 verification result codes.
    + Added unused yet X509 object GC functions.
    ! Casting for C++
2009-07-20 07:21:48 +00:00
Viktor Szakats
c41ddb5647 2009-07-20 09:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/hbssl.ch
    + Added following functions:
      SSL_CTX_USE_CERTIFICATE()
      SSL_CTX_ADD_CLIENT_CA()
      SSL_CTX_ADD_EXTRA_CHAIN_CERT()
      SSL_CTX_USE_CERTIFICATE_FILE()
      SSL_CTX_USE_CERTIFICATE_CHAIN_FILE()
      SSL_CTX_USE_PRIVATEKEY_FILE()
      SSL_CTX_USE_RSAPRIVATEKEY_FILE()
      SSL_SET_CIPHER_LIST()
      SSL_GET_CERTIFICATE()
      SSL_USE_CERTIFICATE()
      SSL_ADD_CLIENT_CA()
      SSL_USE_CERTIFICATE_FILE()
      SSL_USE_PRIVATEKEY_FILE()
      SSL_USE_RSAPRIVATEKEY_FILE()
2009-07-20 07:09:31 +00:00
Viktor Szakats
5d8cbff947 2009-07-20 00:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
   + contrib/hbssl/hbssl.c
   * contrib/hbssl/Makefile
     + HB_SSL_READ_ALL() and HB_SSL_READ_LINE() rewritten.
       (HB_SSL_READ_ALL() isn't fully optimal, and maybe there
       are errors, please check.)
     + Added SSL_GET_RFD(), SSL_GET_WFD().

   * include/Makefile
   + include/hbapinet.h
   * source/rtl/hbinet.c
     + Moved some basic declarations to new API header,
       mainly to export hb_select[Read|Write]*() functions.
       We will also need such header in the future when
       we implement C level socket/networking API. Current
       solution is quite messy since the header has to
       pull Windows headers which may not be friendly with
       all usages/include order.

   * source/rtl/hbinet.c
     * HB_SOCKET_STRUCT renamed to HB_SOCKET.
     + Added PHB_SOCKET type.
     + Added hb_selectReadFD(), hb_selectWriteFD() which
       are similar to hb_selectReadSocket() and
       hb_selectWriteSocket() but expect raw FD plus explicit
       timeout values.
       These function names and solutions are tentative
       to solve SSL integration with Harbour, and hopefully
       in the future we will have a clean net API, the current
       one is very messy.

   * source/vm/itemapi.c
     ! hb_itemPutCPtr(), hb_itemPutCLPtr() fixed to put empty
       string to item if szText is NULL and length is non-zero,
       instead of trying to free NULL pointer causing internal
       error.

   * include/hbextlng.ch
     * Corrected header to be in sync with CDP and not
       to repeat the filename.
2009-07-19 22:51:05 +00:00
Pritpal Bedi
1e543152e8 2009-07-19 13:56 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/Makefile_gen

  + contrib/hbqt/qth/QButtonGroup.qth
  + contrib/hbqt/qth/QIODevice.qth
  + contrib/hbqt/qth/QProcess.qth

  + contrib/hbqt/QButtonGroup.cpp
  + contrib/hbqt/QIODevice.cpp
  + contrib/hbqt/QProcess.cpp
  + contrib/hbqt/TQButtonGroup.prg
  + contrib/hbqt/TQIODevice.prg
  + contrib/hbqt/TQProcess.prg

    + Added new classes.
2009-07-19 20:59:25 +00:00
Viktor Szakats
4bd89b2a9c 2009-07-19 19:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added /P128 to tlib default flags.
2009-07-19 17:59:21 +00:00
Viktor Szakats
a647e930c6 2009-07-19 19:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/sslerr.c
  + contrib/hbssl/sslx509.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/hbssl.ch
  * contrib/hbssl/tests/test.prg
    + Added ERR_*() API functions.
    + Prefixed .ch contant names with HB_ to avoid collision with
      ssl own headers.
    + Added SSL_CTX_SET_MODE(), SSL_CTX_GET_MODE() functions.
    + Added HB_SSL_READ_ALL(), HB_SSL_READ_LINE() functions meaning
      to mimic HB_INETRECVALL() and HB_INETRECVLINE(). (probably needs
      more work, it'd be great if someone who understands the guts of
      these inet functions could take a look)
    * SSL_PEEK() synced with SSL_READ() recent changes.
    + Added SSL_SET_MODE(), SSL_GET_MODE(), SSL_SET_MTU() functions.
    + Added SSL_GET_RBIO(), SSL_GET_WBIO() functions.
    + Added SSL_GET_PEER_CERTIFICATE() function.
    + Added X509_GET_SUBJECT_NAME(), X509_GET_ISSUER_NAME(), X509_NAME_ONELINE()
    + Added HB_SSL_MODE_* constants.

  * include/hbextern.ch
    * Changed to use new hbextlng.ch.

  - examples/hbextern/hbextern.lst
    ! It wasn't deleted in 2009-07-18 21:37 UTC+0600 for some reason.

  * source/rtl/console.c
    ! Fixed OUTSTD() and OUTERR() to output separator space
      to std/err instead of alt.

  * source/rtl/hbinet.c
    % Minor optimization.
2009-07-19 17:42:06 +00:00
April White
057ab4dd59 2009-07-18 21:37 UTC+0600 April White (april users.sourceforge.net)
- examples/hbextern/hbextern.lst
  * examples/hbextern/hbextern.prg
    ; hbextern.ch_, hbextcdp.ch_, and hbextlng.ch_ will have the copyright 
      comment from the existing include file; contrib output will not
    * minor optimizations
    - removed use of hbextern.lst
    + auto-generated .ch_ files for contrib folders
      ; these will have same name as contrib folder
      ; generic copyright message using doc/hdr_tpl.txt as template
      ; the include folder has some files matching the contrib
        folder names but with non-extern content; these files
        must be merged by hand, or a #include statement used
2009-07-19 12:43:23 +00:00
April White
239daa45f5 2009-07-18 21:37 UTC+0600 April White (april users.sourceforge.net)
+ include/hbextlng.ch
    ; as created by hbextern
  * ChangeLog - improved comments for 2009-07-18 21:20, below
2009-07-19 01:40:33 +00:00
April White
81b69e6586 2009-07-18 21:24 UTC+0600 April White (april users.sourceforge.net)
+ examples/hbextern/hbextern.lst
    ; used by hbextern to build contrib external headers
2009-07-19 01:25:45 +00:00
April White
0d3396f3a0 2009-07-18 21:20 UTC+0600 April White (april users.sourceforge.net)
* examples/hbextern/hbextern.prg
    - legacy directory listing deprecated and removed
    - removed 'recursive' flags, now default behaviour
    * altered internal structure to allow for multiple output files
2009-07-19 01:21:52 +00:00
Viktor Szakats
02fd64f6d8 2009-07-18 19:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  * contrib/hbssl/hbssl.h
  * contrib/hbssl/hbssl.ch
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/ssl.c
  + contrib/hbssl/sslbio.c
  * contrib/hbssl/tests/test.prg
    ! Fixed a few bugs and typos, so now the test works.
    + Added very basic BIO interface.
2009-07-18 17:48:34 +00:00
Viktor Szakats
799606888e 2009-07-18 14:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/hbssl.hbc
    + External libraries added for *nixes, OS/2 and adjusted
      for Windows.

  * contrib/hbssl/tests/test.prg
    * Changed test site to a better one.

  * config/global.cf
    + Adding __ARCH64BIT__ for some win targets.
      Not necessary for Harbour code at this moment.

  * config/globsh.cf
    * Minor: @- -> -@

  * external/libpng/pngrio.c
  * external/libpng/pngerror.c
  * external/libpng/pngconf.h
  * external/libpng/pngwrite.c
  * external/libpng/pngset.c
  * external/libpng/pngpread.c
  * external/libpng/pngwtran.c
  * external/libpng/LICENSE
  * external/libpng/pngwio.c
  * external/libpng/pngrutil.c
  * external/libpng/pngwutil.c
  * external/libpng/pngread.c
  * external/libpng/pngmem.c
  * external/libpng/png.c
  * external/libpng/pngget.c
  * external/libpng/png.h
  * external/libpng/pngrtran.c
  * external/libpng/pngtrans.c
    * Updated to 1.2.38 (from 1.2.37)
2009-07-18 12:39:18 +00:00
Przemyslaw Czerpak
1688862f1e 2009-07-18 02:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbextern.ch
    + added HB_ZERROR
2009-07-18 00:59:23 +00:00
Przemyslaw Czerpak
314d60309f 2009-07-18 02:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbzlib.c
    + added HB_ZERROR( <nError> ) => <cErrorDescription>
      It's wrapper to zError() ZLIB function.
2009-07-18 00:57:57 +00:00
Przemyslaw Czerpak
551d0c2bcf 2009-07-17 16:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/macro/macro.y
  * harbour/source/macro/macro.yyc
    % improved macrocompiler speed by reducing number of memory
      allocations for compiled subexpressions
2009-07-17 14:19:24 +00:00
Viktor Szakats
073fd02030 2009-07-17 13:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
    - Deleted reference to hbfm lib.

  * source/pp/Makefile
    * Minor formatting.
2009-07-17 11:36:32 +00:00
Przemyslaw Czerpak
a253517ff2 2009-07-17 13:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    * removed old  HB_PP_RULES used for precomputed pptables
    * added protection against setting possible actions executed without
      HB_ARCHITECTURE and HB_COMPILER
2009-07-17 11:00:37 +00:00
Viktor Szakats
18ae8f1bca 2009-07-17 12:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    + Attempt to fix dos shell clean rules. Please test.
    + Attempt to fix os2 shell clean rules. Obviously blind attempt.
    * RDP -> RD for os2 since it cannot remove full paths in OS/2 (AFAIK).
    + Added '@' to all os2 dirbase and clean commands.
2009-07-17 10:27:13 +00:00
Przemyslaw Czerpak
7b9e94a15c 2009-07-17 12:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    ! set EXE_FILE - it's workaround to force bin/<arch>/<cmp> directory
      creation in current make files and then cleaning it if possible

  * harbour/config/rules.cf
    * removed old hardcoded clean rules which deleted files not created
      by build process

  * harbour/config/instsh.cf
    * pacified install command echo

  * harbour/config/globsh.cf
    ! fixed new sh clean rules: [ ! -f $(LIB_DIR)/* ] causes syntax
      error when more then one file exists in $(LIB_DIR) directory
2009-07-17 10:15:40 +00:00
Viktor Szakats
5cb93fcc29 2009-07-17 12:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Fixed to delete hbpp.tds.

  * config/globsh.cf
    + Attempt to fix nt shell clean rules. Please test.
    ! Fixed to create bin dir even when lib targets are being
      created. This hack is needed to support existing hack
      inside source/pp/Makefile. If there is any possibility
      to solve current hbpp lib+bin rules in some cleaner ways
      IMO we should do it, but so far I couldn't figure out
      how current method works.
2009-07-17 10:06:27 +00:00
Viktor Szakats
e6948aba1f 2009-07-17 11:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    * Using RM instead of RD in sh clean rules.
2009-07-17 09:34:04 +00:00
Viktor Szakats
3fb6323bd0 2009-07-17 11:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    ! Fix to nt clean rule.
2009-07-17 09:31:21 +00:00
Viktor Szakats
b9931f07cf 2009-07-17 11:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    * $(RD) -> $(RDP)
2009-07-17 09:30:22 +00:00
Viktor Szakats
c439db6050 2009-07-17 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtxwc/gtxwc.c
    ! Fixed typo.
      This should fix the warning plus black screen reported by 
      some users. Please test.
2009-07-17 08:40:59 +00:00
Viktor Szakats
64f481018a 2009-07-17 10:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtxwc/gtxwc.c
    ! Fixed to compile under cygwin.
2009-07-17 08:02:34 +00:00