Commit Graph

11515 Commits

Author SHA1 Message Date
Viktor Szakats
1e91d9af72 2009-07-29 17:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dlmalloc.c
    ! Restored 2.8.3.
      Huge amount of warnings (all Windows compilers), compile time (pocc, watcom)
      and build time (mingw) errors, incompatibility with fm.c parts, with 2.8.4,
      so I opted to revert.
      I hope someone will give it another go, as it should provide better MT
      performance on Windows, unfortunately this feature doesn't seem to be well 
      tested at this point.

  * config/lib.cf
    ! Fix dir creation for hbpp executable with os2 shells.
2009-07-29 15:47:59 +00:00
Przemyslaw Czerpak
efae473295 2009-07-29 11:53 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! fixed interface settings for multicast in IPv6 - in IPv6 interface
      indexes are used instead of addresses
2009-07-29 09:53:54 +00:00
Viktor Szakats
f769e560ad 2009-07-29 11:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/gtcrs.c
    + Utilizing write return values and returning success from low 
      level write functions to satisfy linux/gcc insisting on warnings.
2009-07-29 09:09:25 +00:00
Viktor Szakats
d6d9e74142 2009-07-29 10:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/gtcrs.c
    ! Suppress Linux warnings complaining about dropping return
      values of write operations.
2009-07-29 08:56:09 +00:00
Viktor Szakats
9a976e633e 2009-07-29 10:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbsocket.c
    ! Added missing 'static'.
2009-07-29 08:22:38 +00:00
Viktor Szakats
955f02d619 2009-07-29 09:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dlmalloc.c
    + Updated to 2.8.4 (from 2.8.3)
      Reapplied two local patches (the rest of local fixes were applied upstream):
         2009-07-28 16:31 UTC+0200 Przemyslaw Czerpak
         2009-03-30 22:17 UTC+0200 Przemyslaw Czerpak
    ; From the dlmalloc changelog:
      V2.8.4 Wed May 27 09:56:23 2009  Doug Lea  (dl at gee)
        * Use zeros instead of prev foot for is_mmapped
        * Add mspace_track_large_chunks; thanks to Jean Brouwers
        * Fix set_inuse in internal_realloc; thanks to Jean Brouwers
        * Fix insufficient sys_alloc padding when using 16byte alignment
        * Fix bad error check in mspace_footprint
        * Adaptations for ptmalloc; thanks to Wolfram Gloger.
        * Reentrant spin locks; thanks to Earl Chew and others
        * Win32 improvements; thanks to Niall Douglas and Earl Chew
        * Add NO_SEGMENT_TRAVERSAL and MAX_RELEASE_CHECK_RATE options
        * Extension hook in malloc_state
        * Various small adjustments to reduce warnings on some compilers
        * Various configuration extensions/changes for more platforms. Thanks
           to all who contributed these.
2009-07-29 07:38:32 +00:00
Przemyslaw Czerpak
f9561f17c8 2009-07-29 05:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    * force blocking IO on socket returned by accept() - on some system
      new sockets can inherit blocking IO flag from the listening socket
2009-07-29 03:20:01 +00:00
Przemyslaw Czerpak
fe03d112cb 2009-07-29 04:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! finished hb_socketResolveAddr() in systems where getaddrinfo()
      is not available
2009-07-29 02:25:02 +00:00
Przemyslaw Czerpak
6a49526b0f 2009-07-29 00:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! disabled inet_pton() and inet_ntop() in OS2 GCC builds.
2009-07-28 22:50:50 +00:00
Przemyslaw Czerpak
50ebdd772e 2009-07-28 18:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    * return -1 instead of 0 on timeout in hb_socketSend*() and
      hb_socketRecv*() functions
2009-07-28 16:54:33 +00:00
Viktor Szakats
64d32725b8 2009-07-28 18:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * make_gnu.sh
    % Deleted crs/sln detection. Not needed anymore for hbmk.cfg
      generation.

  * config/global.cf
    ! Don't set DOC dir for *nix targets.
2009-07-28 16:26:24 +00:00
Przemyslaw Czerpak
eb76326d2d 2009-07-28 18:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! yet another mistake in select() sets I missed to fix in previous commit
2009-07-28 16:22:38 +00:00
Viktor Szakats
0b42535e8c 2009-07-28 18:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    % Maybe I'm overlooking some scenarios, but I could simply drop the
      need for libdynhas= in hbmk.cfg.
      Now the required gtsln/gtcrs/gtxwc system libs will be automatically
      linked when these libs are selected by user (either by hbmk.cfg,
      .hbc or cmdline/.hbp files). Tested on Darwin.
      I can add automatic addition of these system libs based on presence
      of corresponding Harbour libs if needed. Or maybe even better would be
      to never link these GTs to the Harbour dynamic lib. Please comment on this.
    ! Fixed to add external curses/X11/slang libs in -shared mode. Was needed
      on Darwin.
    + Linking pdcurses for gtcrs with dos/djgpp.
2009-07-28 16:15:00 +00:00
Przemyslaw Czerpak
757c4ad242 2009-07-28 18:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! fixed stupid typo in S&R - I reverted select() socket sets
      in send()/recv() when I was modifying function names.
      It can be also an answer why it exploited some problems
      with hb_InetRecvLine() in Francesco code.
2009-07-28 16:10:44 +00:00
Viktor Szakats
42c85c2811 2009-07-28 17:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed typo in linker option when building shared executable.
    ! Deleted -multiply_defined suppress linker option when building shared executable.
    % Deleted some unused logic dealing with libdynhas option.
2009-07-28 15:57:21 +00:00
Przemyslaw Czerpak
ef2cd8b99c 2009-07-28 17:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! fixed typo in recent modification
2009-07-28 15:52:42 +00:00
Viktor Szakats
2dade7c467 2009-07-28 17:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* make_gnu.sh
    ! Restored old sln/crs detection code, to fix creation of hbmk.cfg.
      I'll try to remove the need for this content in hbmk.cfg, but
      I don't know how yet (maybe by checking for gtsln/gtcrs/gtxwc libs
      in lib dir would be the best, if they are there, we must assume the
      dynamic lib has them, too). This way hbmk2 setup becomes fully dynamic.
2009-07-28 15:33:29 +00:00
Przemyslaw Czerpak
01c98e8064 2009-07-28 17:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    * accept NULL and empty string "" as default address (INADDR_ANY)
      in hb_socketInet?Addr() functions

  * harbour/source/rtl/hbinet.c
    % use NULL as default address in hb_socketInetAddr()
2009-07-28 15:22:07 +00:00
Przemyslaw Czerpak
d53ec11751 2009-07-28 16:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/dlmalloc.c
    * modified to compile in OS2 (tested only compilation with OpenWatcom,
      without real binaries tests)
2009-07-28 14:31:17 +00:00
Viktor Szakats
b3a432118c 2009-07-28 15:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.bat
  * config/global.cf
    ! Fixed HB_BIN_COMPILE usage in postinst.bat. This variable
      wasn't exported, so parts of postinst.bat didn't work with
      cross-builds. Now HB_HOST_BIN_DIR is used instead, which
      got exported from global.cf.

  * INSTALL
    * Minor.
2009-07-28 14:14:50 +00:00
Przemyslaw Czerpak
62334184f8 2009-07-28 14:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/Makefile
    * disabled from OS2 builds - if someone knows OS2 curses port then
      he can try to reenable it and update gtcrs code to compile with it.
2009-07-28 12:38:15 +00:00
Przemyslaw Czerpak
3fb9dfddd1 2009-07-28 14:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/hvmall.c
    ! define INCL_* macros for OS2 builds which uses hvmall.c
2009-07-28 12:33:49 +00:00
Viktor Szakats
86fc847f7c 2009-07-28 13:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsocket.ch
  * include/hbsocket.h
  * source/rtl/hbsocket.c
  * source/rtl/hbinet.c
  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    * Slightly renamed some constants to settle on a common
      prefix for all socket related ones: HB_SOCKET_*
      HB_SOCK_PF_*      -> HB_SOCKET_PF_*
      HB_SOCK_AF_*      -> HB_SOCKET_AF_*
      HB_SOCK_*         -> HB_SOCKET_PT_* (for protocol types)
      HB_SOCK_IPPROTO_* -> HB_SOCKET_IPPROTO_*
      HB_SOCK_SHUT_*    -> HB_SOCKET_SHUT_*
      HB_SOCK_FUNC      -> HB_SOCKET_FUNC

  * contrib/hbtip/thtml.prg
    * Minor formatting.
2009-07-28 11:56:55 +00:00
Przemyslaw Czerpak
3472f72ddd 2009-07-28 13:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/Makefile
    ! added hbextlng.ch

  * harbour/source/rtl/hbinet.c
    ! fixed broadcast addresses wrongly used as default
2009-07-28 11:24:35 +00:00
Viktor Szakats
d985b594f5 2009-07-28 12:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbinet.c
    * Struct member 'com' renamed to 'sd' to be in sync.
2009-07-28 10:37:57 +00:00
Viktor Szakats
1054de0e9b 2009-07-28 12:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsocket.h
  * contrib/hbssl/hbssl.c
  * source/rtl/hbsocket.c
  * source/rtl/hbinet.c
  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    * HB_SOCKET_T -> HB_SOCKET

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * source/rtl/gtstd/gtstd.c
  * source/rtl/filesys.c
  * source/rtl/gtpca/gtpca.c
  * source/rtl/gtwvt/gtwvt.c
    ! Added casts for msvc64.
      Some C RTL functions in msvc64 expects file handles as 'int's.
      The rest is some non-critical stuff.
      Now only size_t to int/ULONG warnings remain in hbrtl.
    ; TOFIX: Plus these two:
      ../../../hbstrfmt.c(459) : warning C4244: 'argument' : conversion from '__int64' to 'ULONG', possible loss of data
      ../../../hbtoken.c(280) : warning C4244: '=' : conversion from '__int64' to 'ULONG', possible loss of data
2009-07-28 10:26:23 +00:00
Przemyslaw Czerpak
25c5333120 2009-07-28 12:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    * pacified MSVC64 warnings
2009-07-28 10:23:25 +00:00
Przemyslaw Czerpak
4cef2a48c4 2009-07-28 11:45 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    % small improvement in INET6 broadcast address initialization
      enabled for all *nix builds, tested only with Linux and SunOS.
2009-07-28 09:46:00 +00:00
Przemyslaw Czerpak
8b0a2e6ba8 2009-07-28 10:45 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! fixed timeout updating in non Linux builds

  * harbour/mpkg_rpm.sh
    ! test 'gd-devel' version number not 'gd'
2009-07-28 08:46:02 +00:00
Viktor Szakats
71b32fe18b 2009-07-28 10:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
  * config/globsh.cf
    + Moved $(DIRSEP) defaulting to global.cf for non-sh shells.

  * config/global.cf
    ! Reverted prev opt. $(DIRSEP) must be used as the values are
      exported and used in native script/batch files.
2009-07-28 08:43:51 +00:00
Viktor Szakats
f9e33982f7 2009-07-28 10:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* make_gnu_os2.cmd
  * make_gnu.bat
    % Deleted defaulting of HB_*_INSTALL. Now done by make files.
    ; Same should be done for *nixes.

  * contrib/xhb/inet.h
    * Converted to a stub which shows error. This header was
      making public some local structures and functions which are
      no longer supported in Harbour.

  * contrib/xhb/inet.h
  * contrib/hbct/print.c
  * contrib/hbtpathy/tpwin.c
  * source/rtl/hbinet.c
    ! *WIN_32* -> *WIN*
2009-07-28 08:29:54 +00:00
Viktor Szakats
3a74eec9e1 2009-07-28 10:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbinet.c
    % Deleted _HB_SOCKET
    * [P]HB_SOCKET -> [P]HB_SOCKET_STRUCT
    ; This gives way to use HB_SOCKET as a public name.
    * Renamed Socket -> socket, Newsocket -> new_socket
    ; Generated code is verified to stay the same.
2009-07-28 08:06:19 +00:00
Viktor Szakats
58de04190f 2009-07-28 09:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Do not install hbpp executable when HB_HOST_BUILD == 'lib'.
      Please verify me.

  * config/global.cf
    % Minor simplification to HB_*_INSTALL defaulting.

  * utils/hbmk2/hbmk2.prg
    * Minor formatting.
2009-07-28 07:14:16 +00:00
Pritpal Bedi
ce3082bf1e 2009-07-27 23:42 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbxbp/xbp.ch
  * contrib/hbxbp/xbpbrowse.prg
  * contrib/hbxbp/xbpgeneric.prg
  * contrib/hbxbp/xbpwindow.prg
    + Implemented XbpBrowse() class - a work-in-progress. Still a lot more to go.

  * contrib/hbxbp/tests/demoxbp.prg
  + contrib/hbxbp/tests/test.dbf
    + Demonstrated XbpBrowse() implementation.

      NOTE: Current implementation is just a proof of concept that 
            TBrowse or XbpBrowse like behavior can be simulated. But a lot 
            more work is needed to reach the destination. Currently, 
            data is fetched based on recno(). Qt's Model/View framework
            expects number of rows to be supplied at the begining and hence
            I could find only recno() to pull the row information.
            I have an idea how exact behavior can be simulated but that 
            will need a lot of base work. So for now just play with what 
            I could achieve. Also note that on the face value, pure Xbase++ code
            is working - headers, cell colors, colorblock, navigation, etc. Just study 
            the code and you will know how difficult it was just to precieve how
            this could been achieved.
                 Any suggestions in direction are welcome.
2009-07-28 06:59:13 +00:00
Pritpal Bedi
f4ed67c67f 2009-07-27 23:36 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
    + Added one more section <SUBCLASS> </SUBCLASS>. This holds .PRG 
      code representing a subclass inherited from main class. .CPP code is 
      held in hbqt_slots.cpp.

  * contrib/hbqt/qth/QAbstractItemModel.qth
  * contrib/hbqt/qth/QTableView.qth

  * contrib/hbqt/hbqt.ch
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_slots.cpp
  * contrib/hbqt/hbqt_slots.h
  * contrib/hbqt/moc_slots.cpp
  * contrib/hbqt/QAbstractItemModel.cpp
  * contrib/hbqt/QTableView.cpp
  * contrib/hbqt/TQAbstractItemModel.prg
  * contrib/hbqt/TQTableView.prg
    ! result of <SUBCLASS> </SUBCLASS> implementation.
2009-07-28 06:41:20 +00:00
Viktor Szakats
4b7833ba16 2009-07-28 01:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/libhpdf/Makefile
    + Enabled for os2/watcom.

  * include/hbdefs.h
    * Minor addition to new type section.
      'bool' is the new type for boolean, so maybe we should
      use them instead of hbBool/TRUE/FALSE.

  * source/rtl/hbsocket.c
    ! Added one 'static'.
    * Added one pair of paranthesis (formatting).

  * source/rtl/hbgtcore.c
  * source/rtl/hbsha1.c
  * contrib/hbwin/win_prt.c
    * Minor formatting.

  * contrib/xhb/xhbfunc.c
    + Added copyright holder for HB_F_EOF().

  * contrib/hbssl/ssl.c
    ! Minor typo in comment.

  * contrib/hbssl/hbssl.h
    ! Added HB_EXTERN_BEGIN/HB_EXTERN_END.

  * config/global.cf
    + Added HB_UNIX_COMPATIBLE variable.
    + Setting default lib install dir to lib/<arch>/<comp>
      on non-*nix systems.

  * examples/httpsrv/socket.c
    + Copied from uhttpd2. Please verify.
2009-07-27 23:54:06 +00:00
Przemyslaw Czerpak
2abefe1b3e 2009-07-27 23:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
    + added socket error codes to HB_IOERRORS

  * harbour/include/Makefile
  + harbour/include/hbsocket.ch
  + harbour/include/hbsocket.h
  * harbour/source/rtl/Makefile
  + harbour/source/rtl/hbsocket.c
    + added new BSD socket functions: hb_socket*(). They should be quite
      close to low level C socket interface with few modifications which
      help to hide some platform differences. Unfortunately we do not use
      autoconf so I had to arbitrary set which features are available
      on some platforms. In practice it means that it reduces portability
      to older OS-es, i.e. it should work with current Linux versions
      but it will not without some modifications in macros used to control
      supported features with older Linuxes using kernel 2.2 or 2.0.
      The same can happen with other *nix ports like Darwin, SunOS, HP-UX
      or with different versions of some Windows compilers. I also do not
      know which functionality is available in OS2 GCC ports and I would
      like to ask OS2 users to make tests and disable not working features.
      We also need tests with HP-UX, Darwin and SunOS.
      IP6 support is enabled only in *nixes. If Windows users are interested
      in IP6 then please add support for it. Most of Windows compilers do
      not support standard POSIX functions so I do not want to make it
      myself using unknown for me API without testing.
      In *nix builds PF_UNIX/PF_LOCAL sockets are also supported.
      Support for other socket types can be easy added if someone is
      interested in them.
      The constant values used in hbsocket.ch are equal to original BSD
      socket definitions. If it's necessary then it's possible to enable
      their translation inside hbsocket.c code though I do not think we
      will find such OS.
      The list of hb_socket*() functions was designed to cover all existing
      functionality in hbinet.c and socket.c. Most of functions supports
      timeout parameter what effectively allows to hide direct select()
      usage.
      Please make test with real applications and report any problems
      with hb_inet*() functions you will find.

  * harbour/source/vm/hvm.c
    * minor cleanup

  * harbour/source/rtl/hbi18n1.c
    * cleaned variable name

  * harbour/source/rtl/hbinet.c
  * harbour/examples/uhttpd2/socket.c
  * harbour/contrib/hbssl/hbssl.c
    * updated to use hb_socket*() functions

  * harbour/include/hbextern.ch
    * enabled HB_INET*() functions in DOS builds - they will simply return
      errors

  - harbour/include/hbapinet.h
    - removed old header file

  * harbour/source/pp/ppcore.c
    ! modified ENDTEXT marker to work also with comments in the same line
      It's more closer to Clipper though intentionally we are not fully
      CA-Cl*pper compatible here.
2009-07-27 21:43:31 +00:00
Viktor Szakats
5009829fe7 2009-07-24 09:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
  * contrib/hbtip/client.prg
  * contrib/hbtip/smtpcln.prg
    + Added partial copyright for SLL parts.
2009-07-24 07:47:10 +00:00
Viktor Szakats
bc650b7df3 minor to prev 2009-07-24 07:43:34 +00:00
Viktor Szakats
347c39ae3c 2009-07-24 09:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
  * contrib/hbtip/client.prg
  * contrib/hbtip/smtpcln.prg
    + Added TLS (SMTPS, SSL) support for SMTP class. It's experimental
      yet, and there is still some protocol level error.
      With this it'll possible to send e-mails through gmail for
      example.
      Some level of STARTTLS support (TLS on normal SMTP ports)
      was also added, but I cannot test this.
      Anyhow from this point it should be an easy task to
      finish above details.
      Since TLS was added to low level client class, it's now
      possible to add SSL support also for POPS, HTTPS and FTPS.
    ; NOTE: This code part is only active if hbtip is built with 
            -DHAVE_OPENSSL build-time flag, and it also requires 
            hbssl lib + OpenSSL libs.

  * contrib/hbtip/utils.c
    ! Fixed timezone offset being always zero in TIP_TIMESTAMP()
2009-07-24 07:42:15 +00:00
Viktor Szakats
46c0860b3b 2009-07-23 21:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddads/ads1.c
    ! Reverted prev change plus added error handling. Thx Przemek.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/evpmd.c
  * contrib/hbssl/evpenc.c
  * contrib/hbssl/evppkey.c
  * contrib/hbssl/evp.c
  * contrib/hbssl/tests/crypt.prg
    * Minor improvements.
    % Deleted unnecessary ( void * ) casts.
    ! Fixed leaks (using valgrind and crypt.prg).
      There is still one reported, but can't find the reason.

  * contrib/hbcurl/hbcurl.c
    % Deleted unnecessary ( void * ) casts.
2009-07-23 19:46:11 +00:00
Viktor Szakats
0a95b29d0f 2009-07-23 20:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddads/ads1.c
    ! Fixed buffer size in one place related to MEMO field handling.
      Caused memory corruption.
2009-07-23 18:19:36 +00:00
Viktor Szakats
4a51d89404 2009-07-23 18:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ source/rtl/hbfeof.c
  * source/rtl/Makefile
  * source/rtl/philes.c
    ! HB_FEOF() moved to separate file to ease name collision
      situations.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/evpmd.c
  * contrib/hbssl/evpenc.c
    ! Fixed buffer sizes, after valgrind test.
      (off by one bugs. hb_storclen_buffer()/hb_retclen_buffer() need
      one byte extra above the size returned, in order to hold the 
      EOS char)

  * contrib/xhb/freadlin.c
  * contrib/hbqt/qth/QFtp.qth
  * contrib/hbqt/qth/QHttp.qth
  * contrib/hbqt/QFtp.cpp
  * contrib/hbqt/QHttp.cpp
  * contrib/hbcurl/hbcurl.c
  * contrib/hbwin/win_prt.c
    ! Fixed similar to above allocation errors.

  * config/global.cf
    + Added HB_???_INSTALL initialization. Just a step, needs more
      work before making it a replacement for current method.
2009-07-23 17:22:31 +00:00
Viktor Szakats
2cefe1006f 2009-07-23 14:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/evpciph.c
    + EVP_OPENINIT(), EVP_OPENUPDATE(), EVP_OPENFINAL()
      (not tested yet)
    ; TOFIX: EVP_SEALINIT() - does something nasty with memory.

  * contrib/hbssl/ssl.c
    ! MSVC cast/warning.

  * config/globsh.cf
    + Put a nt cmd param in dblquotes.
2009-07-23 12:05:14 +00:00
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