===============================
Changes in 2.6.10 06. Dec. 2023
===============================

o) Create release candidate

   configure.ac
   ChangeLog
   ReleaseNotes.md

o) Remove duplicate file

   compareReports.pl

o) Documentation update

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) SHI-1928 Improved checks of seismic rule set

   Fix vertical channels rule set without regular
   expression for channel names and python3 fix

   libsrc/cdqual/reports.py

o) SHI-2019 add support for print function under python2

   tools/genWaveform

o) SHI-2019 explicitly call python3 at shebang

   tools/genWaveform

o) SHI-2100 Load openssl config file if configured
   and openssl version >= 3.0

   *** pulled in with libCD 2.6.2

o) SHI-2099 Switch to LDAP V3 protocol

   *** pulled in with libCD 2.6.2

o) SHI-2100 Increase maximum allowed connections to 500
   for cdrecv

   *** pulled in with libCD 2.6.2

===============================
Changes in 2.5.9 13. Sep. 2023
===============================

o) SHI-2019 Fixed python3 issues

   tools/genWaveform

o) Description updated

   tools/READ.ME
   tools/csf.pl

o) SHI-2063 Fixed python calls in cdtools test script

   if only python3 is available. Fixed check for errors in test
   case 50

   test/cdsend.pl

o) Fix comment

   src/cd2wng/main.c

o) SHI-2005 Fix check for openssl in more recent environments

   configure.ac

===============================
Changes in 2.5.8 29. Mar. 2023
===============================

o) SHI-1944 Fix minimum channel values if "verticals seismic" rule is applied

   libsrc/cdqual/reports.py

o) Ignore derived file

   .gitignore

o) Added tool to clean up old database records

   tools/cleanUpDB.sh

o) Added host name to mail subject

   tools/start_cdtool

o) Use python3 if python (version 2) is not installed

   test/cd2w/run.cdqual
   test/cd2w/run.test

o) Fixed exception when running under python 3

   libsrc/cdqual/reports.py

===============================
Changes in 2.5.7 12. Jan. 2023
===============================

o) SHI-1831 Add registry host for pulling Oracle image.
   SHI-1831 Follow changes in jira trigger tocken name.
   Remove opt/IDCSW from paths in tarball.
   SHI-1831 Clean up pipeline control file.
   SHI-1817 Improved branch check and container build.
   Workaround for git 'expected shallow list' issue.
   Builds CentOS and RHEL (no podman) containers with kaniko.

   .gitlab-ci.yml

o) Create release candidate for testing glibidcodbc changes

   configure.ac

o) Documentation updated

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

===============================
Changes in 2.5.6 24. Feb. 2022
===============================

o) SHI-1645 Improved branch detection in tag pipelines
   Deploy release candidates to maintainer devlab

   .gitlab-ci.yml

o) Added junit schema definition

   doc/xml/JUnit.xsd

o) Added PID and port to start up messages and summary logs

   src/cd2wng/main.c
   src/cdrecv/main.c
   src/cdsend/main.c

o) Added renewed test certificate

   certs/CDTEST/CDTEST_2022.pem

o) Fixed some warnings for XML test output

   test/cdsend.pl

o) SHI-1054 Log frame sequence number
   instead of last connection request frame received
   (see ISI-407 for details)

   src/cd2wng/merge.c
   src/cdcon/control.c
   src/cdrecv/handling.c
   src/cdsend/sending.c
   src/cdsend/snd_command.c
   src/samples/sampleSenderAPI.c

o) SHI-1648 Fix gap detections with more than one frame missing

   tools/check4gaps.pl

o) SHI-1504 Added application version to API

   Requires modification of applications using the APIs

   doc/man/initFileReaderAPI.3cd
   doc/man/initMessageAPI.3cd
   doc/man/openBuffer.3cd

o) Fixed junit XML file format and location

   and small improvements for test case 1

   .gitlab-ci.yml
   test/cdsend.pl

o) Added basic junit test report output

   .gitlab-ci.yml
   test/cdsend.pl

o) COD-833 Added variables for external pipelines

   Added prototype for external deployment pipeline

   .gitlab-ci.yml

o) SHI-1662 Fix file names for certificate signing requests

   certs/HIGH2/HIGH2.csr
   certs/MEDIUM/EC_MEDIUM.csr

o) Added application version when application is initialized

   src/cd2wng/main.c
   src/cdcon/main.c
   src/cdrecv/main.c
   src/cdsend/main.c
   src/samples/sampleFileAPI.c
   src/samples/sampleMessageAPI.c
   src/samples/sampleSenderAPI.c
   src/tools/cdDataGen.c
   src/tools/cdrep.c

o) SHI-1560 Fixed reports for AUX stations
   if the requested report period isn't complete covered by a request

   libsrc/cdqual/reports.py

o) Fix wrong URL in commits when group name includes project name
   COD-831 Avoid symbolic links in job artifacts
   COD-830 Follow changes in Jira Trigger API

   .gitlab-ci.yml

o) Added ReleaseNotes.md and Changelog files to install target

   Makefile.am


o) SHI-1310 Use internal station name for file naming (again)

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf
   test/cd2w/run_waveAPI.py
   tools/createCdx.pl

o) SHI-1528 Align maxWfdiscMemoryDuration with size of merging window

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf
   src/cd2wng/init_cd2w.c

===============================
Changes in 2.5.5 18. Nov. 2021
===============================

o) Updated Release Notes

   ReleaseNotes.md

o) Fixed Dockerfile and added Jira ticket trigger

   .gitlab-ci.yml
   Dockerfile

o) Release version 2.5.5

   configure.ac

o) Database account removed

   test/cd2w/run.cdx

o) Keep white space

   tools/db2file.pl

o) Improved argument checking

   test/cd2w/run.test

o) Improved documentation

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Fixed incorrect number of constant samples

   when not all data is available for reported period and
   the same wfdisc exists in archive and ops database (see
   ISI-1031). Improved function descriptions

   libsrc/cdqual/reports.py

o) COD-832 Merge changes made for COD project

   .gitlab-ci.yml

o) SHI-1043 Added option to disable creation of core dumps

   libsrc/cdqual/reports.py

o) SHI-1330 Removed passswords from extended regression tests

   test/cd2w/run.cdqual
   test/cd2w/run.test

o) Remove outdated comment

   src/cd2wng/init_cd2w.c

o) Added option -N to omit creation of core dumps

   See ISI-231 for details

   tools/start_cdtool

o) Update runner tags

   and replace devlab02 with devlab01

   .gitlab-ci.yml

o) Start development on new version

   configure.ac

o) Added RHEL tests, changed to block script syntax

   .gitlab-ci.yml

o) Added script to compare cdqual station reports
   Used in test environment

   compareReports.pl

===============================
Changes in 2.5.4 20. Aug. 2021
===============================

o) Improved build and upload job and added cats script

   .gitlab-ci.yml

o) Added workaround for possible DBI or perl issue ".000123\0"

   tools/db2file.pl

o) Added compile option to adjust frame and CSF times

   when a filter is applied. This is a workaround for GPS
   receiver time roll over. See IRS-160603 for details

   src/cdsend/main.c
   src/cdsend/sending.c

o) Added test case description to stderr if redirect to file

   test/cdsend.pl

o) Documentation updated

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Moved debug message and improved comment

   src/cd2wng/merge.c
   tools/db2file.pl

o) Disable configuration parameter to write CLF records

   src/cd2wng/init_cd2w.c

o) Removed godbc interface

   configure.ac
   src/cd2wng/db_access.c

o) Port cdqual to Python 3

   Python 2.x is still supported

   libsrc/cdqual/__init__.py
   libsrc/cdqual/initQual.py
   libsrc/cdqual/reports.py

===============================
Changes in 2.5.3 30. Apr. 2021
===============================

o) Merge branch 'SHI-1247' into next

o) Do not try to re-build SUG if required applications are not installed

   configure.ac
   doc/Makefile.am

o) Merge branch SHI-1014 into next

o) Updated version

   configure.ac

o) Extend merging window to 32 days

   See ISI-739 for details

   src/cd2wng/merge.h
   test/cdsend.pl
   test/data/CPUP.20080609.0000.11bin
   test/data/CPUP.20080609.0000.clf
   test/data/CPUP.20080610.0000.11bin
   test/data/CPUP.20080610.0000.clf

===============================
Changes in 2.5.2 06. Apr. 2021
===============================

o) Disable builds with godbc

   configure.ac

o) Improved comment and log message

   libsrc/cdqual/reports.py

o) Improved handling of calib, calper and instrument type changes

   src/cd2wng/db_access.c
   src/cd2wng/merge.c
   src/cd2wng/merge.h
   test/cdsend.pl

o) Updated splint hints

   splint_hints.h

o) Updated database credentials

   test/cd2w/run.cdqual
   test/cd2w/run.cdx

o) Added graphical diff

   tools/diffqlr

o) Fix warning in newer perl versions

   tools/db2file.pl

o) Rework sample rate related code

   to support smooth migration of
   channels when sample rate is changing. See ISI-725 for details.

   src/cd2wng/db_access.c
   src/cd2wng/merge.c
   src/cd2wng/merge.h

o) Comments updated

   tools/createCdx.pl

o) Fixed definition of timely data received

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Add tool to compare cdquality records

   tools/diffqlr

o) Added CI/CD files

   .gitlab-ci.yml
   Dockerfile

o) Added improvements for psql database creation

   build


===============================
Changes in 2.5.1 17. Dec. 2020
===============================

o) Fix test case 102 when running with 'config.test' file

   test/cdsend.pl

o) Update Release Notes

   ReleaseNotes.md

o) Rework s3/s4 related code

   to support smooth migration from
   s3 to s4. See DCR-1678 for details

   src/cd2wng/db_access.c
   src/cd2wng/merge.c
   src/cd2wng/merge.h
   test/cdsend.pl
   test/config.my.test
   test/config.test
   test/data/I18DK.20120102.0001.11bin
   test/data/I18DK.20120102.0001.clf

o) Documentation update

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Fix missing ld library when using non standard OpenSSL

   configure.ac

o) Generate CD2WNG SPG document

   .gitignore
   doc/CdToolsSpg.pdf
   doc/Doxyfile
   doc/Makefile.am
   src/cd2wng/cd2w.h
   src/cd2wng/db_access.c
   src/cd2wng/db_access.h
   src/cd2wng/init_cd2w.c
   src/cd2wng/init_cd2w.h
   src/cd2wng/main.c
   src/cd2wng/merge.c
   src/cd2wng/merge.h

===============================
Changes in 2.5.0 05. Nov. 2020
===============================

o) Release version 2.5.0

   configure.ac

o) Added option to initialize database

   build

o) Added Risk paragraph

   ReleaseNotes.md

o) Improved CD-1.0 output and added "unknown" authentication state

   tools/checkAuthState.sh

o) Enhance cd2wng merging algorithm

   Modify slot calculation to avoid bogus arrivals and
   add second pass with time based segment calculation
   to avoid duplicate segments created by change in
   slot calculation. See ISI-940 and predecessor for details.

   src/cd2wng/db_access.c
   src/cd2wng/merge.c
   src/cd2wng/merge.h
   test/cdsend.pl

o) Fix crash on too short waveform file

   libsrc/cdqual/reports.py

o) Fix 'make check' on RHEL7

   test/Makefile.am

o) Fix incorrect working directory

   if a size check of files created by CD2WNG fails

   test/cdsend.pl

o) Fix incorrect "test passed" messages

   test/cdsend.pl

o) Fixed wrong quotes

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Added test root CA certificate with many DNAME parts

   See ISI-901

   .gitignore

===============================
Changes in 2.4.45 15. Apr. 2020
===============================

o) Update version

   configure.ac

o) Fix incorrect start and end times of constant data segments
   which were off by one sample and add check to avoid
   segments smaller than one samples time.
   See ISI-920 for details.

   libsrc/cdqual/reports.py

o) Added clarifications

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Fix missing location attribute in channel string
   when a filter is applied. See ISI-733 for details.
   Add test case for missing location attribute in channel
   string.

   src/cdsend/sending.c
   test/cdsend.pl

o) Merge pull request #8 from ThomasFabian/SIM-1287.1
   Allow skipping of execution of configure script and unit tests

   build

===============================
Changes in 1.4.44 12. Dec. 2019
===============================

o) Undo modified slot calculation for 2.4.44 release.
   It creates duplicate wfdisc/cdquality records after re-start
   when a duplicate frame with a nominal time short before midnight
   arrives which would has been assigned to a different time slot
   with the old calculation.

    test/cdsend.pl
    src/cd2wng/merge.c

o) Add release notes file
   Required for automatic creation of release ICR

   ReleaseNotes.md

o) Add license and Release Notes to tarball
   Makefile.am

o) Fix logging of debug message

   tools/genWaveform

o) Disable thread local database connection per thread
   until it's clear what triggers an Oracle "ORA-00060: deadlock
   detected while waiting for resource" error if more than 80 threads
   try to update/insert/delete in the same table (see SIM-1204)

   src/cd2wng/init_cd2w.c

o) Add pause to enable "zoom in" in graphs

   tools/pnt

o) Set version to 2.4.44

   configure.ac

o) Add support for thread local database connection
   For details see ISI-210 and ISI-789

   src/cd2wng/db_access.c
   src/cd2wng/db_access.h
   src/cd2wng/init_cd2w.c
   src/cd2wng/main.c
   src/cd2wng/merge.c
   test/cd2w/config.par
   test/cdsend.pl

o) Documentation update
   Added high broadband channels and example
   for seismic mission capability calculation

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Fix exception when clf file is corrupted
   due to garbage in frame header fields (see ISI-883)

   libsrc/cdqual/reports.py

o) Make output more readable

   tools/checkAuthState.sh

o) Updated TODO list

   TODO

o) Reduce length of line

   tools/checkAuthState.sh

o) Modify slot calculation to avoid too cautious overlap detections
   triggered by new release of SSI hydro stations
   software. This reduces the number of bogus arrivals
   seen after upgrade station H01W. Add test
   case for merging frames arrived short before midnight
   (see SIM-1201 for details)

   src/cd2wng/merge.c
   test/cdsend.pl
   test/data/H01X.20190627.0000.11bin
   test/data/H01X.20190627.0000.clf

===============================
Changes in 2.4.43 05. Aug. 2019
===============================

Depends on libIDCodbc >= 1.1.4, libCD >= 2.4.43 and
        cbase >= 1.4.3

o) Set release to 2.4.43
   To have more information in github's network graph

   configure.ac

o) Add check for invalid merge day and improve comment

   src/cd2wng/merge.c

o) Make 'No clf found' a debug message in AUTH_STATUS

   Make 'No clf found' warning in AUTH_STATUS
   reports a debug message instead of logging
   a warning to stderr

   libsrc/cdqual/reports.py

o) Add support for configuration of database statement timeout
   (see ISI-640)

   src/cd2wng/db_access.c
   src/cd2wng/init_cd2w.c

o) Rework DB related code to set DB handle only once

   when the worker thread is started. Improved
   function description and splint annotations.
   Preparation for one database connection per thread.

   src/cd2wng/db_access.c
   src/cd2wng/db_access.h
   src/cd2wng/merge.c

o) Add option to provide index of channel to plot
   and bug fixes

   tools/plotTimeDeviation.pl

o) Add database clean up script

   tools/cleanUpDB

o) Comments improved

   src/samples/sampleFileAPI.c

o) Short output improved and rework sending emails.
   Fix maximum time expected hour calculation

   tools/compareReports.pl

o) improve debug and error messages

   src/cd2wng/merge.c

===============================
Changes in 2.4.42 18. Apr. 2019
===============================

o) Documentation update

   Added cdrecvIndexFilePathExtended and some clarifications
   regarding wfdisc end times

   doc/CdToolsSug.lyx
   doc/CdToolsSug.pdf

o) Maximum expected time added to comparison

   tools/compareReports.pl

o) Remove NL in Y axis legend

   tools/pnt

o) Add signing of channel sub-frames

   Improve CD data generator code to act also
   as an example for signing channel sub-frames
   as requested by French NDC

   src/samples/sampleSenderAPI.c
   src/tools/cdDataGen.c

o) Optimize DB wfdisc updates

   wfdisc sub-records are updated only when a segment
   has changed or the real sample rate deviates from
   the nominal sample rate. Optimization of wfdisc
   database updates. See ISI-811 and below for details

   src/cd2wng/merge.c

o) Support more than one index file path

   Required for OPS if auxiliary and primary
   stations are processed in one run.
   See ISI-273 for details

   libsrc/cdqual/initQual.py
   libsrc/cdqual/reports.py
   samples/config.par
   test/config.my.test

o) Add static 3C BB and 3C high BB redundancy rule

   Add static 3C BB and 3C high BB redundancy rule for
   seismic stations. If more than one 3C element (high
   broadband/broadband/mixed short period + medium
   period) is detected at the same site only one of
   the 3Cs has to be operational. See ISI-778 for details

   libsrc/cdqual/reports.py

o) Add port to LDAP server configuration for LDAP fail-over test

   test/config.my.test

o) Documentation update for sender API

   Added more description for signing call-back

   doc/man/setChannelSubFrame.3cd
   doc/man/writeFrame.3cd

o) Add LDAP failover test

   See ISI-779 for details

   test/cdsend.pl

o) Add option to scan outage reports read from STDIN

   Fix label for late data without surety

   tools/plotChannelQual

o) Improved mail column headers

   tools/compareReports.pl

o) Improve plot

   Don't plot quality and wfdisc records by default.
   Plot quality records as placeholder if channel
   has no quality issues.
   Add option to plot quality and wfdisc records.
   Fix missing unauthenticated surety plot.

   tools/plotChannelQual

===============================
Changes in 2.4.41 05. Mar. 2019
===============================

o) Add script to compare cdqual reports with threshold

   Used in COD project

   tools/compareReports.pl

o) Update all wfdisc (sub-)records when a segment has changed

   Before wfdisc have been updated only if the number of samples
   or the offset of sub-records have changed. But this behavior
   caused small (below one samples time) deviations between end
   time and start time of consecutive sub-records in some cases.
   This deviations triggered bogus arrivals in DFX. See SIM-669
   for details. No optimization has been implemented to create
   reference test data which contains correct start and end times!

   src/cd2wng/merge.c

o) Add initial waiting time parameter

   Re-staring too often generates many Emails, especially in
   the COD project. Therefore a parameter has been added to
   set the initial waiting time before the next re-start attempt
   is made. If the parameter is not supported it takes 30 seconds
   as in the previous version. Relates to COD-104

   tools/start_cdtool

o) Clean up test environment makefile

   tools/Makefile.all

o) Add test case for STOP tag in base64 encoded block

   See ISI-750 for details

   test/cdsend.pl
   test/data/OBN__CSF.msg

o) Add Makefile which builds binaries in test environment

   tools/Makefile.all

o) Fix comment

   src/cd2wng/db_access.c

o) Add option to report the cdqual version

   libsrc/cdqual/initQual.py
   libsrc/cdqual/reports.py

o) Don't re-load requests when running in cached mode

   to prevent 'no channels left' errors (see PES-4360)

   libsrc/cdqual/reports.py

================================
Changes in 2.4.40  11. Dec. 2018
================================

o) Update version number (configure.ac)

o) Add license file (LICENCE.txt)

o) Add documentation and SQL schema to
   install artifacts (doc/Makefile.am)

o) Consider surety channel attributes in channel
   reports(see ISI-726 for details)(reports.py)

o) Add test case for re-loading CRLs
   Also rework stopping applications running
   in background. Underscores in root CRLs
   are required by 'make dist' (cdsend.pl,
   I08BO.20160524.1348.*, certs/I08BO)

o) Omit test output. Rework tests were cd2wng
   is started more than once to improve
   output in case the test fails.
   Add test case for cdqual channel
   values with surety (ISI-726)
   (cdsend.pl, MJAR.20181114.1337.*)

o) Fix comments (sending.c)

o) Fix incorrect merge of late arrived frame when
  frame triggers a merge of two existing quality
  segments and the right segment and the channel
  sub-frame have different quality flags/status bits
  See ISI-742 for details (merge.c)

o) Add plots for surety value
   (tools/plotChannelQual)

o) Documentation updated
   (doc/CdToolsSug.pdf)

o) Add test data for 'Set filter command test'
   (I59US.20140821.0000.*)

================================
Changes in 2.4.39  18. Sep. 2018
================================

o) Update version number (configure.ac)

o) Documentation update(doc/CdToolsSug.lyx, doc/CdToolsSug.pdf)

o) Fix comments (db_access.c)

o) Fix crash in AUTH_REPORT when sensor information
   has been changed and report is requested for the
   day before or after the new sensor information
   start time.

   Fix possible bug when no eligible channels are found
   during calculation of statistics for seismic stations.
   (reports.py)

o) Add number of samples (checkAuthState.sh)

================================
Changes in 2.4.38  28. Jun. 2018
================================

o) Update version number (configure.ac)

o) Avoid unformatted output to sdtout (test/cdsend.pl)

o) Fix typos (src/tools/cdDataGen.c)

o) Add tool which plots data quality based on cdqual OUTAGE reports
   (tools/plotChannelQual)

o) Add python environment shebang (tools/cdqual, tools/genWaveform)

o) Make code more readable and update comments.
   Fix JSON AUTH_STATUS report format if station has no
   failed intervals. Fix DSV AUTH_STATUS report format
   if no network is listed. Fix JSON date format.
   List wfdisc and cdquality record segments used
   in different gap types in "verbose"OUTAGE report
   Fix surety values in channel reports.
   Fix reading one sample too much when reading
   wfdisc and cdquality records and calculate
   surety for channel reports only from cdquality
   records (ISI-305). Add consistency check for station values
   with surety in case that wfdisc and cdquality
   records are out if sync (libsrc/cdqual/reports.py)

o) Documentation update(doc/CdToolsSug.lyx, doc/CdToolsSug.pdf)

================================
Changes in 2.4.37  05. Apr. 2018
================================

o) Update version number (configure.ac)

o) Allow release candidate version strings when checking
   response from CD controller (cdsend.pl)

o) Adjust debug levels and debug formatting (merge.c)

o) Update error message (cdcon/main.c)

o) Move initial signal settings to libCD (cdsend/main.c, cdrecv/main.c)

o) Adjust list of blocked signals to work around
   Oracle 12 client driver issue (see ISI-640 for details).
   Move initial signal settings to libCD (cd2wng/main.c)

================================
Changes in 2.4.36  05. Mar. 2018
================================

o) Update version number (configure.ac)

o) Add test case for cdqual's cache mode.
   Don't stop if a test case is failing (cdsend.pl)

o) Add channel cache files to cdqual.
   This files could be read later to generate different
   reports with exactly the same input data.
   Fix JSON AUTH_STATUS formatting error if no failed
   intervals are reported. See CD Tools SUG for details.

o) Documentation update (CdToolsSug.lyx)

================================
Changes in 2.4.35  15. Feb. 2018
================================

**************************************************************
NOTE: ECDSA support has been re-worked with libCD
  2.4.35. Since this version, the hash function for ECDSA
  signatures is is determined based on the security strength
  of the used key as suggested by NIST SP 800-57 Pt. 1 Rev. 4.
  ECDSA signatures created by older (test) versions of libCD
  which only used SHA-224 hashes are still supported, and they
  are detected by a signature length of 144 bytes.
  This means, versions of CD Tools applications which are
  linked against libCD < 2.4.35 can't authenticate ECDSA
  signatures created by libCD >= 2.4.35, whereas CD Tools
  applications linked against libCD >= 2.4.35 can validate
  signatures created by libCD < 2.4.35.
***************************************************************

o) Merge patch from EH to fix incorrect signature sizes and offsets
   when ECDSA signature is not a multiple of 4 (handling.c)

o) Update version number (configure.ac)

o) Re-work starting and stopping background processes
   to avoid stopping a cdtools application running in
   the same tty group, but not started from test script
   (cdsend.pl)

o) Follow signature related sender API changes. API support
   for passing channel signatures for CSF assembled by the
   sender API has been dropped in the sender API and has been
   replaced by callback function for signing CSFs (sampleSenderAPI.c,
   cdDataGen.c, sender API man pages)

o) Update tools related README file (tools/READ.ME)

===============================
Changes in 2.4.34 10. Oct. 2017
===============================

o) Update version number (configure.ac)

o) Expired certificates replaced. This requires updating
   the authentication key ID in some test cases!!
   (cdsend.pl, EC_MEDIUM_2917.pem, EC_HIGH_2017.pem,
    config.test, config.my.test)

o) Update Software User Guide (CdToolsSug.lyx)

o) Modify index for ruleset table (offdate added)
   (cd2wng.sql)

o) Update tests for cdrep output caused by more strict
   certificate checks introduced with libCD 2.4.33
   (run.cdx)

o) Update auxiliary tools (tools/READ.ME, check4gaps.pl,
   checkBadFrames.sh, checkParFile.pl, stationOverview.pl)


================================
Changes in 2.4.33  06. Jul. 2017
================================

o) Switch to tar-pax format for tarball to support
   high user IDs used now at the IDC. Update
   version number (configure.ac)

o) Fix re-creation of static tables file if it is
   outdated (initQual.py)

o) Fix automatic detection of station technologies
   for hydroacoustic stations. Worked by chance for
   T-phase, but not for hydrophones if station name
   starts with HA (reports.py)

o) Fix warning when compiled without DB access (cd2wng/main.c)

o) Fix double libCD string in libCD info when
   cdcon called without arguments (cdcon/main.c)

o) Improve comments (sending.c)

o) Replace xmgrace with gnuplot and enhance graphs
   with more frame types (pnt)

o) Update test cases to consider the automatic adjustment of validity
   period of certificates introduced with libCD 2.4.33
   (cdsend.pl, HIGH2*, config.test, keyPreloadFile.test)

================================
Changes in 2.4.32.1 4. Apr. 2017
================================

o) Update version number (configure.ac)

o) Fix build without HAVE_DB_ACCESS defined.
   (merge.c)

================================
Changes in 2.4.32  31. Mar. 2017
================================

o) Update version number (configure.ac)

o) Update Software User Guide (CdToolsSug.lyx, CdToolsSug.pdf)

o) Add sample rate threshold for calculation of real
   sample rate to avoid too high fluctuations in real
   sample rates as requested by ET. A threshold of 0
   restores the old behaviour. For waveform records
   below sample rate threshold nominal sample rate is used.
   Debug levels adjusted to avoid too much debug output.
   (merge.c)

o) Fix incorrect checksum for test case 29 when running
   in DB mode (cdsend.pl)

o) Move tools not described in SUG to EXTRA_DIST target
   (tools/Makefile.am)

================================
Changes in 2.4.31  02. Feb. 2017
================================

o) Update version number (configure.ac)

o) Add OPS DSA CA 2017 certificate (OPS_DSA_2017.pem)

o) Update Software User Guide (CdToolsSug.lyx)

================================
Changes in 2.4.30  15. Apr. 2016
================================

o) Update version number (configure.ac)

o) Fix incorrect end time calculation when loading
   quality records, which could cause incorrect split
   of quality records. See ISI-443 (db_access.c)

o) Documentation update (CdToolsSug.pdf)

o) Fix comment (merge.c)

o) Adjust debug levels and debug output to
   avoid unnecessary debug output. Ensure
   that one samples time (1/sample_rate) is
   represented as a float value (reports.py)

o) Add tests for invalid CD-1.0 CSF timestamp
   and too short public key in certificate
   (cdsend.pl, test/data/{I35NA*, MAW*},
    certs/I35NA*, certs/Makefile)

o) Adjust end of tests to 99 to avoid changes when
   more test cases are added (test.sh)

================================
Changes in 2.4.29  17. Feb. 2016
================================

o) Update version number (configure.ac)

o) Documentation update (CdToolsSug.pdf)

o) Add test for pure OUTAGE messages
   (cdsend.pl)

================================
Changes in 2.4.28  26. Jan. 2016
================================

o) Update version number (configure.ac)

o) Adjust surety status bits as requested by SN
   (see ISI-426)(reports.py)

================================
Changes in 2.4.27  02. Dec. 2015
================================

o) Update version number (configure.ac)

o) Follow change in CDlibVersion()
   (cdsender/main.c, cd2wng/main.c, cdrecv/main.c, cdrep.c)

o) Fix incorrect end time calculation when loading
   quality records, which could cause incorrect split
   of quality records (merge.c)

o) Update report file checksum caused by fix in cd2wng
   (cdsend.pl)

o) Re-work "prepared statements" to avoid performance drop
   when DB data type does not match python type in where
   clause. Bind as string variables (See DCR-2346)
  (reports.py)

================================
Changes in 2.4.26  22. Sep. 2015
================================

o) Update version number (configure.ac)

o) Fix typo (merge.c)

o) Use "prepared statement" syntax for SQL operations in cdqual.
   pyodbc does not provide an API for prepared statements,
   but according to the pyodbc documentation, it uses
   prepared statements internally if possible (reports.py)

o) Rename sampleAPI.c to sampleSenderAPI.c to emphasize its purpose.
   Rename sampleAPI to senderAPI. (sampleAPI.c, sampleAPI)

o) Set syslog ID as requested by EW (sampleMessageAPI.c)

o) Make loop through production lines more robust and fix
   requirements for strict order in production line files(cdsend/main.c,
   cd2wng/main.c)

o) Follow rename of sampleAPI. Add cd2wng combined
   regular expression test case. Add station statistics
   report to test case 29 (cdsend.pl)

o) Update production line filter examples (samples/*productionlines)

o) Documentation update (CDTools.pdf)

================================
Changes in 2.4.25  05. May  2015
================================

o) Update version number (configure.ac)

o) Add combined regular expression for sites and channels.
   Re-work of filter code has moved assignment of production lines
   to station objects to initSenderStation()
   (cd2wng/main.c, cdsend/main.c)

o) Add combined regular expression for sites and channels.
   Move duplicate code segments for channel filters
   to libCD (merge.c, sending.c)

================================
Changes in 2.4.24  12. Mar. 2015
================================

o) Update version number (configure.ac)

o) Update sample configuration file (config.par)

o) Documentation update (CDTools.pdf)

o) Fix incorrect values with for auxiliary
   stations when channels are stuck in state 'requested'
   (ISI-311) (reports.py)

================================
Changes in 2.4.23  20. Feb. 2015
================================

o) Update version number (configure.ac)

o) Fix incorrect minimum values with surety for auxiliary
   stations (ISI-305) (reports.py)

o) Used external date command in w2h.pl if explain binary is
   not found (tools/w2h.pl)

o) Documentation update (CDTools.pdf)

================================
Changes in 2.5.1 10. Feb. 2015
================================

**********************************************************
Don't install this version in OPS. The (old) message
system requires that clf records are written by cd2wng
**********************************************************

o) Apply changes from 2.4 branch (2.4.21 and 2.4.22) to catch up

o) Remove support for gODBC (merge.c, db_access.c)

================================
Changes in 2.4.22  24. Nov. 2014
================================

o) Update version number (configure.ac)

o) Fix compiler warning and improve debug message (sampleAPI.c)

o) Fix division by zero if no minimal channels left (ISI-270).
   Fix too high channel count warnings (ISI-272) (reports.py)

================================
Changes in 2.4.21  20. Oct. 2014
================================

o) Update version number (configure.ac)

o) Fix check for maximum number of channels
   (cdrep.c, merge.c)

o) Update build instructions (README)

o) Add new XML and JSON schemas for new report versions
   (doc/json/{stationstatus-3, stationstatistics-2, channelstatus-3,
    example-stationstatus-3, example-stationstatistics-2,
    example-channelstatus-3}.0.json, doc/xml/stationstatus-3.0.{xsd,rng,rnc},
    dox/xml/stationstatistics-2.0.{xsd,rng,rnc},
    dox/xml/channelstatus-3.0.{xsd,rng,rnc}, example-stationstatus-3.0.xml,
    example-stationstatistics-2.0.xml, example-minimal-stationstatus-3.0.xml,
    example-minimal-stationstatistics-2.0.xml,
    example-minimal-channelstatus-3.0.xml, example-channelstatus-3.0.xml)

o) Fix checked values in AUTH_STATUS report which were
   authentication passed before (reports.py)

o) Add CHAN_STATUS:3, STA_STATUS:3 and STA_STATISTICS:2 reports
   and fix formatting of STA_STATISTICS and STA_STATUS:2 ims reports
   (reports.py)

o) Replace *timely with timely* in JSON reports (reports.py)

o) Fix mission capability calculation if not all channels
   of an auxiliary station have been requested (reports.py)

o) Add CHAN_STATUS:3, STA_STATUS:3 and STA_STATISTICS:2 reports
   (CdToolsSug.pdf)

================================
Changes in 2.5.0 09. Sep. 2014
================================

**********************************************************
Don't install this version in OPS. The (old) message
system requires that clf records are written by cd2wng
**********************************************************

o) Update version number (configure.ac)

o) Add AUTH_STATUS report and update authentication section
   to SUG (CdToolsSug.pdf)

o) Remove support for writing clf records (db_access.[ch], merge.c)

o) Stop cd2wng if writing clf records is switched on (init_cd2w.c,
   test/config.*)

o) Move man pages to libCD (doc/man, doc/Makefile.am, Makefile.am)

o) Update build instructions to work also with tcsh (README)

================================
Changes in 2.4.20  22. Aug. 2014
================================

o) Update version number (configure.ac)

o) Rename certs/CRL.pem to certs/CA/Lab DSA CA No4.crl
   and update certs/Makefile.am

o) Add section for redundant CD Tools configurations to
   SUG (CdToolsSug.pdf)

o) Improve error diagnostic if cd2wng binary is not in path
   or if cd2wng stops unexpected (genWaveform)

================================
Changes in 2.4.19  31. Jul. 2014
================================

o) Update version number (configure.ac)

o) Add clarifications to SUG (CdToolsSug.pdf)

o) Update comment (sending.c)

================================
Changes in 2.4.18  10. Jul. 2014
================================

o) Update version number (configure.ac)

o) Add TAP output as requested by HE (cdsend.pl)

o) Add description for channelStatusMask (CdToolsSug.pdf)

o) Add libtool as prerequisite (INSTALL)

o) Fix time used for frame signature check (merge.c)

o) Fix auxiliary data timeliness broken with 2.4.15 (reports.py)

================================
Changes in 2.4.17  27. May. 2014
================================

o) Update version number (configure.ac)

o) Add small clarifications in SUG (CdToolsSug.pdf)

o) Fix incorrect skipping of frames when maxDeviation has been set
   and frame was too close to real time (merge.c)

================================
Changes in 2.4.16  05. May. 2014
================================

o) Update version number (configure.ac)

o) Update certification handling (CdToolsSug.pdf)

o) Add OPS CA certificates to certs directory

================================
Changes in 2.4.15  15. Apr. 2014
================================

o) Update version number (configure.ac)

o) Add syncTimeInterval to SUG (CdToolsSug.pdf)

o) Fix incorrect constant data detection if not at start of frame.
   Calculate timeliness of auxiliary data based on information in the
   request table instead of quality flag (ISI-195)(reports.py)

o) Remove all related Data Frames from processing queue when Data Format
   frame was corrupted (merge.c)

================================
Changes in 2.4.14  03. Mar. 2014
================================

o) Update version number (configure.ac)

o) Add invalid frame header tests to test case 41 (cdsend.pl,
   test/data/I18DK.20120101.0000.clf)

o) Documentation update (CdToolsSug.pdf)

o) Fix comments and do not parse frames when frame header
   is corrupted (see ISI-206). Move deleteWithThatFileObject()
   to libCD (merge.c)

o) Move function deleteWithThatFileObject() used by cd2wng
   and cdsend to library. Fix gcc 4.7.2 warnings. Set ER_NOT_PARSED
   when invalid CD1.1 frame header is detected (sending.c)

================================
Changes in 2.4.13  12. Feb. 2014
================================

o) Update version number and add multi-arch sys include
   path for splint (configure.ac)

o) Add missing cdqual parameters (config.par)

o) Documentation update (CdToolsSug.pdf)

o) Make clear that 'no channels left' stops cdqual.
   Move MKO, MWD and MWS from Eligible to Geophysical Channel
   set, move MDA to All Channel set as requested by PJ (see DCR-1952).
   (reports.py)

o) Fix some statistics logged to the wrong place (whenUnconnected
   instead of whenConnected). Write commit info to fields in (error)
   statistic structure which are not used in cd2wng before. Commit
   the whole window for one station instead of each day separately.
   (merge.c)

================================
Changes in 2.4.12  20. Jan. 2014
================================

o) Update version number (configure.ac)

o) Comment updated (merge.c)

o) Convert debugLevel to integer at startup. Add
   experimental digitizerNoiseThreshold configuration parameter
   to cdqual (initQual.pl)

o) Do not longer check for consecutive 'no input from sensor'
   gaps when checking for constant data gaps. This check is done
   now in cd2wng. Recheck for 'no input from sensor' at the end
   of the segment with a configurable digitizerNoiseThreshold
   to minimize number of constant data gaps if channel data is
   only noise as requested by AS (see ISI-197) (reports.py)

o) Documentation update (CdToolsSug.pdf)

================================
Changes in 2.4.11  27. Nov. 2013
================================

o) Update version number (configure.ac)

o) Increase bounce time to 2 seconds and time waiting for
   a process to exit to 6 seconds to fix timing
   problems on slow machines (e.g. Raspberry PI).
   Allow shell meta characters in database password.
   Skip test case 22b in database mode (cdsend.pl)

o) Fix scanning the same index file twice due to incorrect
   set startTime. Fix seismic channels ending with '1' or
   '2' do not contribute to mission values (except BH1 and BH2).
   Fix incorrect values when not all channels of an auxiliary
   station have been requested for the same time period (reports.py)

o) Fix import of SQLite on CentOS 5.9 (Python 2.4.3) (initQual.py)

o) Documentation update (CdToolsSug.pdf)

================================
Changes in 2.4.10  07. Oct. 2013
================================

o) Fix 'constant data' detection off by one sample.
   Supersede 'constant data' by 'no input from sensor'.
   Do not longer trigger a commit if a single channel is synced.
   Commit by station instead (one per day). Adjust debug
   level for some debug messages (merge.c)

o) Add 'inner' and 'other' rule set (DCR-1867) as
   requested by PJ. Improved warning if no clf file is found.
   Do not check for 'constant data' if 'no input from sensor'
   flag is set (reports.py)

o) Documentation update (CdToolsSug.pdf)

o) Fix FreeBSD issue in checkCd2wSize() (cdsend.pl)

o) Do not longer issue a warning when an orphaned file is detected
   which does not contain data frames (ISI-178)(updateFrameProduct.pl)

================================
Changes in 2.4.9   27. Sep. 2013
================================

o) Add test case for message with STOP block without NL
   (cdsend.pl)

o) Fix stop when a CD1.0 clf file is parsed
   for AUTH_STATUS report and improve debug messages (reports.py)

o) Fix timezone problem on FreeBSD (cd2wng/main.c)

o) Add flag parameter to getFrameProduct() (db_access.[ch])

o) Re-work update the frameproduct table to minimize
   incorrect values for binary frame files (see comment in the code,
   merge.c)(ISI-16)

o) Fix warning on FreeBSD (sending.c)

o) Change sequence of frames to avoid disconnect in test case 10
   caused by different threading model on FreeBSD. Check for all know
   python sqlite packages due to different package name on FreeBSD.
   Check which md5sum utility is installed. Run ps with -c option
   to avoid different output on FreeBSD (data/ZALV.20080904.1724.clf,
   cdsend.pl)

o) Try all known sqlite modules (FreeBSD uses a different
   module name) (initQual.py)

o) Update installation instruction (INSTALL)

================================
Changes in 2.4.8   18. Aug. 2013
================================

o) Fix over optimized infrasound rule set and improve warnings
   if an infrasound rule set is missing (reports.py)

o) Follow API changes in getChMaskPosition() (merge.c)

o) Improve infrasound rule set description in SUG (CdToolsSug.pdf)

o) Fix to many time based syncs when a thread is waiting for data
   (merge.c)

================================
Changes in 2.4.7   08. Aug. 2013
================================

o) Fix on and offdate comment (cd2wng.sql)

o) Merge authentication gaps for authentication intervals. Fix
   incorrect value for 'Timely Data Availability' which
   was 'Timely Data Received' in STA_STATUS. Fix format of
   IMS STA_STATISTICS report. Fix incorrect values for
   eligible channel subset where the timely data availability (88.380%)
   is larger than the data availability (88.000%) caused by
   unexpected python data type converting of float DB data types to
   integers when time difference is an integer
   (reports.py)

o) Make cdrecvIndexFilePath optional for all reports except
   AUTH_STATUS (see ISI-153) (initQual.py)

o) Documentation update (CdToolsSug.lyx)

o) Do not longer try to add an entry in the frameproduct table
   when an orphaned file is detected, log a warning instead.
   Remove fixed return code -1 from getFrid() function
   (ISI-144)(updateFrameProduct.pl)

================================
Changes in 2.4.6   19. Jun. 2013
================================

o) Function header and other comments updated (sending.c)

o) Move WFDISC_WCS30 and WFDISC_WCS30_IN define to libcd/logfiles.h
   Write 7 significant digits for ncalib to wfdisc (see ISI-126)
   (merge.c, db_access.c)

o) Change layout of AUTH_REPORT for ims and dsv format
   and internal AUTH_INTERVAL report. Use 0% as
   default for mission values for auxiliary stations if no
   request has been made within report period (see ISI-119)
   (reports.py)

================================
Changes in 2.4.5   08. Jun. 2013
================================

o) Add CD Sender and libCD version to usage string. Add
   libCD version when logging start message to syslog.
   Log usage string to stderr (cdsend/main.c,
   cdrecv/main.c, cd2wng/main.c, cdcon/main.c)

o) Add CD Sender and libCD version to usage string (cdrep.c)

o) Don't run controller tests with ECDSA certificates if compiled
   without ECDSA. Fix python module checks and set PYTHONPATH (cdsend.pl)

o) Fix missing outage/constant segments and station metrics for auxiliary
   stations (ISI-154).  Fix wrong regexp for eligible T-Phase (ISI-154).
   Follow changes in clf file layout for 'AUTH_STATUS' report.
   Revert change how to compute data received authenticated as
   requested by PJ. Data received authenticated is computed as
   data received authenticated relative to data expected to be received
   (ISI-119/ISI-154) (reports.py)

o) Replace 'sensor noise' by 'no input from sensor' (merge.[ch],
   CdToolsSug.pdf)

o) Improve description of quality flags (ISI-119) (CdToolsSug.pdf)

o) Clean up defines (merge.h)

o) Enable quality checks for cdqual (config.test)

o) Add function to query ODBC provider for cd2wng (merge.[ch],
   db_access.[ch])

================================
Changes in 2.4.4   07. Jun. 2013
================================

o) Update version number (configure.ac)

o) Update install instructions (INSTALL)

o) Add AUTH_STATUS report to cdqual (reports.py, initQual.py)

o) Use Local::PAR if it exists to read PAR files (for PAR files
   with depth). Properly parse the dbAccount string into user
   and optional password. Remove hard-coded debugLevel=2
   Allow driver override from default ODBC using environment DBI_DRIVER
   Allow data source override from config using environment DBI_DSN
   Add support for mwf (type 54) files ((ISI-144) (updateFrameProduct.pl)

o) Follow changes in libcancomp (cdDataGen.c)

o) Change SQl data type for minchan in ruleset table to avoid
   issues with non right-justified values, e.g. like '50%    '.
   (cd2wng.sql)

o) Update test cases for channel name frames and make test case 39 more
   stable on slow machines (cdsend.pl)

o) Documentation update (CdToolsSug.lyx)

o) Do not longer stop when updateReceiverFrameProduct() does not
   find the binary file (Fix for ISI-56) (merge.c)


================================
Changes in 2.4.3   22. Apr. 2013
================================

o) Update version number (configure.ac)

o) Use time based values also for STA_STATUS report
   (reports.py)

o) Compute 'data received authenticated' as ratio of data received
   authenticated relative to data received instead of data received
   authenticated relative to data expected to be received (reports.py)

o) Create quality records by default and fix incorrect clf files
   when genWaveform is started with more than one binary file
   (genWaveform)

================================
Changes in 2.4.2   12. Apr. 2013
================================

o) Update version number (configure.ac)

o) Support new idcsyslog public header filename (from cbase 1.1.0)
   (cd2w.h, db_access.c, cd2wng/main.c, merge.c, control.c, cdcon/main.c,
    gaps.c, handling.c, init_receiver.c, listen.c, cdrecv/main.c,
    offline.c, cdsender.h, cdsend/main.c, sending.c, snd_command.c,
    sampleAPI.c, sampleFileAPI.c, sampleMessageAPI.c, cdDataGen.c,
    cdrep.c, explain.c, configure.ac)

o) Do not count periods with 'sensor noise' detections
   as available data as requested by PJ (fixes also ISI-97). Fix
   sensor noise and constant data detection algorithm (which was off by
   one sample). Add number of samples detected as 'sensor
   noise' to constant samples reported. Fix swapped values for
   data availability with surety and timely availability
   (reports.py)

================================
Changes in 2.4.1   05. Apr. 2013
================================

o) Update version number (configure.ac)

o) Syslog ID changed (cdcon/main.c)

o) Log more information when loading of sensor
   information failed (db_access.c)

o) Add experimental time based synchronization of
   restart/wfdisc/cdquality files or tables to
   cd2wng (init_cd2wng.c, merge.[ch], cdtest.pl)

o) Fix compiler warning (init_receiver.c, init_cd2w.c)

o) Fix frame acknowledgement when last frame sent is
   not acknowledged. Fixes also sending to many frames
   when restart and buggyAckNackFrames is NO (sending.[ch])

o) Add station blacklist example (samples/productionlines,
   samples/cd2w_productionlines)

o) Switch IDC tuning from Opteron to Native (configure.ac)

o) Remove ClearCase install script and update build instructions
   (Makefile.am, READ.ME)

o) Update documentation (CdToolsSug.pdf)

================================
Changes in 2.4.0   26. Feb. 2013
================================

o) Update version number (configure.ac)

o) Compute station status values based on time
   instead based on samples as requested by PJ (reports.py)

o) Add one more corrupted SHI message to test case 37
   (data/shi_corrupted.msg, cdsend.pl)

================================
Changes in 2.3.8   21. Dec. 2012
================================

o) Update version number (configure.ac)

o) Add redundancy scripts (start_cdtool_redundant, rebuildRestart.pl,
   cdtools.OCF)

o) Update sensor information file (sensorinfo.txt)

o) Expand environment variables (cdFeed.pl)

o) Rework mission rule set code in cdqual for easier
   maintenance and fix typo (LHR coded instead of LRH).
   Consider only the vertical components for the eligible
   channel set if T-phase station (reports.py)

o) Add time of last GPS synchronization to cdrep output (cdrep.c)

o) Add JSON and XML schema for Authentication status report
   (doc/json/authenticationstatus*, doc/xml/*authenticationstatus*)

o) Add Julian start and end date to parameter block (initQual.py)

================================
Changes in 2.3.7   25. Oct. 2012
================================

o) Update version number (configure.ac)

o) Change result for test case 37 caused by an updated
   message API. Add one more message to test case 37
   to test that the message API does *NOT* longer
   stop processing of messages when an invalid
   DAT2 block is detected. (cdsend.pl)

o) Do not longer install sampleAPI and fileAPI binaries
   (samples/Makefile.am)

o) Fix certDirectory example string (samples/config.par)

================================
Changes in 2.3.6   17. Aug. 2012
================================

o) Update version number (configure.ac)

o) Make idcodbc library the default (configure.ac)

o) Replace expired EC_HIGH certificate (cdsend.pl, config.test,
   EC_HIGH.pem, EC_HIGH.key)

o) Add different minimum channel calculation. Fix incorrect
   no data gaps for overlapped data in wfdiscs. Fix missing
   samples from cdquality records. Fix sporadic incorrect
   minimum values when channels are absent (reports.py)

o) Increase test range (test/Makefile.am)

o) Improve tests for non-existent files (cdsend.pl)

================================
Changes in 2.3.5   06. Aug. 2012
================================

o) Update version number (configure.ac)

o) Add support for (complete) station black lists
   when using wild card for all stations in production line
   files (cdrecv/main.c, cd2wng/main.c)

o) Add new ECDSA CA root and ECDSA test certificates (EC_CA_2012.pem,
   EC_MEDIUM*, config.test)

o) Fix internal error when cdquality records overlap, which
   could happen when a database problem prevents the deletion
   cdquality segments in a previous run of cd2wng. Improve
   logging of debug messages (merge.c)

o) User guide updated (CdToolsSug.lyx)

o) Add test cases for station black lists (cdsend.pl)

o) Fix minimum channel calculation (cdqual.py)

================================
Changes in 2.3.4   20. July 2012
================================

o) Add tool which generates a sensorinfo file (csf.pl)

o) Move ruleset table to static tables (cd2wng.sql)

o) Fix check for vertical seismic channels (report.py)

o) Ignore error when inserting a clf record
   also when using idcodbc functions (db_access.c)

o) Check for late arrived data when end time is provided
   (cd2wng/main.c)

o) Use more safe but slower approach for dealing with consecutive
   wfdisc records during loading (delete and re-create). This fixes
   WFDISCSCTEX constraint violations when the wfdisc table contains
   records which should have been already merged (merge.c)

o) Merge patches from doxygen branch which fix several function
   comments (gaps.c, handling.c, listen.c, sending.c, sampleMessageAPI.c,
   cdrep.c)

o) Add index to ruleset table (cd2wng.sql)

o) Fix minimum value calculation for seismic and hydro stations.
   Treat also stations named "IS<number>" like infrasound stations
   ("IS25") (reports.py)

o) Add comment why LNG_CHANNEL_MASK is 64 (merge.c)

o) Replace ECDSA tests with DSA test temporary and update
   certificate serial numbers (cdsend.pl, config.test)

o) Update version number (configure.ac)

================================
Changes in 2.3.3   04. May  2012
================================

o) Fix merging frames with frame time length not a multiple
   of a second (Fixes ISI-29) (merge.c)

o) Add test case for merging frames which are not a
   multiple of one second long (cdsend.pl)

o) Leave channel list unchanged if no channels are provided
   in a backup group (report.py)

o) Update execute command call parameters (required for the
   theoretical fix for ISI-18) (listen.c)

o) Fix WFDISCSCTEX index constrain violation (ISI-47). See comment
   in the code (merge.c)

o) Add check for libgODBC.h and raise an error if ODBC support
   was enabled but IDC ODBC and gODBC were not found. Fix idcodbc
   configure path (configure.ac)

o) Add comment for PostgreSQL (cd2wng.sql)

================================
Changes in 2.3.2   27. Mar. 2012
================================

o) Add script to update frame product table (updateFrampeproduct.pl,
   tools/Makefile.am)

o) Move sensorinfo.mod from cd2w to test directory (test/Makefile.am,
   config.test, cdsend.pl)

o) Fix compile error when openssl-dev (or libssl-dev) is not installed
   (cdrep.c)

o) Add V2.0 station and channel status reports. Skip station report
   requests for channels with warning. Fix incorrect formatting
   in json reports when more than one station is name provided (reports.py)

o) Add station specific rule sets (inner, outer, essential and
   other pressure) and fix channel status bit check. Fix
   incorrect mission capability value calculation for seismic
   and infrasound stations (reports.py)

o) Add advanced test for connection requests (cdsend.pl)

o) Rework configure.ac

o) Add frame authentication state and more detailed
   authentication state for channels to quality flags (merge.[ch])

o) Check for more authentication states (reports.py)

o) Force lyx to override existing (old) pdf file in batch mode
   (doc/Makefile.am)

o) Update genWaveform to process all files with one run of cd2wng
   (tools/genWaveform)

================================
Changes in 2.3.1   21. Feb. 2012
================================

o) Set application type to other to load certificates for
   data providers (bugfix for ISI-38). This bugfix requires
   libCD >= 2.3.1 (cdrep.c)

o) Use a saved sensor information file instead of the latest
   one to keep test output stable (cdsend.pl)

o) Add comment that frame set information is not persistent (gaps.c)

o) Fix timing issues in test case 39 and 40 (cdsend.pl)

o) Update CD Tools User guide (CdToolsSug.lyx)

o) Change port used for make test to avoid port collision
   in devlan (config.test)

o) Update sensor info sample file to fix incorrect sample rate for
   H01C1/LEA and H01C1/LEV (sensorinfo.txt)

o) Speed up second wfdisc select (reports.py)

o) Start work on quality metrics enhancements (reports.py,
   initQual.py)

o) Change version string (configure.ac)

================================
Changes in 2.3.0   11. Jan. 2012
================================

o) Add possibility to switch on/off treatment of AckNack
   frames in sender. Default is old behavior (sending.c)

o) Add buggyAckNackFrames configuration parameter and
   old/new ldapServer configuration parameter syntax (samples/config.par)

o) Fix too long code lines and set default value for
   "unacknowledged" high water mark to NBR_RESENT_FRAMES to
   maintain backwards compatibility for restart tests
   (cd2wng and cd sender use the some code for managing the
    list of frames which should be sent/processed. See comment
    in the code). (merge.c)

o) Fix invalid frame signature length check which does not
   consider ECDSA sizes in CD receiver (handling.c)

o) Trim percentage to 100 percent if it is more than 100
   percent and fix sporadic duplicated constant data gaps shown
   in OUTAGE reports (reports.py)

o) Fix missing checks and wrong data type for sample rate
   when using idcodbc functions (db_access.c)

o) Do not run test case 9 when compiled without ECDSA (cdsend.pl)

o) Add buggyAckNackFrames configuration parameter to test config
   file (config.test)

o) Fix number of test cases for test target (test/Makefile.am)

++++ Changes in libCD ++++++++

o) Change version string and add new configuration
   parameter --enable-idcodbc (configure.ac)

o) Add new event "invalid gap detected" (events.[ch])

o) Add new sender configuration parameter 'buggyAckNackFrames'
   (init_sender.c,  fileAPI.h)

o) Improve warning/error messages (ldap.c)

o) Add functions for parsing AckNack frames into a frame
   set and create frame sets (frames.[ch])

o) Add unacknowledged frames high water mark to internal
   reference list header (prepare.h)

o) Add function to change the sending state bases on information
   found in ackNack frames (prepare.c)

o) Add frame sets to sender structure (schedule.h)

================================
Changes in 2.2.8   14. Nov. 2011
================================

o) Remove channels named BDA and LDA from known data channels
   for infrasound stations. Requested by GP (reports.py)

o) Fix zero file size for waveform files in frameproduct table
   and tweak some debug message levels (merge.c)

o) SUG update (Added Jeffreys comments) (CdToolsSug.pdf)

++++ Changes in libCD ++++++++

o) Change version string (configure.ac)

o) Stop application if LDAP server is configured but not
   reachable (init.c)

o) Add new LDAP interface for LDAP calls. Old LDAP
   interface can be activated with -DLDAP_DEPRECATED
   (ldap.c)

================================
Changes in 2.2.7   14. Aug. 2011
================================

o) Rename CHANNEL_STATISTIC report to CHANNEL_STATISTICS.
   (initQual.py)

o) Rename CHANNEL_STATISTIC report to CHANNEL_STATISTICS. Fix
   author string in json reports. Fix row header for IMS channel
   statistics report. Fix missing channel statistics records in
   cdqual (reports.py)

o) Fix incorrect description of configuration parameters (cdcon.pl)

o) Speed up selects for wfdisc and cdquality records as
   suggested by JG (reports.py)

o) Make cd2wng works with idcodbc. Default ODBC access library is
   gODBC (cd2wng/db_access.c)

++++ Changes in libCD ++++++++

o) Change version string (configure.ac)

================================
Changes in 2.2.6   28. Sep. 2011
================================

o) Update xml and json documents (doc/xml/*.[xr]??,
   doc/xml/README, doc/json/*.json, doc/json/README,
   doc/json/Makefile.am, doc/xml/Makefile.am)

o) Remove DB access code from CD Sender (cdsend/main.c,
   sending.c, cdsend/db_access.[ch])

o) Fix compilation without database access if sqltypes.h is not
   installed (merge.c, merge.h, db_access.h, init_cd2w.c)

o) Allow data frames as first frames received in CD-1.1 connected
   state in non-strict mode (requested by GP) (handling.c)

o) Remove checkFrameProduct() function which is not longer used
   (cd2wng/db_access.c)

o) Fix incorrect cd2wng version in frameproduct table (db_access.c)

o) Fix invalid type ID of waveform files used during start up when
   loading quality records (db_access.c)

o) Update some too old comments and error messages (db_access.c)

o) Move quality structure from db_access.h to merge.h (db_access.h,
   merge.h)

o) Add different prototypes for recycleIds depending on IDC ODBC
   access library used (db_access.h)

o) Use different variable types for recycleIds depending on IDC ODBC
   access library used. Clean up old comments (merge.c)

o) Fix typo (genWaveform)

o) Add check for libidcodbc (configure.ac)

++++ Changes in libCD ++++++++

o) Change version string (configure.ac)

o) Fix incorrect error message when compiled without ECDSA
   (auth.c)

o) Clean up configure.ac. Remove check for ODBC and old
   comments (configure.ac)

================================
Changes in 2.2.5   07. July 2011
================================

o) Remove dependency for xml.dom.ext from cdqual
   and add own pretty print XML function because
   xml.dom.ext is not longer maintained (reports.py)

o) Fix wrong XML duration format in outage report (reports.py)

o) Fix invalid xmls URL when called with more than one station
   (reports.py)

o) Change format of maximum expected time to seconds
   in json and csv reports (reports.py)

o) Include jdate in diff of wfdisc records (diffwfdisc)

o) Change version string (configure.ac)

++++ Changes in libCD ++++++++

o) Fix wrong computation of jdate (misc.c)

o) Add comment for  PXA255 cpu based Motavista Linux (misc.h)

o) Update key search algorithm for new central facility
   naming schema (fixes SHD-10830 and SHD-10831) (auth.c)

o) Change version string (configure.ac)

================================
Changes in 2.2.4   10. June 2011
================================

o) Add JSON examples and update XML examples (doc/json/*,
   doc/Makefile.am,doc/xml/*.xml)

o) Add auxiliary stations to sample sensor info file (for data pool) and
   allow comments in sensor info file (samples/sensorinfo.txt)

o) Add new test certificate for 2011 and rename the old one
   (CDTEST/CDTEST.pem, CDTEST/CDTEST_2008.pem)

o) Update key ID for new CDTEST test certificate (cdtest.pl,
   config.test)

o) Add DSA root certificate for 2011 to certs directory (CA/CA_2010.pem)

o) Set empty string as default for configuration parameters
   not set to avoid stop of cdqual with "None" value error (initQual.pl)

o) SUG updated for cdqual JSON format (CdToolsSug.pdf)

o) Update messageAPI test case (#37) (cdsend.pl, data/CPUP__INT.msg)

o) Add function to change default frame product IDs (db_access.[ch])

o) Add configuration parameter 'fpTypeIDs' for frame product IDs
   (cd2wng/main.c, init_cd2w.c)

o) Fix missing authentication checks in cdrep (cdrep.c)

++++ Changes in libCD ++++++++

o) Replace version string with autoconf define for VERSION (cd_common.c)

o) Add DSA root certificate for 2011 (auth.c)

o) Allow comments in sensor info file and improve checks for
   correct line in sensor info file (init.c)

o) Change behavior of message API. Message API now creates file names
   in form of stream.YYYYMMDD.0000.extension and only one file per
   day and stream. Requested by AS (cd_common.c, senderAPI.c, messageAPI.c)

o) Change descriptive text for QUA_NOT_AUTHENTICATED flag (logfiles.c)

o) Set maximum field number for splitString() to 5 (required by
   setFpIDs()) (misc.h)

o) Add frame product IDs to sender parameters (fileAPI.h)

o) Remove version check in configure.ac

===============================r
Changes in 2.2.3   16. May. 2011
================================

o) Fix comment and wrong frame destination (control.c)

o) Update comment (cdcon/main.c)

o) Change CD Receivers default start port to port+3 (init_receiver.c)

o) Skip serial number in frame set when comparing clf or
   text files (diffclf, difftxt)

o) Improve error logging for test cases and use new CTBTO ECDSA test
   certificates for command request tests. Add test for
   cdqual in file mode (cdsend.pl)

o) Create primary key and index for primary key during table creation
   and not in an alternate table statement (needed for SQLite) (cd2wng.sql)

o) Add static table definition and content of static tables for
   running cdqual in file mode (static.sql)

o) Add configuration parameters for flat file mode and load static table
   in flat file mode (initQual.py)

o) Add flat file mode to cdqual. Load content of files into temporary in memory
   SQL database (SQLite). Add JSON output format. Fix swapped day/month
   in report start and end time. Fix multiple headers in all report formats
   if more than one station is reported (reports.py)

o) Rework updateFrameProduct to get rid of dependencies to internal
   reference list (cd2wng/db_access.[ch])

o) Remember current waveform file size for frameproduct table (merge.h)

o) Remember current waveform file size for frameproduct table.
   Rework updateFrameProduct to get rid of dependencies to internal
   reference list. Update waveform file size when syncing wfdisc
   records (merge.c)

o) Read frame product type ID from internal variable instead using a
   build in value. Regress modification which loads frame product ID
   from fpdescription table (cd2wng/main.c, db_access.[ch])

o) Take frame product type ID from internal variable instead of build in
   types and do not longer create entries for CD text files in the
   frameproduct table (merge.c)

o) Add fpdescription table and clean up SQL (cd2wng.sql)

o) Add check for openssl in /usr/local/ssl and change version string
   (configure.ac)

o) Add configuration parameters for cdqual in file mode (config.par)

o) Add configuration parameters for cdqual in file mode and update
   key IDs for new ECDSA test certificates (config.test)

o) Fix incorrect offset lines and unexpected halts when frame spawns
   midnight (reported by AB) (createCdx.pl)

o) SUG updated (CdToolsSug.pdf)

o) Clean up old comment (merge.c)

o) Fix comment (sending.c)


++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Log serial number in certificate as integer instead of hex number
   (auth.c)

o) Add test macro to test if openSSL is able to verify CTBTO ECDSA
   root certificate and change version string (configure.ac)

o) Add CTBTO ECDSA root test certificate (auth.c)

================================
Changes in 2.2.2   16. Mar. 2011
================================

o) Check if python and python dateutil is installed before run
   test block which requires python (cdsend.pl)

o) Update key ID's for EC tests and add key file names to
   sendSndCommand() and sendRcvCommand() (cdsend.pl)

o) Add ID string and log warning if no sensor information
   is available (cd2wng/main.c)

o) Add new optional command line parameter sensor info file to
   genWaveform (genWaveform)

o) Remove CR's in README

o) Add support for EC signature size (handling.c, listen.c, sending.c,
   control.c)

o) Update sample code for signing callback function (sampleAPI.c,
   cdDataGen.c)

++++ Changes in libCD ++++++++

o) Change version string and add ID string (cd_common.c)

o) Replace string 'gbase' with 'cbase' (configure.ac)

o) Add support for more than one root certificate. Adjust validity
   period of (non root) certificates based on validity period of
   root certificates (no gaps are supported in the validity periods).
   Add (temporary) EC CA root certificate. Add support for EC private
   keys with SHA224 digest and 224 to 571 bits EC fields (56 - 144 byte
   signature size) for data signing and verification. Add search
   for certificate by serial number. Add support for EC keys in
   certificates (auth.c)

o) Add function prototype for getKeyBySerial() and getKeyByCN() and
   change prototypes for loadPrivateKey(), verifyData() and signData()
   (auth.h)

o) Search for certificate by serial number if not found by (old)
   keyID. Add checks for EC signature size and add new verifyData()
   parameters (cd_common.c)

o) Change type of privateKey to EVP_PKEY to support also EC keys
   (cd_common.h)

o) Add support for EC signature and add new parameter signature size
   to setTrailer() (frames.[ch])

o) Fix typo (init.c)

o) Add support for EC signature size (readwrite.c)

o) Add support for EC signature size and update some comments (requests.c,
   command.c)

o) Add support for EC signature size and add signature size parameter to
   function callback for signing data (callBackSign) (senderAPI.[ch])

o) Remove CR's in README

o) Add check for ECDSA support to configure script (configure.ac)

o) Add support for multiple base64 block decoding (messageAPI,c)

o) Fix creation of frame without channels if no channels have
   been provided before calling writeFrame() (senderAPI.c)

o) Add support for multiple base64 encoding blocks within one DAT2
   block (e.g. OBN). Fix incorrect case sensitive check for CSF messages
   (e.g. SEY). Fix missing channels in CM6 messages. Skip blanks in
   base64 blocks instead of stop parsing (e.g. ANMO) (messageAPI.c).


================================
Changes in 2.2.1   08. Feb. 2011
================================

o) README file updated as requested by HE

o) Removed empty files AUTHORS, COPYING, NEWS

o) Fix incorrect channel string count in sent CD1.1 frames when
   a filter has been applied (CTH patch). Fix also incorrect return
   value of filterFrame() when a filter has been applied (sending.c)

o) Add new cdqual report CHAN_STATISTIC (initQual.py, reports.py)

o) Skip too short frames (<1s) when merging. This change fixes the
   FP exceptions when cd2ng try to merge too short frames (merge.c)

o) Add test case for too short frames (below one second) and
   genWaveform tool (cdsend.pl)

o) Fix too many constant data detections in cdqual (reports.py)

o) Add script for running cd2wng in batch mode (genWaveform)

o) Typo fixed (cdDataGen.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) README file updated as requested by HE

o) Removed empty files AUTHORS, COPYING, NEWS, TODO

o) Fix missing Changelog

o) Release previous sensorinfo table when setSensorDescr() is
   called more than once. The caller has to take care that no
   reference to the old table is used and that the same table
   is not set twice (needed by waveReader API) (init.c)


================================
Changes in 2.2.0   18. Jan. 2011
================================

o) SUG updated (CdToolsSug.pdf)

o) Fix test results in DB mode and read dbConnectName and dbAccount
   from environment (if set) cdsend.pl

o) Fix wrong SQL C data type mapping check when loading new
   quality records. Seen only with old CTBTO ODBC driver. Drop
   check for relative wfdisc paths (cd2wng/db_access.c)

o) Add define for getFrameProduct() (cd2wng/db_access.h)

o) Allow channel names to be added to station/network/array names
   in cdqual and check all station/network/array/channel names
   before a report is created. Do not log virtual frames without
   -v option (reports.py)

o) Add new cd2wng configuration parameter minDetSampRate. It defines
   the minimum sample rate for which a constant data and sensor noise
   check is done. Used to avoid 'unreal' constant data and sensor
   noise detections (merge.c, init_cd2w.c, samples/config.par)

o) Reset sensor noise and constant data flag when below minimum
   sample rate for detection. Do not longer check absolute wfdisc path
   configuration parameter in cd2wng. Relative wfdisc paths never
   worked correct in cd2wng and causes a lot of troubles in other
   tools (e.g. cdqual).  If the path length is too short, symbolic
   links should be used instead. If this is not an option, the
   filePath configuration can be used to simulate absWfdiscPath=NO,
   e.g. filePath=./ (merge.c)

o) Add channel status and quality flag conversion to human
   readable form to explain tool (explain.c)

o) Add channelStatusMask to cd2wng configuration parameters
   (init_cd2w.c, samples/config.par)

o) Add defines for channel status and quality structure (db_access.h)

o) Switch to cdquality table layout. Add channel attributes, channel
   attribute mask and file offset. Fix wrong number of samples when
   loading quality record. Change format string for wfdisc and cdquality
   records to decrease size of debug messages (e.g. %.5f instead
   of %17.5f) (db_access.c)

o) Switch to cdquality table layout. Split cdquality records based
   on different channel attributes. Map CD1 to CD1_1 attributes
   (merge.[ch])

o) Add wffid, foff, ngoodsamp to cdquality table (doc/sql/cd2wng.sql)

o) Document update (CdToolsSug.pdf)

o) Add parsing of hours/minutes/seconds to start end end
   time (initQual.py)

o) Query cdquality instead of quality table. Fix s3/s4 conversion
   on 64 bit systems (reports.py)

o) Add ngoodsamp and change wffid type to long (merge.h)

o) Save waveform file name in frameproduct table. Replace dfile
   with file ID from frameproduct table. Add ngoodsamp. Fix missing
   quality records when waveform segment is stored at the end of
   the waveform file (needed when segment offset is stored in the
   waveform file)(merge.c, cd2wng/db_access.c)

o) Replace dfile with wffid (cd2wng/db_access.[ch])

o) Update field description (cd2wng.sql)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add helper function to map CD1 to CD1_1 status bits (misc.[ch])

o) Add helper function to print quality flag and channel status
   bits as human readable text (logfiles.[ch])

o) Add channelStatusMask to cd2wng configuration parameters (fileAPI.h)

o) Add detectionThreshold to cd2wng configuration parameters (fileAPI.h)

o) Fix structure member description (cd_common.h)

================================
Changes in 2.1.46  11. Nov. 2010
================================

o) Add index for dfile in quality and wfdisc table (cd2wng.sql)

o) Make sure that number of frames since last save is increased
   when a shutdown is initiated and this was the first frame
   processed. Add more comments (merge.c)

o) Raise warning if a data frame with frame destination != "0"
   is received in non strict mode and raise an error, send
   an alert frame and terminate the connection in strict mode
   (requested by GP) (handling.c)

o) Add check to cd2wng if frame nominal time belongs to future time
   (merge.c)

o) Do not longer write channels without channel info to the waveform
   file in database mode (merge.c)

o) Log more information when cd2wng start-up fails (db_access.c)

o) Create report for previous day if no start end end time is
   provided. Add default for ncdNet configuration parameter
   (initQual.py)

o) Fix s3/s4 to integer conversion. Change extension for dsv
   format in file mode from '.dsv' to '.csv' to be able to load
   the file without renaming in oocalc. Fix constant
   data detection (reports.py)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Improve comment (cd_common.h)

o) Add event for data frames with destination (which should be
   indeterminate according to the F&P)(events.[ch])

o) Improve check for channel and site names to detect empty
   channel and site names and fix some typos (frames.c)

================================
Changes in 2.1.45  27. Oct. 2010
================================

o) Rename structure member segSumData to segMean and
   segSumSquareData to segM2, and compute RMS as the
   root square count of the differences between mean and count.
   Do not write quality records in DB mode if channel not known
   in DB (PES-526)(fix for the quality with no related wfdisc record
   problem in DB mode) (merge.c)

o) Rename structure member segSumData to segMean and
   segSumSquareData to segM2 and load meanCounts instead of
   sunCounts from file/database (cd2wng/db_access.c)

o) Rename structure member segSumData to segMean and
   segSumSquareData to segM2 (merge.h)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix typo (frames.c)

================================
Changes in 2.1.44  11. Oct. 2010
================================

o) Rename senderControlPort configuration parameter to appControlPort
   (samples/config.par, cdsend.pl, test/config.test)

o) Modify test case 100 to create index files with CD Sender
   (cdsend.pl)

o) Return more detailed error code in case of an error and fix
   follow up errors (cd2wng/db_access.[ch], merge.c)

o) Add Makefile.ams as requested by HE
   (certs/Makefile.am, Makefile.am, configure.ac, certs/*/Makefile.am,
    doc/xml/Makefile.am, doc/sql/Makefile.am)

o) Add second DB connection to get rid of ODBCGetNextId() timeouts
   during start up of cd2wng (caused by serialization of DB requests
   by unix ODBC driver when selects in the DB are slow (PES-526):
   select|select|ID request|select|select|select|select|select -->)
   This change fixes also missing wfdisc records when libgODBC
   rolls back the connection.
   This change requires also a fix in libgODBC (cd2wng/main.c,
   cd2wng/db_access.c, merge.c)

o) Rename initDB() to getDBhandle() (db_access.[ch])

o) Decrease number of requested wfdics IDs from 100 to 20, for file IDs
   from 50 to 20 and for quality IDs from 1 to 20 (cd2wng/db_access.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Mark senderControlPort as obsolete and add new configuration parameter
   appControlPort (which overrides senderControlPort if set) and
   add enableAppIndexFile configuration parameter (cd_common.c)

o) Add check for obsolete parameters (cd_common.c)

o) Add file path and name for index file to config structure
   required by enableAppIndexFile (cd_common.[ch])

o) Add events for configuration error detected, saving of records failed
   and synchronisation of quality/wfdisc records failed
   (events.[ch])

o) Fix wrong event type in case of internal error in
   readDffByIrl() (fileAPI.c)

o) Add second application specific pointer to sender structure
   (used for DB connection retrieving IDs) (fileAPI.h)

o) Change default appControlPort for "other" applications to port+3
   (init.c)

o) Change initIdxFile() to allow applications to create an
   index file (required to create index files by CD Sender
   which can be parsed with CD report)(logfiles.c)

o) Add function to scan for obsolete configuration parameters
   (inittables.[ch])

o) Fix wrong comment (prepare.h)


================================
Changes in 2.1.43  28. Sep. 2010
================================

o) Add support for archived records (reports.py, initQual.py)

o) Stop cdqual if the output file in file mode already
   exists (reports.py)

o) Add support for non continuous data to cdqual (reports.py,
   initQual.py)

o) Fix date format in XML reports and OUTAGE report (reports.py)

o) Count extreme short period horizontal seismic channels (E*) for
   mission capability (no verticals) (report.py)

o) Omit SOH channels in station status report (reports.py)

o) Move man pages to doc/man and add xml schema definition
   (doc/man, doc/xml)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix incorrect gap_end in AckNack frames (frames.c)

o) Fix comment in function header (messageAPI.c)

o) Fix closing the ARM file descriptor when no memory for
   certificate is available (auth.c)

o) Fix splint warning (init.c)


================================
Changes in 2.1.42  27. Aug. 2010
================================

o) Add file output to cdqual. Add DSV output format. Add
   XML output format. Fix incorrect mission capability values.
   Rename txt output format to ims. Improve station technology
   detection. Improve mission capability computation,3C detection and
   gap merging algorithm. Make xml the default output format
   (reports.py)

o) Add CLI options for output file format and file mode.
   Register IMS DSV dialect (initQual.py)

o) Replace noinst_HEADERS with dist_noinst_DATA in makefile
   (doc/Makefile.am)

o) Add channelstatus.xsd, outage.xsd, stationstatus.xsd to tarball
   (doc/Makefile.am)

o) mv cdqual.py to tools directory and rename it to cdqual

o) mv cdqual package files to libsrc/cdqual

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

================================
Changes in 2.1.41  07. Jul. 2010
================================

o) Fix problems with python 2.4 (initQual.py)

o) Add station status for hydro and infrasound stations (report.py)

o) Consider late data and constant data when computing mission capability,
   fix percentage authenticated value (reports.py)

o) Add changes requested by HE to cdqual's makefile (cdqual/Makefile.am,
   cdqual/cdqual/Makefile.am)

o) Fix incorrect quality record end time which was off by one sample (merge.c)

o) Improve error logging for quality records (db_access.c)

o) Change README as requested by HE

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Change README as requested by HE


================================
Changes in 2.1.40  08. Jun. 2010
================================

o) Add CSF start time and protocol version to cdx file (createCdx.pl)

o) Add negative test for CSF messages (cdsend.pl)

o) Add first prototype of cdsqual (cdqual/Makefile.am, cdqual/cdqual.py,
   cdqual/cdqual/__init__.py, cdqual/cdqual/initSqual.py, cdqual/cdqual/reports.py)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix 'binary file not found' bug when waveform reader
   API requests more than one CSF in the same request (messageAPI.[ch])

o) Check for CD-1.0 data in CSF messages and report an error
   if payload is not a CD-1.1 CSF (messageAPI.c)

o) Added more comments (senderAPI.[ch])

o) Move getWaveformErrorAsText() to message API and rename it
   to getMessageErrorAsText() (messageAPI.[ch], waveformAPI.[ch])

o) Reject request for generating CSF message when station uses
   CD-1.0 protocol (messageAPI.c)


================================
Changes in 2.1.39  12. May. 2010
================================

o) Write question mark when no data type is found in
   the CSF. This is necessary for parsing the data
   afterwards (cdrep.c)

o) Replace string 'missing' with 'absent' when a channel
   has not been received and add more function comments
   (currentView.pl)

o) SUG updated (CdToolsSug.pdf)

o) Fix typo (inittables.c)

o) Add function for getting cd2wng extension pointer
   (init_cd2w.[ch])

o) Add description to quality flag values and rename QUA_NA to
   QUA_NO_DATA_CHECK and QUA_AUTH_OFF to QUA_NOT_AUTHENTICATED
   (merge.h)

o) Fix missing authentication state in quality table, add more
   detailed log messages when a frame is skipped and fix some
   statistic counters (merge.c)

o Add test case for message API and move all test blocks which do not
  test experimental features below 100 (cdsend.pl, test/Makefile.am,
  test/data/CPUP__CM6.msg)

o) Fix channel names loaded from the wrong time period when in fixed
   interval mode and load also station name from static tables
   (cd2wng/db_access.[ch], cd2wng/main.c)

o) Add synonym creation for static tables to SQL sample code (cd2wng.sql)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Skip PROD_ID lines when parsing messages instead of logging
   a warning (messageAPI.c)

o) Fix line size define in message API which prevents parsing
   of messages (messageAPI.c)

================================
Changes in 2.1.38  16. Apr. 2010
================================

o) Fix 'assumption for NEW_SEG failed' bug when loading
   quality records in DB mode (cd2wng/db_access.c)

o) Fix typo and remove static declaration of createSegment()
   (merge.c)

o) Add function prototype for createSegment() (merge.h)

o) Adjust debug output priorities and read debug level
   from configuration file (createCdx.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add debug message when reading a file (readwrite.c)

o) Change application type of sender API and message API to RECEIVER
   to continue to create index file with 'port' numbers.
   Required when the sender starts to create index files
   too (senderAPI.c, messageAPI.c)

o) Fix possible deadlock when the (file) index file can't be
   opened and use application control port for (file) index
   file name (logfiles.c)

o) Add function for looking up sensor info by site with
   index and set application control port before calling
   initIdxFile() (see above) (init.c)

o) Add function prototype for getSensorDescrWithIndex() (init.h)

o) Use listener station name for logging listener values
   instead of 'summary' (monitor.c)

================================
Changes in 2.1.37  01. Apr. 2010
================================

o) Add changes to configure file requested by HE
   (four parameters for AC_INIT, add AC_PREREQ) (configure.ac)

o) Add bootstrap and install-sh-clearcase as requested by HE
   (cdlibs/Makefile.am)

o) Update README file as requested by HE (cdlibs/README)

o) Switch to new AM_INIT style and add also AC_ENABLE_STATIC
   and AC_DISABLE_SHARED (as requested by HE) (configure.ac)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add bootstrap and install-sh-clearcase as requested by HE
   (cdlibs/Makefile.am)

o) Update README file as requested by HE (cdlibs/README)

o) Rework binRead() function to being useful also for the waveform
   reader API (fileAPI.c, readwrite.[ch])

o) Add station name to the sensor info structure (required by the
   waveform reader API) (frames.h)

o) Add function for searching sensor information by station name
   (init.[ch])

o) Add function for base64 encoding (messageAPI.[ch)

o) Fix bug in the cdx file reader function which prevents to
   find the correct cdx file (messageAPI.c)

o) Switch to libtool target and add rule for linking
   libcd.a to .libs/libcd.a (cdlibs/Makefile.am)

o) Switch to new AM_INIT style and add also AC_ENABLE_STATIC
   and AC_DISABLE_SHARED (as requested by HE) (configure.ac)

o) Add changes to configure file requested by HE
   (four parameters for AC_INIT, add AC_PREREQ) (configure.ac)

================================
Changes in 2.1.36  11. Mar. 2010
================================

o) Add more description to message API sample function (sampleMessageAPI.c)

o) Add man pages for message API (..)

o) Rename dataTimeOrder.pl to createCdx.pl and fix missing hex
   prefix in channel parsing code (dataTimeOrder.pl, cdtools/Makefile.am)

o) Fix external to internal station name mapping (createCdx.pl)

o) Move getJdateAsNumber() from cd2wng code to libcd (merge.c)

o) Move define for ONE_DAY to misc.h (merge.h)

o) Remove most of test environment specific statements from
   configure script (cdtools/configure.ac)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Split CDlibs into libCD and tinyGbase (requested by HE)
   (cdlibs/libcancomp, cdlibs/libparidc, cdlibs/libidcsyslog,
    cdlibs/libtinygodbc, configure.ac, Makefile.am, libsrc/Makefile.am)

o) Move getJdateAsNumber() from cd2wng code to libcd (misc.[ch])

o) Fix too many characters written to INT messages (messageAPI.c)

o) Improve function descriptions for message API (messapeAPI.c)

o) Add functions reading a cdx file (messageAPI.c)

o) Unify wave reader API and message API error codes
   and continue work reading CSF with the waveform reader API
   (messageAPI.[ch])

================================
Changes in 2.1.35  15. Feb. 2010
================================

o) No changes in CDTools, but first prototype of waveform
   reader API ready

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add functions for converting integer values into CM6 and
   INT (messageAPI.[ch])

o) Add function for converting wfdisc start time to WID2 start
   time format (misc.[ch])

o) Add function for text table handling (misc.[ch])

o) Enhance double2ascDateOut() (misc.c)

================================
Changes in 2.1.34  27. Jan. 2010
================================

o) Fix missing cdCheck.pl, cdFeed.pl and dataTimeOrder.pl entries
   in tools/Makefile.am

o) Add mapping of external site names to internal ones (dataTimeOrder.pl)

o) Adjust wfdisc update interval for cd2wng from 200 to 6 frames
   (init_cd2w.c, samples/config.par)

o) Add new sample rate tolerance parameter for cd2wng (init_cd2w.c)

o) Compare the frame sample rate with the contents of the static tables
    and skip channel if the frame sample rate deviates too much.
    Note that the real sample rate is not checked, because to compute
    the (new) real sample rate the CSF has to be merged first! (merge.c)

o) Add sampleRateTolerance parameter and fix outdated comment for
   refListStoreInterval (samples/config.par)

o) Remove static table definitions from CD2W-NGs sql file. Static
   tables are usually installed before (cd2wng.sql)

o) Fix missing double quotes in man pages
  (catIdxDir.3cd, clearChannelInfo.3cd,
   freeRefListElement.3cd, getNextFrameDescription.3cd, initChannel.3cd,
   initFileReaderAPI.3cd, openBuffer.3cd, parseFrame.3cd,
   readFrameByIrl.3cd, setChannelData.3cd, setChannelSubFrame.3cd,
   writeFrame.3cd)

o) Replace expired CDTEST certificate (CDTEST.pem)

o) Improve test case 113 and add new test case for cdrep option
   -g (cdsend.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add new sample rate tolerance parameter for cd2wng to sender
   structure (fileAPI.h)

================================
Changes in 2.1.33  27. Nov. 2009
================================

o) Move cdDataGen to src/tools directory (samples/Makefile.am,
   tools/Makefile.am)

o) Swap start time and days command line parameter (cdDataGen.c)

o) Add new command line parameter 'delay' (cdfeed.pl)

o) Minimize the number of DB calls for getting frame IDs by
   increasing the number of IDs which are requested from the
   DB from 1 to 50 (db_access.[ch])

o) Add retry code to getNextID(). Getting an ID is now retried 3
   times before giving up (db_access.c).

o) Fix possible shutdown timing problem when getNextID times
   out to avoid clf entries with frame ID -1 (merge.c)

o) User guide updated (CdToolsSug.pdf)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix too high channel count in cd2wng when more than one revision
   exists in the database for the same channel (and maybe same time),
   but with  different internal channel names
  (Internal error: channelCnt too high) (init.c)

================================
Changes in 2.1.32  06. Nov. 2009
================================

o) Add timely ordered sending mode to CD Sender (sending.c)

o) Enhance the sender API sample code to create test data
   for test case 22 (timely ordered sending mode tests)
   (sampleAPI.c)

o) Add a new test case (22) for timely ordered sending mode
   (cdsend.pl)

o) Add new processing mode ORDERED (config.par)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add define for timely ordered sending mode (fileAPI.h)

o) Add new processing mode ORDERED (init_sender,c, schedule.c)

o) Append frame time length to to  clf line (required for
   timely ordered sending mode)(logfiles.c)

o) Add channel mask and frame time length to internal
   reference list structure and remember the bitmask for
   all channels (read from the clf file) in the internal
   reference list header (for timely ordered sending mode)
   (prepare.[ch])

================================
Changes in 2.1.31  19. Oct. 2009
================================

o) Rename the MAIL variable to MAIL_APP (start_cdtool)

o) Sensor information updated (sensorinfo.txt)

o) Add script for creation of data time ordered index files
   (dataTimeOrder.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add processing of CHK2 blocks to message API and
   fix bug in CM6_to_int (messageAPI.c)

================================
Changes in 2.1.30  30. Sep. 2009
================================

o) Add message API example (samples/makefile.am, sampleMessageAPI.c)

o) Enhance channel stream mode: subframe time length for CD1.0 frames.
   Instead of "NA" the value of DFinfo->frameTimeLength is printed to stdout.
   (cdrep.c, CdToolSug.pdf)

o) Fix wrong data type when compiled on Solaris (cdDataGen.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add message API (cdlibs/makefile.am, messageAPI.[ch])

o) Add ascDate2double2() function (misc.[ch])

o) Fix bug in sender API which causes CD1-1 frames created
   with setChannelSubFrame() contain wrong data. (senderAPI.c)

o) Mark error messages with '=>' string (logging.c)

================================
Changes in 2.1.29  14. Sep. 2009
================================

o) Add more comments (merge.c)

e) Fix bug which causes the exit of cdrep in
   storeStatusDataOfAllPresentChannel() (cdrep.c)

o) Add utility script which checks data generated by
   cdDataGen (cdCheck.pl)

o) Add utility script which is able to "feed" a CD Sender with synthetic or
   real data (cdFeed.pl)

o) Fix typo in openBuffer.3cd (doc/openBuffer.3cd)

o) Fix wrong parsing of CLI arguments and some splint warnings
   (cdDataGen.c)

o) Fix comment (merge.c)

o) SUG update (CdToolsSug.pdf)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix bug in sender API to shutdown proper when
   shutdownApplication() is called (senderAPI.c)

o) Save the configuration state of the application in the config
   structure (cd_common.[ch], senderAPI.c)

================================
Changes in 2.1.28  23. June 2009
================================

o) Move openIntRefList() from sender and cd2w code to libCD
   (sending.c, merge.c)

o) Add code for robust restart (sending.c)

o) Allow to call openBuffer() more than once (needed
   for cdDataGen) (senderAPI.c)

o) Add new test case for one sample frames (cdsend.pl,
   data/H10N.20090713.0000.*)

o) Add first release of cdDataGen (samples/cdDataGen.c)

o) Step back to use of real segment endtime internally. Start time
   of last sample is computed now when the wfdisc is written and
   when a wfdisc is loaded the (expected) time of one sample is added.
   This fix the shutdown when a one sample frame is processed (error
   message: start == end time) (merge.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Return 1 if no end marker is found in loadIrlEntry()
   (prepare.c)

o) Move openIntRefList() from sender and cd2w code to libCD
   (prepare.[ch])

================================
Changes in 2.1.27  23. June 2009
================================

o) Fix update code for frameproduct table and add
   channel mask to clf table. The position in the
   channel mask is taken from the position field in the
  channame table (merge.c)

o) Use the data provider name instead of the data consumer
   name for the station ID. This allows to find all channels
   related to a given stream and to authenticate received data (cd2wng/main.c)

o) Add channel mask when writing the clf table (db_access.[ch],

o) Add number of channels per stream to waveform header
   (if sensorinfo is available) (merge.h)

o) Add stream and position fields to sensor file and table
   (db_access.[ch], sensorinfo.txt)

o) Allow combination of command options in cdrep. Add extended
   channel stream mode and remove option -a
   and update test cases for cdrep (cdsend.pl, cdrep.c))

++++ Changes in libCD ++++++++

o) Change version string and add function for querying
   the application type (cd_common.[ch])

o) Add stream and position fields to sensorinfo structure,
   add pointer to sensorinfo structure to channel name cache and
   add getChannelEntryByIndex() (frames.[ch])

o) Add function for querying the number of channels for a given
   stream (if sensorinfo is available) (init.[ch])

o) Use the data provider name instead of the data consumer
   name for the station ID when a station object is created for cd2w.
   This allows to authenticate responses from the data consumer for
   cdsender and authenticate received data for cd2wng (schedule.c)

================================
Changes in 2.1.26  15. June 2009
================================

o) Add new build idc scripts and remove indtall-idc-* (bootstrap,
   README, install-sh-clearcase, all Makefile.am)

o) Add comment how to reset bad frame destination (sending.c)

o) Add monitor extension for cd2wng (main.c, merge.[ch])

o) Add maxWfdiscMemoryDuration configuration parameter (sample/config.par,
   init_cd2w.c)

o) Start merging window at current time - maxWfdiscMemoryDuration in
   continuous mode and treat all data with an older nominal time as obsolete
   (cd2wng/main.c, fileAPI.h, merge.c)

o) Improve test case 10 (fixed interval test) to start not at
   midnight (cdsend.pl)

o) Move obsolete frame count from channel to frame statistic and
   add frames dropped by filter rule (merge.[ch])

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add possibility to log application specific information after
   the monitor thread logs the standard information and omit connection
   related standard infos when not receiver, sender or controller (cd_common.h,
   monitor.c)

o) Fix fixed interval check bug in scheduler (PLAY00002256) which
   prevents frames being processed when start time is not midnight
   (schedule.c)

================================
Changes in 2.1.25  29. May  2009
================================

o) Fix timing problem in test case 21 (REC0) and add new
   test case for merging CD-1.1 data with an invalid
   channel subframe time stamp (cdsend.pl, data/CTA.20090502.0000.*)

o) Fix invalid offset in clf and txt files after reaching a
   Disconnect Alert frame when a binary file is parsed in
   offline mode with cdrecv (offline.c)

o) Fix wfdisc record endtime off by one sample and improve log
   messages for gaps/overlaps (merge.c)

o) Don't send an Option Response Frame in offline mode. This
   fixes the invalid offset in clf and txt files after parsing
   a Disconnect Alert frame in cdrecv's offline mode (handling.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix crash in cdrecv when an invalid CD-1.1 frame is parsed which
   has a negative trailer offset (logfiles.c)

================================
Changes in 2.1.24  22. May  2009
================================

o) Change the NULL values to the values used by the old
   cd2w when insert a new record in the frameproduct table
   and change the author string to 'cd2wng-2.1.24' (db_access.c)

o) Fix missing update of file size for binary files in the
   frameproduct table (db_access.[ch])

o) Fix start date of initial merge window (which starts one day too
   early) (merge.c)

o) Log channel gaps/overlaps now as an info syslog message instead
   of a debug message (merge.c)

o) Skip CD-1.1 channels which starts not within one sample of
   nominal time (and deviate from the nominal time more than
   one second) (merge.c)

o) Change syslog IDs as requested by IDC (cd2wng/main.c,
   cdrecv/main.c, cdsend/main.c)

o) Rename start.cdtool to start_cdtool as requested by IDC
   (tools/Makefile.am, start.cdtool, start_cdtool)

o) Fix timing problem in cdreceivers offline mode when an
   alert frame is parsed (offline.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix Mac compiler warnings (logfiles.c)

================================
Changes in 2.1.23  15. May  2009
================================

o) Fix C/SQL mapping problem when loading channel revision
   (db_access.c)

o) Fix typo in debug message (merge.c)

o) Add per thread database handle to sender structure (merge.h)

o) Add cd2wng test case with a,C,d pattern (cdsend.pl,
   data/CMAR.20090424.0000.*)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

================================
Changes in 2.1.22  11. May  2009
================================

o) Fix ODBC to C data type conversion problem when
   running in a 64-bit environment (db_access.)

o) Fix wrong revision for some channels when loading sensor info
   from DB (db_access.c, sensorinfo.txt)

o) Fix not merging consecutive segments when a segment scheduled
   for release is between two consecutive segments (merge.c)

o) Add more information to error messages when stop with
   internal error (merge.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

================================
Changes in 2.1.21  30. Apr. 2009
================================

o) Fix incorrect waveform file size (shown as incorrect offset for too
   long segments) after re-started (merge.c)

o) Fix missing instrument type in file mode when no sensor
   information is available (merge.c)

o) Fix "Internal error: assumption for NEW_SEG failed" when two
   consecutive quality records are loaded which have different
   quality flags (merge.c)

o) Fix incorrect waveform header when cd2wng is not stopped with
   crtl-C. Waveform header files are not longer re-written when
   cd2wng re-starts (merge.[ch])

o) Do not report digitizer noise when constant data is detected
   for the whole record (merge.c)

o) Check if the sum of the square counts exceed the double
   data type and split the record if needed (merge.c)

o) Add file name to quality records required for correct re-start (merge.c,
   db_access.c)

o) Decrease amount of debugging text (merge.c)

o) Change data type of sumcounts and sumsquarecounts to
   double to avoid possible integer overflows when computing
   the square sum within one frame (merge.[ch], db_access.[ch]

o) Add revision and include all channels within start and end time
   (sensorinfo.txt)

o) Write clf records to database (only). A clf record is only
   written if the frame is merged into a waveform segment.
   No clf record is written for invalid data or data which
   does not match the filter criteria. Note: This
   feature should be removed after the squal re-design (db_access.[ch],
   merge.c)

o) Add revision to sensor info and remove duplicates when loading
   the sensor info from database (db_access.c)

o) Add new configuration parameter 'enableClfRecords' (init_cd2w.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add new configuration parameter 'enableClfRecords' (fileAPI.h))

o) Add revision to sensor info structure (frames.c, init.c)

================================
Changes in 2.1.20  06. Apr. 2009
================================

o) Obsolete code removed (cd2wng/db_access.c)

o) Fix incorrect start and end times in fixed interval mode
   (PLAY00002256) (cdsend/main.c, cd2wng/main.c)

o) Fix test cases which have been broken by the fixed interval
   bug fix (cdsend.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Mark the frame as received with an error instead of a warning
   when the site and/or channel name is invalid (required by
   cd2wng or it will shutdown) (frames.c)

o) Fix incorrect time returned by ascDate2double() and
   ascDate2int() when called the first time (timezone
   offset was not set correct at first call)(misc.c)

o) Fix sending/processing frames outside the given
   interval when running in fixed interval mode (prepare.[ch])

o) Fix check if the index file is in the given time interval
   (did not consider local time zone before) (schedule.c)

================================
Changes in 2.1.19  31. Feb. 2009
================================

o) Rename install-idc.mk to install-idc,am and add
   real install-idc.am to distribution (doc/Makefile.am,
   samples/Makefile.am, src/cd2wng/Makefile.am, src/cdcon/Makefile.am,
   src/cdrecv/Makefile.am, src/cdsend/Makefile.am, src/samples/Makefile.am,
   src/tools/Makefile.am, test/Makefile.am, tools/Makefile.am, Makefile.am,
   install-idc-recursive.am, install-idc.am)

o) Fix incorrect timeliness check (merge.c)

o) Do clean up when cdsend.pl reports an error when run make
   test (Test/makefile.am)

o) Mark socket as closed after closing the socket to avoid that
   the socket (which might be used now in another thread)
   is closed again in cleanUp() (sending.c)

o) Add option -a: writes event stream, frame stream and channel
    stream to stdout (cdrep.c)

o) Added TC 113 for the new cdrep option -a (cdsend.pl)

o) Fix splint warnings which occurred after upgrading to new splint version
   (cdrecv.h, offline.c, handling.c, listen.c, cdsender.h,
    cdsend/db_access.[ch], sending.c)

o) Fix 'uncompression failure' when data is in S3 (merge.c)

o) Add test case for invalid channel names (data/ZALV.*, cdsend.pl)

o) Add check for invalid site or channel names and skip channels
   with invalid names when loading the waveform header (merge.c)

o) Clean Up, fix some bugs and add AC_PROG_LIBTOOL to the configure file
   (configure.ac)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix sending too many frames after re-start in LIFO mode (first
   part of enhanced restart behavior) (prepare.c)

o) Fix splint warnings which occurred after upgrading to new splint version
   (monitor.c, keychecker.c, auth.[ch], cd_common.[ch], fileAPI.c,
    ldap.c, logfiles.c, frames.h, schedule.[ch], senderAPI.[ch],
    prepare.c)

o) Move LDAP related functions from init.c to cd_ldap.c (init.c,
   cd_ldap.h, ldap.h

o) Mark socket as closed when an error has occurred during
   connection establishment after closing the socket to avoid that
   the socket is treated as used in findPort() (cd_common.c)

o) Treat bad network conditions (ECONNABORTED, ECONNRESET) now
   in the calling code and not in waitForConnect(). This should
   fix the sporadic cd-receiver shut downs when waiting for
   new connection requests as requested by Alexander
   (misc.c, requests.c)

o) Ignore Interrupts in waitForConnect() (misc.c)

o) Add new channel event "Invalid site or channel name" (events.[ch],
   logfiles.c)

o) Add check for invalid site or channel names and do not
   create a channel cache entry when an invalid name
   is detected (frames.[ch])

================================
Changes in 2.1.18  20. Feb. 2009
================================

o) Add constant data threshold value (merge.h)

o) Change algorithm for const data detection, add check for
   wrong data type and check for channel warnings
   (WA_SUB_TIME_STAMP, WA_COMPRESSSW, AWA_STEIM_COMPRESS, WA_SAMPLES_CAN)
   before try to merge (merge.c)

o) Include install-idc target in Makefiles.am (*/Makefile.am,
   */*/Makefile.am)

o) Fix killing all receivers started on the terminal where the
   test has started when make test ends (test/Makefile.am)

o) Move saveIntRefList() and getSortLevel() to libcd and
   fix missing shutdown in fixed interval sender mode (sending.c)

o) Move saveIntRefList() and getSortLevel() to libcd and
   fix misleading internal error code when the DB is
   not available (merging.c)

o) Update testblock 11 to 14 (fewer alert frames sent when
   restart due to optimizations in re-start code)(cdsend.pl)

o) Drop enableWaveformFile config parameter. It makes no sense
   to create wfdiscs without waveform files (re-start!)
   (samples/config.par, merge.c)

o) Add saving/updating/loading of quality records and check
   wfdiscs when they are loaded from DB (start == endtime,
   number of samples > 0, ...) (cd2wng/db_access.[ch])

o) Add saving/updating/loading of quality records in DB mode.
   Check for invalid values before writing wfdisc records.
   Create quality files and wfdisc files only when necessary
   (not in DB mode). Fix wrong average timeliness value. Rename
   some quality records fields (merge.c)

o) Add function prototype for getSegment() (merge.h)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix sending a DF flush alert and DF frame before each re-sent frame
   when re-starting the sender (prepare.c)

o) Move getSortLevel() from sender/cd2w code to libCD
   (schedule.[ch])

o) Move saveIntRefList() from sender/cd2w code to libCD and
   fix creating a file object for each line in the re-start file
   (which fixes also the unnecessary Alert frames sent after re-start)
   (prepare.[ch])

o) Fix wrong default read privileges on created files for others (cd_common.c)

o) Create cd2w output files one when the feature is switch on
   (fileAPI.h)

o) Add new CD event "can't load record" (for cd2wng) (events.[ch])

o) Add new channel parsing code 'channel start time not within one
   sample of frame start time' to distinguish between channels which
   starts after nominal time + frame time spawn and channel which starts
   not within one sample of nominal time (events.c, frames.[ch], logfiles.c)

================================
Changes in 2.1.17  22. Dec. 2008
================================

o) Do not consider port number and frame serial number when
   comparing two clf or text files (diffclf, difftxt)

o) Fix wrong syslog ID for cd2wng and add port number
   to syslog ID (cd2wng/main.c)

o) Log error messages from cdrecp to syslog instead of stderr/stdout
   (cdrep.c)

o) Add test for invalid channel subframe in CD-1.1 frame
   (cdsend.pl, data/MMAI.20081008.0405.*)

o) Fix check for calibration value tolerance (merge.c)

o) Use config parameter 'cd2wProductionLineFile' instead of 'productionLineFile'
   for cd2wng. Add config parameter 'enableWaveformFile' and
   'enableQualityCheck' (init_cd2w.c)

o) Add configuration parameter for enable Quality Check and change
   the default for 'enableWfdiscFile' to YES (cd2wng/main.c)

o) Introduce new config parameters cd2wProductionLineFile, enableWaveformFile,
   and enableQualityCheck (samples/config.par, samples/cd2w_productionlines,
   test/config.test, init_cd2w.c)

o) Add define for quality ID (cd2w/db_access.h)

o) Start work on quality records. Add creation of quality records when
   data is merged. Re-work statistic output (merge.[ch])

o) Write and read quality records from/to quality files (merge.c)

o) Fix bug which causes the exit of cdrep in resetChannelLeveLStates(),
   if a channel specific application extension object is not present.
   This could happen when only a DFF is received before the connection
   is terminated (cdrep.c, data/MKAR.cdrep.01.cd11.clf,
   data/MKAR.cdrep.01.cd1.clf)

o) Strip off at sign and following characters in config parameter
   'dbAccount'.

o) Improve recycleIDs() to recycle also quality IDs
   (db_access.c[h])

o) Unify different start.cdtool variants (tested only on Linux!)
   (start.cdtool)

++++ Changes in libCD ++++++++

o) Change version string and add check for
   NULL pointer in signature (cd_common.c)

o) Add application specific file pointer, remove unused fpOutFile
   and close fpUsrFile pointer in closeFiles() (cd_common.c)

o) Add application specific file pointer, remove unused fpOutFile
   and add extension for application specific file (cd_common.h)

o) Add treatment of application specific file to syncFiles()
   (logFiles.c)

o) Add revision history to file comment (ldap.c)

o) Add check for NULL signature string (auth.c)

o) Fix bug in compression algorithm on little endian
   architectures (libcancomp/canada.c)

o) Fix invalid frame parsing code in CD1.1 frames when a
   channel subframe is invalid (frames.c)

o) Open application specific files in append mode (logging.c)

================================
Changes in 2.1.16  05. Nov. 2008
================================

o) Fix too many records after re-start (merge.[ch], cd2wng/db_access.c)

o) SUG update (CdToolsSug.pdf)

o) Fix bug which prevents reading the endPort config parameter when
   the startPort config parameter was not set (init_receiver.c)

o) Fix splint warnings (sampleFileAPI.c )

o) Add test case for cd2w which covers loading of 4 hour wfdisc
   records during re-start (cdsend.pl, H11N.20071015.0000.11bin,
   H11N.20071015.0000.clf)

o) Add Elenas 64 bit patches (ODBCGetResultCols.c, cd2wng/db_access.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add function checkKeyCache() (requested by JC for geotool)
   (auth.[ch])

o) Log "no" when configured with --disable-odbc (cdlibs/configure.ac)

o) Log partial error message if the error buffer is too small
   instead of logging a "buffer too small" message
   (ODBCError.c)

================================
Changes in 2.1.15  09. Oct. 2008
================================

o) Fix bug in cdrep which causes unnecessary file changes (cdrep.c)

o) Generate frame level events based on an event time window.
   During this event time window the received frames are counted and
   classified (timely or late). If the event time window is expired the
   frame level state is processed according to the current state and the
   classification of the data received within the expired event time window
   (cdrep.c)

o) Add waveformType configuration parameter to sample config file
   (samples/config.par)

o) Fix bug which causes the sender to dump if the filter match
   all channels, frame re-signing is switched on, the original
   frame was not signed and the current frame buffer size is smaller
   than the original frame size + size of a signature
   (PR-00471) (sending.c)

o) Stop sender if no memory is available for the temporary buffer
   used by the channel filtering code (sending.c)

o) Ignore suspend signal (CRTL-Z) and log a warning to
   stdout when CRTL-Z is pressed in sender, receiver and cd2w
   (cdrecv/main.c, cdsend/main.c, cd2wng/main.c)

o) Fix sign when converting negative s2 or s3 numbers to s4
   (merge.c)

o) Update wfdisc records for the whole merging window when
   the merging window is shifted by one day (merge.c)

o) Fix wrong station name in frameproduct table (cd2wng/db_access.c)

o) Store waveform data also in S3 (merge.[ch])

o) Read requested waveform type from configuration file and
   change default to s3 (init_cd2w.c)

o) Report initial state after restart (cdrep.c, cdsend.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Ignore suspend signal (CRTL-Z) and log a warning to stdout
   if CRTL-Z is pressed. (cd_common.[ch])

o) Fix missing check for ARM keys when no LDAP or certDirectory
   is configured (reported by GP) (cd_common.c)

o) Add waveform type (s3/s4) to senderParams structure (fileAPI.h)

o) Fix missing release of file descriptors when the binary file
   changes (fileAPI.c)

================================
Changes in 2.1.14  13. Aug. 2008
================================

o) Add test cases for cd2w (file and DB) (cdsend.pl, data/CPUP.200807*)

o) Add application name to getSensorDescr() function (cd2wng/main.c)

o) Move functions for setting and retrieving sensor information
   to libCD(init_cd2w.[ch], cd2wng/merge.h)

o) Read intern and extern site names from DB, insert
   binary files and text files into frameproduct,
   check for relative wfdisc paths, check if all channels
   are loaded from the waveform header when
   reading wfdisc files (cd2wng/db_access.c, merge.c, sensorinfo.txt)

o) Make site and channel name lengths consistent to wfdisc
   format (cd2w/db_access.c, merge.c]

o) Clear internal wfdisc segments when the thread is shut down (merge.c)

o) Fix corrupted waveform headers when re-started twice (merge.c)

o) Add and update clf receiving time to frameproduct table (db_access.[ch],
   merge.c)

o) Make site and channel name lengths consistent to wfdisc
   format and upgrade to new station cache format (cdrep.c)

o) Save restart file only when syncing channels and sync all
   channels when a day switch occurs (merge.c)

o) Change config file to load sensor info (config.test)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Make site and channel name lengths consistent to wfdisc
   format (logfiles.c, cd_common.c, frames.[ch]

o) Log a warning instead of an error when a station is not
   found in LDAP (ldap.c)

o) Retrieve channel information from the sensor information
   structure (if supplied) and use this information in the station
   name cache (required by cd2w) (frames.[ch])

o) Add functions to load sensor information from a file (init.[ch])

o) Add file ID to clfFileObj structure (required by cd2w)(prepare.[ch])

o) Add sensorinfo file to test configuration file (config.test)

================================
Changes in 2.1.13  07. July 2008
================================

o) Add check for customized version of libgODBC
   (configure.ac)

o) Fix restart problem when a channel was missing for a whole
   day, but was present in older waveform files (merge.c)

o) Fix duplicate wfids caused by an unprotected recycleIds()
   call (merge.c, db_access.[ch])

o) Fix wrong offset when merging two segments start <-> end
   (MERGE_RIGHT) (merge.c)

o) Fix orphaned segments for channels without a channel ID in DB
   mode (merge.c)

o) Fix DB error when creating new wfids caused by an unprotected
   commit (merge.c, db_access.[ch])

o) Fix wrong offset when reading wfdiscs for restart (db_access.c)

o) Increase ID's by a count of 100 instead of 20 (db_access.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix subchannel start time check and use
   more relaxed check for cd10 subchannels (requested by
   GP)(frames.c)

o) Fix 'too many open cursors' problem when generating new IDs
   (libtinygODBC/ODBCRequestIds.c)

================================
Changes in 2.1.12  4. June 2008
================================

o) Add check for customized version of libgODBC
   (configure.ac)

o) Add sensorinfo file (samples/sensorinfo.txt)

o) Add functions for insert, delete and update wfdiscs.
   Add functiopupilsn for loading sensor descriptions from
   database. Add function for loading wfdiscs from DB (db_access.[ch])

o) Add function for loading sensor descriptions from file
   and function which searches the sensor description
   (init_cd2w.[ch])

o) Load sensor description if available and disconnect
   from database at shutdown (otherwise the process does not exit on Linux)
   (cd2wng/main.c)

o) Add sensor info to channel header and sub wfdiscs
   to segment structure (merge.h)

o) Add DB support for writing wfdisc records. Use sensor
   info for channel ID, calibration value, calibration period
   and instrument type in file and DB mode and omit channels where
   no sensor info is available in DB mode. Start work for DB restart.
   Fix loading only one channel and wrong channel offset if the channel
   was not present before restart in file restart mode (merge.[ch])

o) Move libraries needed by ODBC from LIBS to ODBC_LIBS
   (configure.ac)

o) Update main.c to use the new data consumer autocreate feature
   (cd2wng/main.c)

o) Add new parameter for createDC and close DB connection before shutdown
   (cd2wng/main.c)

o) Add function for closing DB connection and fix some splint warnings
   (cdsend/db_access.[ch])

o) Add basic cd2w test (cdsend.pl, config.test)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Fix typo (init_sender.c)

o) Update function header and comments (misc.c, schedule.c)

o) Use libCD version for summary string. Fix wrong reporting of
  libCD version (monitor.c)

o) Increase buffer size for log messages to 256 bytes (logging.h)

o) Fix splint warning (fileAPI.h)

o) Add customized version of libgODBC to libCD tarball (libsrc/Makefile.am,
   libsrc/libtinyODBC/*.[ch], libtinyODBC/Makefile.am, configure.ac,
   Makefile.am)

o) Add configuration parameter for sensorinfo file (fileAPI.h)

o) Add event for warning when the calibration value in the frame
   deviates from the nominal value in the database (events.[ch])

o) Fix typos (init_sender.h)

o) Add application Mutex. This Mutex is used in cd2w for protecting
   the ID generation (cd_common.[ch]

o) Add data consumer autocreate feature for applications which do not
   need a data consumer (eg. cd2w, fileReaderAPI) (init_sender.[ch])

o) Update intFileReaderAPI to use the new data consumer autocreate feature
   (fileAPI.c)

o) Add some helper functions (openOld(), getFileName()) for cd2w
   (logfiles.[ch])

o) Add configure option for enabling large file system support on
   32 Bit machines '--enable-largefs' (configure.ac)

================================
Changes in 2.1.11  7. Apr. 2008
================================

o) Add man pages for file reader API (catIdxDir.3cd,
   freeRefListElement.3cd, getNextFrameDescription.3cd,
   initFileReaderAPI.3cd,  parseFrame.3cd, readFrameByIrl.3cd,
   cdtools/doc/Makefile.am)

o) Describe required libraries (clearChannelInfo.3cd, initChannel.3cd,
   openBuffer.3cd, setChannelData.3cd, setChannelSubFrame.3cd,
   writeFrame.3cd)

o) Open DB connection when configured and compiled with
   ODBC support (cd2w/main.c)

o) Change algorithm which splits internal used huge wfdisc record
   into smaller pieces to avoid wfdisc records which are not
   aligned to slot boundaries. This avoids wrong slot computation
   caused by rounding errors during re-starts (merge.c)

o) Fix bug PR-00446 (incorrect channel mask in sender generated
   clf files when applying a filter) (sending.c)

o) Run some test queries in the DB (cd_access.[ch])

o) Update station aliases (keyPreloadFile)

o) Fix Solaris compiler warning (merge.c, cdrep.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Improve function header for getNextFrameDescription() (fileAPI.c)

o) Add void pointer to senderParams_t structure. This pointer is
   used to hold the DB handle for CD2W (fileAPI.h)

o) Fix bug in senderAPI which prevents signing of frames with
   user provided function when no private key is set in the config
   file (senderAPI.c)

================================
Changes in 2.1.10  20. Mar. 2008
================================

o) Continue work on cd2w NG prototyp
   Fix wrong offset after an overlapped segment, fix endless loop
   when shifting for one day and the stations does not send all
   channels in the same frame. Complete restart code for
   file mode (merge.[ch])

o) Add functions for initializing cd2w (init_cd2w.[ch],
   Makefile.am, cd2wng/main.c)

o) Improved channel level event reporting. Raise a channel missing
   event only when channel is not received within a given
   time window (default is 180 seconds). Improved bandwith
   event reporting. The bandwidth events are created after the
   bandwidth was averaged over some time. The current time span
   for the creation of bandwidth events is set to 60 seconds.
   Add frame time length in seconds to output of frame stream
   mode (cdrep.c)

o) Add man pages for sender API (doc/*.3cd)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Save timestamp after the first read/write attempt to have
   a valid sending/receiving time when an error occurs at the
   first read/write attempt (Fix for PR-0420, PLAY00002113) (misc.c)

o) Fix function header comment and for clearChannelInfo() and return
   -1 instead of 1 in case of an error (senderAPI.c)

o) Fix function header comments (init_sender.c)

o) Remove static declaration from getChMaskPosition() (frames.[ch])

o) Fix typo (inittables.c)

o) Adjust debug level of debug message (prepare.c)

o) Update function headers (schedule.c, init_sender.c)

================================
Changes in 2.1.9  14. Jan. 2008
================================

o) Continue work on cd2w NG prototyp (merge.[ch], cd2wng/main.c)

o) Fix core dump in CD-controller when it has no rights
   to write into filePath (cdcon/main.c)

o) Add explanation of errno error code (explain.c)

o) Add check for fabs() (configure.ac)

o) Fix splint warning (offline.c)

o) Add parameter for requested file creation time to syncFiles()
   (handling.c, cdrep.c)

o) Change CLI parameter -c to -f and -s to -c (cdrep.c)

o) Add CD2W_NG directory (configure.ac, src/Makefile.am)

o) Check in the test script if libCD is linked dynamically before
   search for __HAVE_AUTHENTICATION__ string. This fixes the
   unexpected error when running the test script and libCD has linked
   dynamically and authentication is available (cdsend.pl)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Check file path also for CD Controller (init.c)

o) Change default value for calibration periode to -1 (frames.c)

o) Add check for closed portInfo file pointer in function cleanUp(),
   change version string and do not compute the data size
   again for CD-1.0 channels (cd_common.c)

o) Set portInfo file pointer closed when initializing a sender
   station object (see above). This fixes closing stdout when
   a sender thread which has never a connection open shuts down
   (schedule.c)

o) Log an error if the root certificate is expired or if
   a certificate is not signed by CTBTO's CA (auth.c)

o) Add parameter for requested file creation time to syncFiles()
   (logfiles.[ch])

o) Open udf files in standard read/write mode (not append mode!!),
   but create also udf files if necessary (like "w+", but without
   truncating the file) (logfiles.c)

================================
Changes in 2.1.8  10. Oct. 2007
================================

o) Fix bug in auxiliary station mode which prevents sending
   the same requested data twice (sending.c)

o) Improve auxiliary station mode test cases and add more
   checks for a few sender test cases (cdsend.pl)

o) Update function header (cdcon/main.c)

o) Use HIGH certificate for tests instead of CDTEST (config.test)

o) Upgrade to perl-gtk2 and mark stations which sends only
   command request frames specially (congui.pl)

o) Syslog init for cdrep changed to "ctbt.acquisition.cdrep".
   Detection of channel events considers that some
   stations send the channel data using more than one
   data frame with the same nominal time (the new detection algorithm
   delays the reporting of the event by one frame)(cdrep.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Add macro to count command request/response frames (cd_common.h)

o) Add number of command frames received/sent to output of GST
   commands (to give other applications a chance to check if
   a station sends only command requests)(command.c)

o) Fix bug in auxiliary station mode which prevents sending
   the same requested data twice (fileAPI.c, schedule.[ch])

o) Increase maximum number of frames which are allowed being
   queued for sending to cover 14 days (10 frames per minute)
   (requested by GP)(prepare.h)

o) Fix bug which prevents removing of sent frames from the IRL
   (introduced with 2.1.6) (prepare.c)

================================
Changes in 2.1.7  31. Aug. 2007
================================

o) Fix too short waiting time for report test cases
   on slow Solaris systems (cdsend.pl)

o) Improve test cases for cdrep (CMAR.cdrep.03.cd1.clf,
   CMAR.cdrep.x00.cd1.clf, MKAR.cdrep.01.cd1.clf, MKAR.cdrep.01.cd11.clf)

o) Make the insufficient/sufficient bandwidth event a connection event
   instead of a frame level event (cdrep.c)

o) Remove no longer needed test data file (MKAR.cdrep.02.cd1.clf)

o) Add CRL to tarball to test also CRL loading (CRL.pem, cdtools/Makefile.am)

o) Fix splint target for cdrep (cdtools/src/tools/Makefile.am)

o) Icon update and many bug fixes (congui.pl)

++++ Changes in libCD ++++++++

o) Fix UMR warning when processing key pre-load directive (init.c)

o) Add function readDffByIrl() (fileAPI.[ch])

o) Fix result shifted by UTC time offset to local time in ASN1toDouble()
   (misc.[ch], auth.c)

o) Add loading and checking CRL from file system (auth.[ch], cd_common.h,
   init.c)

o) Update version (cd_common.c)

================================
Changes in 2.1.6  13. July 2007
================================

o) Add test case for bounded internal reference list
   (cdsend.pl)

o) Add test cases for reporting tool
   (cdsend.pl, data/CMAR.cdrep.03.cd1.clfi, data/MKAR.cdrep.01.cd1.clf,
    data/MKAR.cdrep.01.cd11.clf, data/MKAR.cdrep.02.cd1.clf)

o) Fix too long shutdown time when a user requested shutdown is pending
   (offline.c)

++++ Changes in libCD ++++++++

o) Keep internal reference list bounded to seven days
   (with a maximum of 6 frames/s) (prepare.[ch])

o) Update version (cd_common.c)

================================
Changes in 2.1.5   6. July 2007
================================

o) Fix bug in the detection of 'insufficient bandwidth".
   Remove the 'report unchanged state' processing.
   Fix bug in the cmd line parsing on solaris (cdrep.c)

o) Fix wrong check for return code of initChannel()
   (sampleAPI.c)

++++ Changes in libCD ++++++++

o) Modify priority of debug messages (cd_common.c)

o) Fix too high channel ID in sender API (senderAPI.c)

o) Add ALIAS directive to key pre-load file (init.c, auth.[ch],
   ldap.c)

o) Fix missing offline extension for virtual connect/disconnect
   frames (logfiles.c)

================================
Changes in 2.1.4  28. June 2007
================================

o) Save errno of last system error for logging in text files
   (PR-0294). (control.c, handling.c, sending.c)

o) Skip all frames which are not data frames (sampleFileAPI.c)

o) Add new event 'No timely data arrived' and fix bug in the end
   of backfilling detection (cdrep.c)

o) Add new station state 'No timely data arrived' (currentView.pl)

o) Rename reporting tool to cdrep (report.c cdrep.c)

++++ Changes in libCD ++++++++

o) Save errno of last system error for logging in text files
   (PR-0294). (cd_common.[ch], fileAPI.c, logfiles.c, readwrite.c,
    requests.c, schedule.c)

o) Use real data provider name at the file API now (drop
   _DUMMY data consumer name) (fileAPI.[ch], schedule.c)

o) Update some comments (frames.ch])

o) Add version of application to monitor thread summary (monitor.c)

o) Report all incoming frames at the file reader API and report
   the frame parsing code (prepare.[ch])

================================
Changes in 2.1.3  14. June 2007
================================

o) Rewrote security level code. Move
   functions required by the command thread to
   libCD (listen.c)

o) Clean up function prototypes (cdrecv.h)

o) Fix comment (gaps.h, init_receiver.c)

o) Add keys and certificates for security levels
   (certs/MEDIUM/*, certs/HIGH/*, cdtools/Makefile.am)

o) Fix swapped local and remote address and fix
   wrong time of last state change in current view
   (currentView.pl)

o) Drop controlStation configuration parameter
   (test/config.test samples/config.par)

o) Modify test cases 100-103 to use different controller
   keys and add new test case for security levels
   (cdsend.pl)

o) Change generation of the NO_DATA event and of the INFO event. Generation
   of the INFO event is now based on time. The NO_DATA event is only
   generated when in connected state. Channel data output added.
   (report.c)

++++ Changes in libCD ++++++++

o) Add new event 'command request frame expected'
   (events.[ch])

o) Update version and remove control station related
   code (cd_common.[ch])

o) Rewrote security level code. Move functions
   which process a connect/command request from receiver to
   libCD (command.c, requests.[ch])

================================
Changes in 2.1.2   1. June. 2007
================================

o) Fix bug when more stations are processed
   (check4gaps.pl)

o) Add script to create restart files
   (createRestart.pl, tools/Makefile.am)

o) Add configuration parameters for security levels
   (samples/config.par, test/config.test)

o) Make (control) station name and key ID variable when sending
   a command to a sender (to check security levels)
   (cdsend.pl)

o) Add PEM directive for CDTEST to avoid that the wrong
   certificate is taken from LDAP (keyPreloadFile)

o) Add reading a config file and update station states
   when the script terminates (currentView.pl)

o) Print result when the last input line is processed
   (check4gaps.pl)

o) Add 'frame output mode' to report tool. Suppress
   logging of time stamps in the channel status. Don't
   report NO_DATA event when unconnected (report.c)

o) Add file headers (db_access.[ch])

o) Remember the key ID to for the security level check
   (listen.c)

++++ Changes in libCD ++++++++

o) Don't check if a file can be created
   when using the file reader API init function (fileAPI.c)

o) Copy modified files from gbase-libs-1.1.28
   (aesir.h, getarg.c, getpar.c, cdefs.h, libparidc/Makefile.am)

o) Add security levels
   (cd_common.[ch], command.[ch], frames.[ch], init.c, readwrite.c)

o) Fix splint warning (schedule.c)

o) Fix problem when compiling on BSD variants (e.g. MAC OS)
   (configure.ac, misc.c)

================================
Changes in 2.1.1   12. Apr. 2007
================================

o) Fix splint warning (handling.c, offline.c)

o Move database files back to cdsender to simplify build
  dependencies for other applications (e. g. geotool;
  requested by JC) (db_access.[ch], cdsend/Makefile.am,
  sending.c, cdsend/main.c, configure.ac)

o) Add possibility to forward sender commands (e.g. get outage info)
   (snd_command.c)

o) Move code which connects to a remote port to libCD
   (sending.c)

o) Add --disable-odbc to configure script (configure.ac)

o) Add a tool to generate current view using an event stream
   as input (currentView.pl) and tool to compute gaps based
   on clf line output generated by the report tool (check4gaps.pl)
   (tools/Makefile.am)

o) many bugs related to event reporting fixed (report.c)

++++ Changes in libCD ++++++++

o Move database files back to cdsender to simplify build
  dependencies for other applications (e. g. geotool;
  requested by JC) (libcd/Makefile.am, fileAPI.h,
  prepare.c)

o) Fix splint warnings (auth.c, cd_common.c, extend.c, frames.c,
   misc.[ch], monitor.h, schedule.c)

o) Add defines for AC6 command(s) (command.c)

o) Remove ODBC tests from configure script (configure.ac)

================================
Changes in 2.1.0   12. Apr. 2007
================================

o) Add virtual connect/disconnect event frames to
   file reader API (sampleFileAPI.c)

o) Fix splint line for report tool (tools/Makefile.am)

o) Add more features to report tool (connect/disconnect
   event, info events and more) (report.c)

o) Fix missing permission problem in devlan_view environment
   (cdsend.pl)

o) Fix purify warning (gaps.c)

o) Add check for nsl-library. Without this check no
   authentication will enabled on Solaris (configure.ac)

++++ Changes in libCD ++++++++

o) Add new station structure member to store time
   of last data/command frame received/sent (cd_common.h)

o) Add virtual connect/disconnect event frames to
   file reader API (fileAPI.c, prepare.c)

o) Fix purify warning (frames.c)

o) Fix Fix c++/g++ compiler warnings (auth.c, cd_common.c,
   db_access.c, fileAPI.c, init.c, init_sender.c, misc.c,
   prepare.c, schedule.c, senderAPI.c)

o) Add new channel name cache extension for event reporting
   tool (frames.h)

o) Add container for application specific data (reporting tool)
   (schedule.h)

o) Remove unused variable nextChCache (frames.h)

o) Move connectTo() function from sender to libCD (cd_common.[ch])

o) Add AC6 command (command.h

o) Move CDevent structure from event.h to cd_common.h to
   fix include problems (event.h, cd_common.h)

o) Fix too short format string when reading the restart file
   (prepare.h)

o) Reset EOF condition when checking for new entries in clf
   files. This is a workaround for an ARM libc problem (schedule.c)

o) Fix compiler warnings on 64 bit machines (frames.c)

================================
Changes in 2.0.24-idc  6. Apr. 2007
================================

o) Fix purify warning when creating an AckNack
   frame (gaps.c)

o) Move DB access functions from libCD to
   sender code to simplify linking dependencies
   (db_access.[ch], cdsend/Makefile.am, configure.ac,
    sending.c, cdsend/main.c)

++++ Changes in libCD ++++++++

o) Change version string (cd_common.c)

o) Move DB access functions from libCD to
   sender code to simplify linking dependencies;
   requested by JC
   (cd_common.c, db_access.[ch], libcd/Makefile.am,
    configure.ac, prepare.c, fileAPI.h)

===================================================
Changes in 2.0.22-idc/2.0.23-siemens   5. Mar. 2007
===================================================

o) Fix missing permission problem in devlan_view environment
   (cdsend.pl)

++++ Changes in libCD ++++++++

o) Fix Fix c++/g++ compiler warnings (auth.c, cd_common.c,
   db_access.c, fileAPI.c, init.c, init_sender.c, misc.c,
   prepare.c, schedule.c, senderAPI.c)

o) Fix purify warning (frames.c)

o) Fix comments (cd_common.h)

o) Remove unused structure members (frames.h)

o) Fix too short format string when reading the restart file
   (prepare.h)

o) Reset EOF condition when checking for new entries in clf
   files. This is a workaround for ARM libc problem (schedule.c)

========================================
Changes in 2.0.22-siemens   5. Mar. 2007
========================================

o) SUG update (CdToolsSug.pdf)

o) Fix wrong default for enableUsrFile in comment (config.par)

o) Fix missing backslashes in awk command (pnt)

o) Fix stop parsing in CD Receivers offline mode when an
   alert frame or an invalid frame has being parsed (offline.c)

o) Fix Sender crash when an AckNack frame is received which
   exceeds the current frame buffer size (sending.c)
   (PR-0318 and duplicates)

o) Modify test case #10 to run also on very fast boxes
   (test_CD1_s3_invalid.send, H01W.CD1_s3.invalid.bin)

o) Merge differences to gbase (logging,h)

o) Don't compile processSenderCommands() when configured
   without -DEXPERIMENTAL (snd_command.c)

o) Move test cases which use the Senders controller interface
   to the end of the test cases and check if compiled
   with -DEXPERIMENTAL (cdsend.pl)

++++ Changes in libCD ++++++++

o) Fix purify UMR warning and update version string
   (cd_common.c)

o) Add getFrameParsingCodeAsText() function requested by
   Idriz (logfiles.[ch])

o) Fix text for WA_SUB_TIME_STAMP (not the same as used
   for syslog messages) (logfiles.c)

o) Fix wrong CD version when logging virtual connect/disconnect
   frames and omit virtual connect/disconnect frames when a
   file change occurs (logfiles.c)

o) Fix wrong conversion character in printf format string
   (extend.c)

================================
Changes in 2.0.21  19. Feb. 2007
================================

o) Add configuration parameter for creation of files with user
   defined content (samples/config.par)

o) Add generation of .ehl files (report.c)

o) Fix unaligned buffer for alert frames when compiled with Solaris
   C compiler (sending.c)

++++ Changes in libCD ++++++++

o) Add Idriz modifications to checkCDxxframeType() functions
   (frame.[ch])

o) Fix comment and use define for UNSORTED (fileAPI.c)

o) Add configuration parameter for creation of files with user
   defined content and remove EXTENDED define (cd_common.[ch],
   samples/config.par, configure.ac, init.c, extend.c,
   logfiles.[ch], config.h.in)

o) Update function header comments (frames.c)

o) Add new define for adding also virtual connection event frames to
   IRL (prepare.h)

================================
Changes in 2.0.20  12. Feb. 2007
================================

o) Add computing and logging of send time span;
   rename startRead to startRoW, endRead to endRoW, drop startWrite
   (sending.c, listen.c, handling.c, sampleAPI.c)

o) Add virtual connect/disconnect (event) frame to clf file
   (handling.c, sending.c, cdsend.pl, diffclf)

o) Create recent instead of old frames in continuous mode (sampleAPI.c)

o) Add command line argument for real time window and add sample
   code for use of receive/send time span (sampleFileAPI.c)

o) Add send time spawn (difftxt)

o) Start work on event log file (report.c, tools/Makefile.am)

++++ Changes in libCD ++++++++

o) Add computing and logging of send time span;
   rename startRead to startRoW, endRead to endRoW, drop startWrite
   (cd_common.[ch], logfiles.c, readwrite.c, senderAPI.c)

o) Add virtual connect/disconnect (event) frame to clf file
   (events.h, logfiles.[ch], prepare.c)

o) Unlink clf element in the clf file list if the file can't
   be opened (fileAPI.c)

o) Add receive/send time span to file reader API (prepare.[ch]

o) Fix wrong parameter in function header comment (frames.c)

o) Add user defined file pointer management (cd_common.h, extend.c,
   init.c, logfiles.c)

o) Fix typos and function description comments (frames.c)

================================
Changes in 2.0.19  16. Jan. 2007
================================

o) Add monitor and certificate thread to sender (cdsend/main.c)

o) Count number of successful connection requests in sender
   (sending.c)

o) Add channel name cache to parameter list when calling
   parseAndCheckDFF() and parseAndCheckDataPayload()
   (sending.c)

o) Add channel mask to syntax definition (cdclf.vim)

o) Check also channel mask (diffclf)

++++ Changes in libCD ++++++++

o) Change version string and add link from channel cache
   back to the connection ID (cd_common.c)

o) Log application name in monitor thread and fix a typo
   (monitor.c)

o) Fix wrong function description comment (readwrite.c)

o) Add channel name cache to parameter list when calling
   parseAndCheckDFF() and parseAndCheckDataPayload()
   (senderAPI.c, fileAPI.c)

o) Add station specific channel name cache to station structure
   (cd_common.h)

o) Add structures for channel name cache and add variable which holds
   the index in the channel name string to channel structure
   (frames.h)

o) Add functions for getting the channel mask and the position of
   a channel in the channel mask (frames.c)

o) Add channel mask to clf file and log channel mask and channel
   mask index to text files (logfiles.c)

o) Add utility functions which convert channel/frame status bits
   into human readable text (logfiles.c)

================================
Changes in 2.0.18   4. Jan. 2007
================================

o) Change (re)start behavior of CD Sender; sort IRL
   only when (re)starting the production line. After (re)start insert
   new frames at the correct place (sending.c, snd_command.c)

o) Fix sporadic 'broken pipe' problem in cdsend.pl, test number 10
   (cdsend.pl)

o) Fix wrong default value for refListStoreInterval in comment
   (samples/config.par)

o) Add an additional restart point if the connection has
   broken or the data consumer has disconnect (sending.c)

++++ Changes in libCD ++++++++

o) Change default value for Worker thread retry time (init_sender.c)

o) Change version string (cd_common.c)

o) Improve fileReader API to work also without a configuration
   file (for geotool)(fileAPI.c, init_sender.[ch]

o) Add more command response messages (command.h)

o) Sort index files by date before parsing them. This should fix
   the sporadic problem that an index file is not parsed when the
   sender is restarted after a long shutdown period (when it has to
   backfill more than one day). The problem should only occurred when a
   file has been removed in the index file directory and a new index file
   has been created while the sender was not running (schedule.[ch])

o) Change parameter of catIdxDir(). The passed start date is set to
   the time of the last index file parsed to avoid sorting too many
   index files when the sender runs for a long time (schedule.c,
   sampleFileAPI.c, cdsend/main.c)

o) Move some defines within the file (fileAPI.h)

================================
Changes in 2.0.17   1. Dez. 2006
================================

o) Fix duplicate station lines in 'sort by state' view
   (stationOverview.pl)

o) Envelop sender commands with EXPERIMENTAL define (cdsend/main.c,
   test/Makefile.am)

++++ Changes in libCD ++++++++

o) Fix bug in readWithTimeout() which causes an endless loop when
   ECONNRESET is received during a recv() call (PR-???) (misc.c)

o) Add extension pointer to channelRef structure (senderAPI.h)

o) Fix missing virtual DFF in files generated by the sender
   API (senderAPI.c)

o) Change version string (cd_common.c)

o) Log name of index file which could not be stated(). Run the check
   for file creation date (from the file name) to be in the
   range of startDate <= file creation date <= endDate *before*
   trying to stat() the file. This change should fix the sporadic
   sender shutdowns when an old index file is moved away (archived)
   while the scheduler thread scans for index files (PR-???) (schedule.c)

================================
Changes in 2.0.16  08. Nov. 2006
================================

o) Adjust debug level for some debug messages (sending.c)

o) Raise a warning when a command request frame is received and
   compiled without authentication (listen.c)

o) Treat sender start end and time as UTC time (cdsend/main.c)

o) Adjust test case 9 for checking too old command request frames
   (cdsend.pl)

o) Add example code for signing a CD-1.1 data frame with an
   application specific function (sampleAPI.c)

++++ Changes in libCD ++++++++

o) Log only a summary of channel warnings/errors when enableSyslog is
   not set to FULL (events.[ch])

o) Check if the creation time of a command frame and raise an
   error if the current time - command creation time exceeds
   CMD_TIME_DELAY (command.[ch], logfiles.c, cdsend.pl, events.[ch],
   frames.h)

o) Fix bug in getTimeStamp (day of the year was one day too low)
   (misc.c)

o) Change version string (cd_common.c)

o) Move some defines within the file (fileAPI.h)

o) Add possibility to use an application specific function for
   signing a CD-1.1 data frame (senderAPI.[ch], sampleAPI.c)

================================
Changes in 2.0.15  11. Oct. 2006
================================

o) Fix incorrect milliseconds computation in double2ascDateOut()
   (misc.c)

o) Create new files if the protocol type has changed. A station
   must not change its protocol type within one minute or only
   a new binary file is created. (cd_common.h, logfiles.c)

o) Fix bug in sender that prevents the sender from sending new arrived
   frames first when sending in LIFO mode (prepare.c,
   sending.c)

o) Change version string (cd_common.c)

o) Fix timing problem in test case 16 again (cdtest.pl)

================================
Changes in 2.0.14  04. Oct. 2006
================================

o) Change data type of start date, end date and clfDate to time_t
   (db_access.c, fileAPI.h, misc.[ch], cdsend/main.c)

o) Add doxygen annotations and clf file creation date to
   clf file list structure (schedule.h)

o) Fix sending too many data format flush alert frames when
   a filter is applied (PR-0300) (sending.c)

o) Change version string (cd_common.c)

o) Add defines for new application specific commands
   and swap AC1<->AC4 and AC2<->AC5 (command.[ch])

o) Add function for removing too old clf entries from clf file
   list (schedule.[ch])

o) Remove too old files from clf file list if station is in stopped
   state (cdsend/main.c)

o) Do not write or read restart information in auxiliary mode.
   Stop sending data and change to stopped state when the first not
   requested frame is seen in auxiliary mode (sending.c)

o) Add sender specific commands to retrieve sender specific
   configuration values and to set sender specific configuration values
   (Needed to switch between auxiliary and continuous operating
    mode, snd_command.c)

o) Remove sender specific values from (generic) configuration window
   (congui.pl)

o) Fix timing problem in test case 16 and add test case for
   auxiliary station mode (cdtest.pl)

================================
Changes in 2.0.13  29. Aug. 2006
================================

** The senders main sending loop has been modified!! See below **

o) Rework main sending loop to support true LIFO mode
   after long outages and when new clf files are created
   when backfilling. Check for new frames when sending
   in FIFO or LIFO mode in sendIrlData() also in newly
   created clf files (sending.c)

o) Remove  OPER_MODE_CONTINUOUS and SEND_MODE_IMMEDIATE
   from initial systemConfig value (cd_common.c)

o) Move sender specific configuration values from station
   structure to senders application extension structure. This
   means, that it is not longer possible to change the senders
   operation or sorting mode with an SCP command (cd_common.h,
   fileAPI.h, init_sender.c, schedule.c, schedule.h, sending.c,
   cdcon.pl)

o) Improve station overview script. Stations are now
   sorted by name or by state. More than one
   application can be displayed (stationOverview.pl)

o) Check arguments for auxiliary station mode (cdsend/main.c)

o) Improve comments (logfiles.c, cdsend/main.c)

================================
Changes in 2.0.12  20. July 2006
================================

o) Change behavior when an invalid packet length is found. Raise a
   channel error instead of a channel warning (requested by Stephen)
   (frames.c, cdsend.pl, test_CD1_s3_invalid.send)

o) Update comments, make use of UNSORTED define and fix bug in
   fixed interval mode which causes too early shutdown of worker
   thread when the connection has been closed by peer (sending.c)

o) Check for new frames in current clf file when sending frames
   to fulfill FIFO and LIFO requirements (No new clf files are checked!)
   (prepare.c, sending.c)

o) Parse all files in the clf file list before try to connect.
   This fixes incorrect sorting when more than one clf file for
   the current day exists and no restart information is found (sending.c)

o) Check IP address of incoming connection request in handling
   thread again if a station file is available (handling.c)

o) Some typos fixed and debug messages added (sampleAPI.c)

================================
Changes in 2.0.11  30. June 2006
================================

o) Update comments and fix some typos (auth.c)

o) Don't shutdown if ioctl() fails. Treat this event as a
   bad connection request instead. Improve syslog messages
   to get more diagnosis info (listen.c)

o) Improve interrupt handling (EINTR) in writeWithTimeout() and
   readWithTimeout(). Make sure that ECONNRESET not longer raises
   a system error in the calling functions when reading or
   writing to/from sockets. Some typos fixed (misc.c)

o) Add function which checks for new certificates in LDAP
   (cd_ldap.h, ldap.c)

o) Add LDAP error message to syslog when ldap_bind()
   fails (init.c)

o) Check for for new certificates in LDAP (keychecker.c)

================================
Changes in 2.0.10  30. May. 2006
================================

o) Fix wrong frame signature check code in .txt files when the
   frame is not signed (cd_common.c)

o) Fix typos (cd_recv.h, cdcon/main.c)

o) Change W_SEQUENCE message from "unexpected sequence number" to
   "sequence number seen before" (events.c)

o) Add "forward station" feature. This feature allows that CD-1.1
   frame creators (senders) are allowed to connect "in the name of
   another station". This means technically that the frame
   creator and the station name must not match. The frame creator
   name is used to check the frame signature and the station name
   (connection name) is used to verify the channel data. A forward
   station has to be set for each station individually. Only the
   receiver checks if the frame is signed by a forward station.

o) Add check if frame has been signed by a forward station (sender)
   (handling.c, listen.c, readwrite.c)

o) Add forwarder key cache to stationIP structure (cd_common.h)

o) Add check if frame has been signed by a forward station to
   checkFrameAuthentication() (cd_common.c)

o) Modify check for CD-1.0 channel timestamps to be consistent with
   the F&P definition (frames.c)

o) Load new parameter `forward station` from station file (init.c)

o) Update code for new key cache layout (monitor.c)

o) Upgrade to automake1.8

o) Skip tests using the controller when no public key is configured
   (cdsend.pl)

================================
Changes in 2.0.9   15. May. 2006
================================

o) Move receiver specific config and station structure members
   into config extension respectively station extension structure.
   Move reading of receiver specific config parameters from libCD
   to receiver specific function. Update comments (cdrecv/Makefile.am,
   cdrecv.h, gaps.c, handling.c, listen.c, cdrecv/main.c, offline.c,
   init_receiver.[ch])

o) Rewrite key cache. A key cache does not longer belong to one
   station. Instead a list of key caches is managed and each key
   cache is globally accessible A key cache can now be assigned
   to more than one station/production line. This reduces the number
   of needed key caches in the sender and solves the re-signer problem
   in the receiver (listen.c, handling.c, readwrite.c, command.c,
   cd_common.[ch], init.c, keychecker.c, monitor.c, auth.[ch], cd_ldap.[ch])

o) Fix channel signature verification on little endian machines
   when signed before compression (only s4 data type tested)
   (cd_common.c, misc.h)

o) Add new test case for channel signature verification (cdsend.pl,
   VVB*, config.test, keyPreloadFile.test, cdtools/Makefile.am,
   test/Makefile.am)

================================
Changes in 2.0.8   25. Apr. 2006
================================

o) Fix core dump in sender when a filter is applied on a CD-1.1 frame,
   the original frame has no frame signature, frame signing is
   switched on and the filter string matches all channels in
   the frame (sending.c)

o) Add test case for bug described above (cdsend.pl)

================================
Changes in 2.0.7   19. Apr. 2006
================================

o) Improved comments (cd_common.c, frames.[ch])

o) Fix wrong check of channel time stamp (frames.c)

o) Fix core dump in file reader API when processing a CD1.1 frame
   (fileAPI.c)

o) Rename defines for event types to avoid inadvertently use of
   E_INTERNAL (command.c, senderAPI.c, readwrite.c, events.[ch],
   cdcon/main.c, control.c, gaps.c, handling.c, listen.c, sending.c)

o) Fix typos and improve error handling (logfiles.c)

o) Expand real time window to 300 seconds, fix wrong real time
   check and fix releasing the wrong IRL element when data of more
   than one station is processed (sampleFileAPI.c)

o) Fix bug in catIdxDir() which causes that data providers, which
   start with the same string as wanted data providers, are added
   erroneously to the wrong clf file list (e.g. PPT is added to PPTMs clf
   file list) (schedule.c)

o) Add new station name parameter to sampleAPI. Remove non working
   code which tries to set a channels nominal time in the example
   for dealing with channel sub frames (sampleAPI.c)

o) Add station parameter for sampleAPI application (cdsend.pl)

================================
Changes in 2.0.6   08. Apr. 2006
================================

o) Debug messages improved (listen.c, handling.c, snd_command.c,
   sending.c, cd_common.h, command.c, schedule.c, control.c

o) Move define for MAX_READ_RETRIES to readwrite.h (cdsender.h)

o) Fix problem with missing HAVE_LIBODBC in gbase
   (prepare.c, db_access.c, cd_common.c)

o) Move checkParsingAndAuthentication() to libCD (readwrite.[ch],
   handling.c)

o) Finish work for Data Parsing Programming Interface. Add
   function for reading a frame from a binary file and function
   which makes it easy to parse a frame read from a binary file
   (readwrite.[ch], fileAPI.[ch], sampleFileAPI.c)

o) Use standard setpar() function in readConfigurationFile() and
   readSenderConfigParams() to support reading of environment
   variables (cd_common.c, init_sender.c)

o) Set the debug level to 5 when the application started with
   start.cdtools has stopped within 60 seconds of starting. The script
   resets debug level to zero for subsequent restarts. Debug level will
   only be set to 5 again if the CD Tool runs for more than 60 seconds,
   restarts and then stops within 60 seconds. This feature is only
   available when the configuration file contains a line like
   debugLevel=$(DEBUG_LEVEL) (start.cdtools)

o) Fix wrong parameter to writeFrame() in sender API example code
   (sampleAPI.c)

================================
Changes in 2.0.5   30. Mar. 2006
================================

o) Continue work for Data Parsing Programming Interface. Add
   functions for creating a data consumer entry and a
   production line (init_sender.[ch]). Add internal reference
   list header to sender structure (schedule.[ch], move
   init_sender.[ch], prepare.[ch], schedule.[ch) and db_access.[ch]
   to libcd (configure.ac, cdlib/Makefile.am, cdsend/Makefile.am)
   Create fileAPI.[ch]

o) Improve error and debug messages (prepare.c, sending.c)

o) Fix memory leak in sender when stop commands are received
   (sending.c)

o) Fix missing close of socket when no option response frame
   is received during the CD1.1 connection establishment process.
   (Fixes the "too many open files" sender error)(sending.c)

o) Fix missing sender shutdown message when in continuous mode
   (cdsend/main.c)

o) Add new src/samples directory and move sampleAPI from src/cdsend
   to src/samples (cdsend/makefile.am, configure.ac)

o) Send an alert frame for flushing format buffer before sending a DFF
   if this is not the first DFF sent over this connection (sending.c,
   cdsend.pl)

================================
Changes in 2.0.4   13. Mar. 2006
================================

o) Use standard date formate instead of Julian for CD sender CLI
   (cdsend/main.c, cdsender.h, cdsend.pl)

o) Fix typo (logfiles.c, difftxt)

o) Continue work for Data Parsing Programming Interface. Rework
   parseClfFile() and other functions to become more independent
   from CDsender (sending.c, prepare.[ch], db_access.[ch]).

o) Fix wrong conversion of float values in sender API (senderAPI.c,
   sampleAPI.c)

o) Add processing of seconds to ascDate2int() (misc.c)

o) Add check for invalid file name to getFproducts() (db_access.c)

o) Reverse entries in Changelog file

o) Fix reporting of channel string size errors and data size errors
   to syslog(frames.h, events.c)

o) Fix logging of channel description length in .txt logfile. Before an
   invalid channel description length has been set to zero in the parsing
   function (frames.c, logfiles.c)
   CAUTION: Make sure that your application checks the channel parsing
            code before desLength is used!

o) Add checks for calibration factor and period and frame time
   length (events.[ch], frames.[ch], logfiles.c)

o) Apply a filter only if the frame has no parsing errors (sending.c)

================================
Changes in 2.0.3   27. Feb. 2006
================================

o) Move hasExtension() to libCD (misc.[ch], auth.c, search.c)

o) Add check for invalid station name to processing of CD1.1 connection
   request frames (listen.c)

o) Truncate restart file and improve logging messages (sending.c)

o) Fix unreal warnings for invalid entries in restart file (prepare.c)

o) Fix memory leak in getFprodInfo (db_access.c)

o) Start work for Data Parsing Programming Interface. Rework
   catIdxDir() to become more independent from CDsender (cdsend/main.c,
   search.[ch], schedule.[ch], cd_common.[ch], cdsender.h)

o) Add file size check for clf files generated by cdsender (config.test,
   cdsend.pl)

================================
Changes in 2.0.2   20. Feb. 2006
================================

o) Rename CDtoolsVersion() to  CDlibVersion() and return the
   version of libCD instead of the gbase version (cd_common.[ch],
   command.c)

o) Fix bug in double2ascDateOut() which causes wrong computation of
   'day of the year' (misc.c)

o) Fix typos (misc.c, cd_common.c, ChangeLog, cdsend/main.c)

o) Move sender specific code and configuration structure variables from
   libCD to src/cdsend (cdrecv/main.c, cdsend/main.c, snd_command.c,
   schedule.c, prepare.c, init_sender.[ch], db_access.[ch], senderAPI.c,
   init.c, cd_common.[ch])

o) Fix wrong 'receiving time' in clf/txt files generated by the
   sender API (senderAPI.c)

================================
Changes in 2.0.1   08. Feb. 2006
================================

o) Improved configuration script.
   (configure.ac, cd_commmon.[ch] -> Requires libCD 2.0.1!!)

================================
Changes in 2.0     06. Feb. 2006
================================

o) Add sender specific state 'WAIT2SEND' (stationOverview.pl)

o) Fix wrong check for HAVE_LIBODBC. This is set to true when any
   ODBC library is installed. But Cdtools need libgODBC
   cdsend/main.c, cdsend/prepare.c, db_access.c)

o) Add continuous data generation mode to sender API example program
   (sampleAPI.c)

o) Add new test case which uses the sender API example program
   as a data source (cdsend.pl)

o) Remove unused include (cd_common.h)

o) Get needed include path from CPPFLAGS instead of CD_INCLUDES and
   needed library path from LDFLAGS instead of CD_LDFLAGS (src/*/Makefile.am,
   configure.ac)

o) CD Tools User Guide update (CdToolsSug.pdf)

o) Fix wrong receiving time of alert frames logged in sender (sending.c)

o) Fix wrong receiving start time of port assignment frames in sender
  (sending.c)

o) Add 'Receive span' time to clf file. This was a libCD
   change (logfiles.c, cdclf.vim, diffclf)

o) Fix bug which detains the sender from forwarding data after a
   turn of the year. This was a libCD bug (misc.c)

================================
Changes in 1.1.18  22. Dec. 2005
================================

o) Improved configuration script.
   (configure.ac src/cdsend/Makefile.am)

================================
Changes in 1.1.17  16. Dec. 2005
================================

o) Link with libparidc and libcancomp distributed with gbase

o) Moved all 'libsrc' libraries to gbase (configure.ac Makefile.am,
   libsrc/Makefile.am, libsrc/*/Makefile.am)
   **** do not use this version ****

================================
Changes in 1.1.16  25. Nov. 2005
================================

o) Add workaround for odd NFS behavior (sometimes parts of the clf files
   are overwritten with binary NILS)(prepare.c)

o) Don't create a production line for an unconnected entry in the
   index file (passive data forwarding)(schedule.c)

o) Adjust debug levels of some messages, add more comment and
   log if a restart point is found to syslog with LOG_NOTICE (sending.c)

o) Check frame size when reading a clf entry to avoid too high
   memory consumption when a negative size was found (prepare.c)

================================
Changes in 1.1.15  14. Nov. 2005
================================

o) Use start and end time for DB query (fixed interval mode)
   Rework the query for clf files to speed up DB search (db_access.c)

o) Fix some typos (init_sender.c)

o) Fix splint warnings caused by new openssl version (auth.c)

o) Fix splint warnings caused by new openLDAP version (ldap.c)

o) Add change filter command (sending.c, cdsender.h, snd_command.c, command.c)

o) Add test case for 'change filter command' (cdtest.pl)

================================
Changes in 1.1.14  14. Oct. 2005
================================

o) Fix wrong sign when nominal time in subchannel differs from nominal
   (frame) time (logfiles.c)

o) Reset nominal time when receive DF. This fixes logging
   of nominal time taken from the previous data frame when current
   frame is not parsed (handling.c, tools/pnt)

o) Add doxygen intro section (cd_common.c)

o) Add doxygen tags for structures (inittables.h)

o) Fix strings in debug messages (init.c)

o) Remove static declaration from some functions used in db_access.c
   and try to read clf entries from the DB when the clf file can't
   be opened (prepare.[ch])

o) Read list of clf to parse during start up from DB when DB connection is
   configured (cdsend/main.c)

o) Remove static declaration from appendClfEntry(). This function is needed
   in db_access.c (schedule.[ch])

o) Add functions to read clf files and clf entries from database
   (db_access.[ch], cdsend/Makefile.am)

o) Add logging of environment information which is helpful when trying
   to track down problems (configure.ac)

o) Move more actions to content menu (congui.pl)

o) Use station name from connection request payload instead of frame
   creator name to check if CD-1.1 station is allowed to connect
   (listen.c)

o) When no restart file is available for a production line send
   only clf files created at the current day. Before that change
   all clf files found between current day and lookBackTimeSched
   were sent (sending.c, misc.[ch])

================================
Changes in 1.1.13   5. Oct. 2005
================================

o) Remove optimization in loadLocalKeys4Station(). Changing the current
   working directory can be dangerous when a file switch is done at the
   same time (auth.c)

o) Add function to create a command station object (command.[ch])

o) Change key loading behavior in sender. Now keys are loaded before the
   handling thread is started or if it is re-started. This avoids loading
   of certificates in different threads. (sending.c, main.c)

o) Change direction of frames generated by senderAPI to incoming to
   enable frame forwarding with CDsender (senderAPI.c)

o) Add comments and fix wrong size of frameset when scanning a
   clf file (prepare.c)

o) Ignore different ports when comparing text files (difftxt)

o) Fix problem detection algorithm (stationOverview.pl)

o) Add start, stop, disconnect and reload station file actions
   (congui.pl)

o) Extend test block 18 to send files generated by sender API (cdsend.pl)

================================
Changes in 1.1.12  21. Sep. 2005
================================

o) Fix some comments and make CD1 the implicit station type (sending.c)

o) Add more debug code to deleteRefListFrame() and improve dumpIRL() and
   dumpIRLsendSequence() to detect inconsistencies in sort or send
   history list (prepare.c)

o) Fix comments and improve setAcknowledged() to detect inconsistencies
   in send history list and shutdown the application if an inconsistency
   is detected (prepare.c)

o) Unlink the frame from the sending history when it is re-scheduled
   for sending. This should prevent that the sending list becomes
   corrupted when the sending history contains old and new links and
   the IRL is re-sorted. This can only happen when the data consumer
   disconnects before all frames scheduled for sending are sent
   (sending.c, prepare.h)

o) Set shutdownflag from config data when a new station object is created.
   This avoids that the application does not shutdown if a station object
   is created when a shutdown is pending (misc.c)

o) Add stationOverview.pl (tools/Makefile.am)

o) Add function to return current CD Tools version (CDtoolsVersion()) to
   libcd (cd_common.[ch], src/*/main.c)

================================
Changes in 1.1.11   7. Sep. 2005
================================

o) Change only the version number. Version 1.1.10 of CDtools has
   been released last week.

================================
Changes in 1.1.10   7. Sep. 2005
================================

o) Fix default value for sleepTimeRetry (cd_common.c)

o) Fix warning when compiled without authentication (cdrecv/main.c)

o) Fix compiler warning (cdcon/main.c, senderAPI.c)

o) Move command related code from cd_common.[ch] to command.[ch]

o) Drop station object parameter from application command interface
   (cd_common.h, cd_sender.h)

o) Add defines for application specific command AS2 (command.[ch])

o) Make searchDCparam() function global available (init_sender.[ch])

o) Rename cdsend/command.c to cdsend/snd_command.c (cdsend/Makefile.am,
   cdsend/command.c, snd_command.c)

o) Add "Redefine Data Consumer" (AC2) sender command (snd_command.c)

o) Add test case for Redefine Data Consumer command (cdsend.pl)

o) Fix unnecessary disconnects when recv() returns -1 and errno is set
   to EAGAIN (misc.c)

o) Move monitor.c and keychecker.c from cdrecv sources to libCD (monitor.c,
   keychecker.c, cdrecv/Makefile.am, cdrecv/main.c, certificate.h, monitor.h,
   libcd/Makefile.am)

o) Always behave like frame authentication switched on when receiving a
   command request by the receiver, regardless if frame authentication
   is switched on or not (listen.c, auth.h)

o) Add test case "frames loaded from restart file, but no clf file
   available" (cdsend.pl, test/Makefile.am)

o) Fix too high CPU time consumption when frames are loaded from
   a restart file, but no clf file is available (sending.c)

================================
Changes in 1.1.9   08. Aug. 2005
================================

o) Fix comments in init_sender.c (init_sender.c)

o) Documentation update (CdToolsSug.pdf)

o) Add variables for ODBC connection to config structure (cd_common.[ch])

o) Open optional ODBC connection when configured with ODBC
   (cdsend/main.c)

o) Try to read clf entries from the ODBC connection when the clf
   file does not (longer) exist and when configured with ODBC (prepare.c)

o) Allocate portinfo structure when station object is allocated (sender
   only). This fixes a possible core dump when the 'aux mode' patch is
   applied (schedule.c, sending.c)

================================
Changes in 1.1.8   15. July 2005
================================

o) Fix missing memory allocation for extension object when
   station is pre-loaded (senderAPI.c)

o) Set memory allocated for extension object to zero when creating
   a station object (cd_common.c)

o) Move sender specific variables from station structure into
   application extension structure (cd_common.h, schedule.[ch],
   sending.c)

o) Move variables for data request from production line structure
   to application extension structure (a production line has no
   longer a 1:1 relationship to a station object)(cd_sender.h,
   schedule.h, command.c)

o) Make use of application extension object for sender specific
   variables (main.c)

o) Retrieve data provider name from connection ID instead of the
   production line structure (data provider name in the production
   line could contain a wild card) (schedule.c)

o) Fix bug which prevents adding a clf file to the clf file list if
   the filename does not contain a slash (schedule.c)

o) Add passive data forwarding feature to CD sender. Using a '*'
   for the data provider name in the production line file will
   automatically create a sender thread for all station names found
   in the index file (main.c, schedule.c)

o) Modify test case 12 to cover also passive data forwarding (cdsend.pl)

================================
Changes in 1.1.7   08. July 2005
================================

o) Use control port for senders syslog ID instead of receivers well known port
   (cdsend/main.c)

o) Restart sender threads when in unconnected state caused by a stop
   command or another event (cdsend/main.c)

o) Add new station state 'stopped'. No data is sent or received in that
   state (cd_common.[ch], misc.[ch], events.[ch], listen.c, cdcon.pl)

o) Add start and stop command (command.[ch])

o) Fix disconnect command for sender threads in state WAIT2SEND (command.c)

o) Replace receiverUserGuide.pdf with CdToolsSug.pdf (doc/makefile.am)

o) Add start and stop command to test case 19 (cdsend.pl)

================================
Changes in 1.1.6   01. July 2005
================================

o) Resend last N frames after re-connection (sending.c)

================================
Changes in 1.1.5   17. June 2005
================================

o) Add new station states "wait to send" and "stopped". Wait to send
   is the state when the sender has no connection to a data consumer but
   a thread is started for that production line. This state is necessary to
   determine if a thread for a given production line is really running.
   This fixes also the ungraceful termination of sending threads when a
   shutdown is initiated and the sending thread was in unconnected state
   (cd_common.[ch], sending.c)

o) Add additional forward and backward links to the internal reference list.
   These links are used to store the sending order necessary for the
   go back N frames feature (prepare.h)

o) Save unsent or un-acknowledged frames sent before the restart point and
   last frame sent to the restart file. Add frames saved in the restart
   file when reading the restart file. Check frame sent count and set frames
   to acknowledged when frame sent count is exceeded. This fixes the
   go back N frames feature when re-start is done and when sorted in
   LIFO or FIFO mode. Add information about sending order to internal
   reference list to be able to resend N frames after re-start or re-connect
   (sending.c)

o) Set the state of all frames except the last N frames sent from
   un-acknowledged to acknowledged when compacting the internal reference
   list. Add new function dumpIRLsendSequence() to dump IRL in frame sent
   order. Enhance sorting to prevent the the sent order links are broken
   after sorting (prepare.c)

o) Modify test case 16 to test also max. frame resend count (cdsend.pl)

o) Fix definition of MAXLOGSIZE (logging.c)

o) Change GST=2 command. It is now allowed to send a GST=2 command
   without a station name. In that case statistics for all stations are
   returned (command.c)

o) Add test case for sender reconnect tests (cdsend.pl)

================================
Changes in 1.1.4   14. June 2005
================================

Idriz Smaili (idriz.smaili@ctbto.org)

o) Bug Fix: correct the (define) constant used for buffer allocation by the
   longLogWrite(). There was a problem with the preprocessor, which caused
   sizeof operator to return wrong buffer size (logging.c)

================================
Changes in 1.1.3   08. June 2005
================================

Idriz Smaili (idriz.smaili@ctbto.org)

o) Bug Fix: correct the maximum length of messages that can be handled by
   the longLogWrite() function (logging.c).

================================
Changes in 1.1.2    6. June 2005
================================

o) Adjust binFileSize instead of frame length when computed size and
   size reported by lseek() differs. This change prevents that the frame
   length becomes negative when the reported file size is bigger than the
   accumulated file size. Please note that this change does NOT prevent
   that at least one frame becomes corrupted when the frame, where the
   problem has been occurred, is forwarded. That is caused by the fact,
   that the return code from write does not indicate a problem and therefore
   the file size in the clf file looks correct (logfiles.c)

o) Add new function longLogWrite(). This function should be used only
   if the output buffer of logWrite() is too small or if the application
   is not multi threaded (logging.[ch])

o) Add frame sent count to prevent that an invalid frame causes a sending
   loop (cdsender.h, prepare.[ch])

o) Sent state to "sent, but not acknowledged" when a frame has been sent.
   Add more info to restart file when sending sorted by time (frames which
   have not been sent or acknowledged; This information is not used in
   the current release when reading the restart file)(sending.c)

o) Set frame sending state from "sent, but not acknowledged" to "sent
   and acknowledged" when compacting the internal reference list (prepare.c)

================================
Changes in 1.1.1   20. Mai 2005
================================

o) Code Refactoring: drop redirectPortInfo structure (handling.c,
   listen.c, offline.c, sampleAPI.c, logfiles.c, cd_common.[ch],
   congui.pl)

o) Code Refactoring: create separate structures for statistic data
   (handling.c, listen.c, offline.c, events.[ch], monitor.c,
    control.c, command.c, cd_common.[ch], senderAPI.c, readwrite.c)

o) Ignore ECONNRESET (Connection reset by peer) when waiting for
   connect() accept. This fix the unexpected receiver
   shutdown. Syslog message: .....  [getNextValidRequest failed,
   Connection reset by peer] (misc.c)

o) Fix a problem with the channel filtering in the sender. Previously
   the filter for the first station in the production line file was applied
   to all the stations in the production line file. Now channel filtering
   work as described in the users guide (sending.c, cdtest.pl)

o) tools/diff*: exit with return code from diff (diffclf, difftxt,
   diffwfdisc)

o) Fix sending too many frames during restart when sender was in LIFO or
   FIFO mode (prepare.h, sending.c)

o) Changed the position of nanosleep (needed to be before ldap) (configure.ac)

=================================
Changes in 1.1.0   05. May 2005
=================================

o) Fixed a problem with the channel filtering in the sender. Previously
   the filter for the first station in the production line file was applied
   to all the stations in the production line file. Now channel filtering
   should work as described in the users guide. (sending.c)

=================================
Changes in 1.0.39  29. April 2005
=================================

o) Log restart info to syslog (sending.c)

o) Fix wrong frame signature check state when no keys are loaded
   (cd_common.c)

o) Add new event 'Frame too short' (events.[ch])

o) Fix wrong frame parsing code in clf files for outgoing frames.
   Reset frame parsing code before an (unparsed) frame is sent
   (logfiles.c, handling.c, listen.c)

o) NFS: Check if the current position in the file is the same as the
   application thinks. If the current position in the bin file differs
   from the computed offset, adjust offset and log an error message.
   Log errno code when a write to the bin file fails (logfiles.c)

o) Extend max. length of syslog messages (logging.c)

o) Change Sender behavior: do not send DF or DFF where the size in clf file is
   shorter than size seen in the frame (sending.c)

o) Move retryWait() to libCD (sending.[ch], cd_common.[ch])

o) Fix sporadic missing alert frame when the sender shuts down (sending.c)

o) Added -i to the logger calls in the start.cdtool script, so the syslog
   messages will now contain the process ID (PID). (start.cdtool)

=================================
Changes in 1.0.38  22. April 2005
=================================

o) Rename difftbs to diffclf (tools/Makefile.am)

o) Add setChannelSubFrame function. This adds the ability to
   assemble new frames from channels subframes (CSFs) to
   the sender API (senderAPI.[ch])

o) Add example for frame generation with channel subframes (sampleAPI.c)

=================================
Changes in 1.0.37  11. April 2005
=================================

o) Reset nominal time when receive DF. This fixes logging
   of nominal time taken from the previous data frame when current
   frame is not parsed (handling.c, tools/pnt)

o) Add doxygen intro section (cd_common.c)

o) Add doxygen tags for structures (inittables.h)

o) Fix strings in debug messages (init.c)

o) Fix unexpected and immediate sender termination (message: "... CDsender
   initialization stopped") when connection request is reset by peer (sending.c)

o) Fix bad check for data consumer name length (init_sender.c)

o) Drop buggy retry code when reading an incomplete clf line. Set file pointer
   back to end of last line and behave like no new line is found instead.
   After retry wait a new attempt to read a complete line (terminated
   by a NL) is made (prepare.c)

o) Remove unused code (schedule.c)

o) Changed start script so that it will always run forever. The script waits
   one minute before restarting the cdtool. It then doubles the restart time
   after every failed restart (up to a maximum of 32 minutes). Also added
   optional parameters to ensure that the script is started by the expected
   user on the expected host. Another new optional parameter allows extra
   information to be added to the log file. (start.cdtool)

=================================
Changes in 1.0.36   7. March 2005
=================================

o) Add READ.ME for scripts in tools directory (tools/Makefile.am, READ.ME)

o) Add 'Disconnect' and 'Reload Station File' buttons to congui.pl (congui.pl)

o) Add plot of other frames than Data Frames to pnt (pnt)

o) Finish 'data request' command. This is the first application specific
   command (cdsender.h, cdsend/command.c, prepare.[ch], sending.c)

o) Clean up command response codes (libcd/command.[ch])

o) Add test case for data request command (cdsend.pl)

=====================================
Changes in 1.0.35   21. February 2005
=====================================

o) Fix wrong user id when command is logged (cdcon/main.c)

o) Remove E_SIZE event. E_FRAMESIZE is the same event (sending.c,
   readwrite.c, events.[ch], listen.c, sending.c)

o) Fix bad sequence number when generating command frames (control.c)

o) Add defines for minimal CD-1.0 and CD-1.1 frame sizes (frames.h)

o) Add new application specific command AC1 and application command
   hook (cd_common.[ch], command.c)

o) Fix wrong format string in getTimeStamp() and add getSequenceNbr()

o) Start with sender specific commands (cdsend/Makefile.am,
   cdsend/command.c, cdsender.h, cdsend.main.c)

o) Move channel descriptions to main function (sampleAPI.c)

o) Fix endless loop in cdrecv when a frame with frame length or
   trailer offset of 0 is received. This fix causes different
   treatment of frames with an invalid header. Before this fix,
   a frame with an invalid frame length but, a valid type was
   parsed with the parsing functions for that frame type. Now
   frames with an invalid frame length are treated as "unknown"
   and re-acquiring is done instead (handling.c)

=====================================
Changes in 1.0.34    8. February 2005
=====================================

o) Add new command line parameter MAX_CONSECUTIVE_RESTARTS to start.cdtool
   (start.cdtool)

o) Fix compilation error when compiling with NO_AUTH=1 (senderAPI.c)

o) Add application object to station structure. This object can hold
   any application specific data. If the variable sizeOfAppExtension
   is set in the config structure, the memory for the application object
   is allocated when a new station object is created. Handle the object with
   care!! (cd_common.[ch])

o) Add new events "DF created" and "DFF created" (events.[ch])

o) Fix missing newline in CD-1.1 text file when not channel status format
   type 1 (logfiles.c)

o) Log frame parsing code to text files when writing frames (logfiles.c)

o) Fix wrong nominal time string format in double2ascDateOut (misc.c)

o) Add new macro SET_NOMINAL_TIME (misc.h)

o) Rewrite senderAPI. Cache channel values in own structure instead
   of the frame structure. Generate automatically a new DFF when a
   channel is missing. Fix some bugs in the generated frames. (senderAPI.[ch],
   sampleAPI.c)

o) Fix wrong application string for cdsender (cdsend/main.c)

o) Enhance explain tool to explain also nominal times (explain.c)

o) Fix possible bug in CONVERT2DOUBLE (misc.h)

o) Add test case for sender API (cdsend.pl)

=====================================
Changes in 1.0.33   24. January 2005
=====================================

o) Fix wrong data size (e.g. commid in wfdisc records)(frames.c)

o) Move verifyChannelData to libCD (cd_common.[ch], handling.c)

o) Add sender API and sender API sample code (libCD/Makefile.am,
   senderAPI.[ch], cdsend/Makefile.am, sampleAPI.c, frames.h)

o) Add function to convert nominal time from double to ASCII string
   (misc.[ch])

o) Enhance readCDframe() to be able to read also from a file
   (readwrite.c)

o) Enhance explain tool to explain also CD event codes (explain.c)

o) Revert to old AckNack behavior (GP) (gaps.c)

=====================================
Changes in 1.0.32   14. Dezember 2004
=====================================

o) Fix site filtering and re-work filterFrame() (sending.c)

o) Replace own root CA certificate, test key and certificate with CTBTOs
   root CA certificate test key and certificate (auth.c, CDTEST/*,
   CDTEST_valid_ComRq.11bin)

o) Add sequence number to command frames (control.c)

o) Fix rounding bug in getTimeStamp() (misc.c)

o) Add colon after "Calibration information" logging string to
   simplify syntax highlighting (logfiles.c)

o) Add test case for site filtering (cdsend.pl)

=====================================
Changes in 1.0.31   26. November 2004
=====================================

o) Add test case for station filtering (cdsend.pl)

o) Fix missing NIL at end of CD-1.1 channel name when filtering (sending.c)

o) Make the receiver more robust when parsing an invalid frame. This causes
   abort of channel logging to text files in some cases, when it is
   considered as un-safe to continue (only last parsed sub-channel)
   (logfiles.c, frames.h)

o) Check certificate chain when loading a certificate (limited to
   one root certificate) (auth.[ch], init.c)

o) Modify startPort, senderControlPort, sleepTimeRetry default
   values (config.par, cd_common.c, init.c)

=====================================
Changes in 1.0.30   15. November 2004
=====================================

!!!! A regular expression in form of '*' in production lines will
     cause that only channels with an asterisk in the name will be sent.
     This is the POSIX behavior. Leave the fields empty to
     omit site/channel filtering!!

o) Change log2stdout() that static strings could also be logged (logging.c)

o) Add test case for sender where each data frame is preceded by an
   alert frame and a data format frame (cdsend.pl, CMAR*)

o) Clean up configure.ac Remove GEOTOOL comments and checking for /opt/FSF
   (configure.ac)

o) Remove startup messages to stdout (JC) (*/main.c)

o) Add helper tool 'explain' to print sysConf, frame parsing and
   channel parsing codes in human readable form (src/tools/Makefile.am,
   src/Makefile.am, configure.ac, inittables.[ch], cd_common.[ch],
   logfiles.[ch]

o) Sent back application ID instead of application name and
   sent back nbr of seconds instead of time string when processing
   the GST command (command.c, cdcon.pl)

o) Allow empty regular expression fields for site and channel in production
  line file (init_sender.c, sending.c)

o) Add channel filtering (sending.c)

=====================================
Changes in 1.0.29   08. November 2004
=====================================

o) Fix endless loop during re-start when a clf file newer than the
   re-start file exists (sending.c)(fixed in 1.0.28, but not committed)

o) Fix sorting only frames within the current clf file when no re-start
   file exists (sending.c)

o) Add application name, version and start date and time to GST
   command (command.c, cdcon.pl)

o) Fix broken cdcon.pl output (cdcon.pl)

o) Add GCP (Get Configuration parameter) and GDL (Get Debug Level)
   command (cd_common.[ch], command.c)

o) Add vim syntax files to distribution (cdtxt.vim, cdclf.vim, Makefile.am)
   (*.vim files have to be moved to ~/.vim/syntax/ after installation)

o) Replace start.cdrecv with start.cdtool (Makefile.am)

o) Add RSF (Reload Station File) command (cd_common.[ch], command.c)

o) Fix missing DFFs when sorting in steady state (prepare.[ch])

o) Fix "unexpected NULL pointer" error when no data has been sent before
   shutdown (sending.c)

o) Add CD2W structures to pStation structure (cd_common.h)

=====================================
Changes in 1.0.28    19. October 2004
=====================================

o) Write more accurate authentication state to wfdisc files (JC)
   This has also an impact on .txt files. The channel authentication
   state has changed from 'Unknown' to 'Failed (no key)' if no keys are
   available (frames.h, logfiles.c, handling.c)

o) Change CD-1.0 type string from "cd1" to "cd10" in the offline control file
   (GP) (offline.c, checkoffline)

o) Fix waiting receiver when an offline control file parsing error
   occurs (offline.c)

o) Fix compilation error when compile without authentication (cdcon/main.c)

o) Fix compilation warnings when compiled on Solaris (sending.c, gaps.c)

o) Fix writing a restart file every time a frame is sent when
   refListStoreInterval is set to zero (sending.c)

o) Fix writing to syslog when enableSyslog is set to NO (cd_common.c)

o) Fix that some syslog messages are written to stdout instead of stderr
   when debugLevel > 0 (logging.c)

o) Add check to sender if reference list store path is configured (init.c)

o) Fix same defines for PROCESS_MODE_LIFO and ENABLE_SYSLOG (cd_common.h)

o) Fix growing internal reference list in LIFO mode (prepare.c)

o) Change output of cdcon .... GST=3,connection_id to make processing
   easier (command.c)

o) Fix NULL pointer argument when calling logWarning(). (logging.c)

o) Fix "Division by zero" exception when number of samples is zero
   (frames.c)

o) Speed up quicksort algorithm (prepare.c)

=====================================
Changes in 1.0.27     7. October 2004
=====================================

o) Fix missing frames after re-start when clf file has grown but
   no new clf file has been created (sending.c)

o) Change re-start file format to support sorting (sending.c)

o) Fix slow endless loop when binary file is moved or removed during sending
  )sending.c) (untested!!)

o) Add FIFO and LIFO sorting (sending.c, prepare.[ch])

o) Add test cases for FIFO, LIFO and AS_ARRIVED (cdsend.pl, config.test)

o) Check if binary file exists when parsing clf file (prepare.c)

=====================================
Changes in 1.0.26  27. September 2004
=====================================

o) Fix debug messages which go to stdout instead of stderr
   (logging.h)

o) Add new command line argument "port" to CDcon (cdcon/main.c,
   cdsend.pl)

o) Move command.[ch] to libCD (cdrecv/makefile.am, libcd/makefile.am)

o) Add connection state to sendFrame() to allow send also frames in
   unconnected state with this function (handling.c, cd_common.[ch]

o) Move adjustBufferSize() to libCD (cd_common.[ch], sending.c)

o) Fix splint warnings (use adjustBufferSize()) (handling.c)

o) Fix check for allowed control station (listen.c)

o) Allow more than one station per IP address when filtering
   IP and station names (listen.c, command.c, cd_common.[ch])

o) Add command interface to CD sender (command.[ch], cdsend/main.c)

o) Load station file also for sender (init.c)

o) Move readCDframe() to libCD (create readwrite.[ch], sending.c)

o) Fix wrong connection state when logging Option Request/Response
   Frame (sending.c)

o) Set new default values for filePath, cdrecvIndexFilePath,
   strictModeEnable, enableWfdiscFile, enableWfdiscFile, strictModeEnable,
   verSigEnable, keyDirectory, certDirectory and refListStorePath
   (samples/config.par, cd_common.c, cdrecv/main.c

o) Add station name to CD controller CLI. Command is now last
   argument (cdcon/main.c)

o) Use CD event as exit code for CD controller. Exit code 1 is
   configuration problem and not E_IP_UNKNOWN (main.c, control.c)

o) Check if a private key is configured when running cdcon and refuse
   to start if none is configured (cdcon/main.c)

o) Check if the frame has a signature even if CD11 key ID is not 0
  (cd_common.c)

o) Check if at least a frame (related) file has to be written when entering
   saveData() and syncFile() (logfiles.c)

o) Do not treat Command Request frames in unconnected state
   as invalid frames (readwrite.c)

o) Re-work control.c to use libCD functions for sending and receiving
   frames (control.c)

o) Check authentication of Command Request frames regardless if frame
   authentication is switched on or not (listen.c)

o) Enhance sendIrlData() to allow sending when frames not sorted by
   arrival time (first patch for sending sorted by nominal time)
   (sending.c, prepare.[ch], schedule.h)

=====================================
Changes in 1.0.25  13. September 2004
=====================================

o) Shutdown application if an internal error occurs when
   loading certificates (cd_common.c)

o) Check station specific system configuration parameter when checking
   if authentication is switched on instead of system wide parameter
   (auth.h, listen.c, control.c)

o) Load certificates before sending a connection request (sending.c)

o) Fix different authentication state in offline mode (offline.c)

o) Check for option response frame after sending on option request
   frame (sending.c, event.[ch])

o) Add start and end date as CLI parameter to CDsender
   (cd_common.h, cdsend/main.c)

o) Move code to CD library (listen.c, cdrecv.h, cd_common.[ch],
   monitor.c, offline.c, listen.c, misc.[ch])

o) Make config parameter default values consistent with sample
   config file and merge all sample config files in one.
   Rename config parameter createBinFile to enableBinFile, merge
   syslogLevel and verboseEnable into enableSyslog and add
   senderControlPort and processMode AS_ARRIVED. Drop
   runOperMode config parameter (cd_common.[ch], samples/*.par)

o) Write debug messages to stderr instead of stdout (logging.h,
   auth.c, cd_common.c, frames.c, listen.c, handling.c,
   control.c, sending.c)

o) Add new event "station not authorized to send command request"
   (event.[ch], logfiles.c)

o) Change config.test to run tests with authentication enabled
   (config.test/cdsend.pl)

o) Start work to add control interface to sender (cdsend/main.c)

====================================
Changes in 1.0.24  3. September 2004
====================================

o) Check return code of fflush() and shutdown application when
   fflush() reports an error (logfiles.c, extend.c)

o) Add function descriptions and fix backward linking in internal
   reference list (prepare.c)

o) Add info about the corresponding DFF to internal reference
   list and drop DFF frames from the list (prepare.[ch], sending.c)

o) Delete sent frames not before a re-start point is
   written (prepare.[ch], sending.c)

o) Remove unused code (prepare.c)

o) Resend "last x frames" (sending.c)

====================================
Changes in 1.0.23    23. August 2004
====================================

o) Fix missing leading zero(s) for milliseconds in ascii date
   representation (double2ascDate(), misc.c)

o) Add two new events and fix spelling errors (events.[ch])
   (Warning: this changes some .txt file messages)

o) Rename frameTimeLng to subFrameTimeLng (frames.[ch], logfiles.c)

o) Modify channel time stamp check to be conform with revision 0.3
   of F&P (frames.[ch])

o) Add data integrity test before and after writing a binary file
   when compiled with TEST_THE_IMPOSSIBLE (logfiles.c, listen.c,
   handling.c, sending.c)

o) Set the 'not parsed flag' only for Data and Data Format Frames
   after receiving a frame (handling.c, logfiles.c)
   (Warning: this changes some .txt file messages)

o) Change exit code of cdcon to 100 when application to control
   does not respond. Exit code 1 is now only initialization failure
   (cdcon/main.c, control.c, start.cdrecv)

o) Set event in readCDFrame frame (big change!!) (sending.c)

o) Drop LDAPsecondaryServer, LDAPport, LDAPsecondaryPort config
   parameter. New style is LDAPserver="server1[:port] server2[:port]"
   (cd_common.[ch])

o) Support more than one LDAP server (tested only with LDAP_bind())
   (init.c)

o) Fix sometimes wrong direction (incoming/outgoing) in sender
   log files (sending.c)

o) Fix logging of sent Alert Frames in sender (sending.c)

o) Set 'not parsed flag' when sending Data and Data Format Frames
   (Fixes wrong values in senders .txt files, sending.c)

====================================
Changes in 1.0.22       . July 2004
====================================

o) Deactivate read retries for bin and clf file in standard
   configuration. Configure with -DMAX_READ_RETRIES=<nbr>
   to activate. Start work on read retries for clf file
   (sending.[ch], prepare.c, cd_sender.h)

o) Clean up unused config parameter lockBackTimeWork and fix
   wrong waiting time for re-connect in sender
   (cd_common.[ch], config_sender.par, sending.c)

o) Add nominal time for outgoing data frames to log files (logfiles.c,
   sending.c, cdsend/main.c)

o) Add end date processing to scheduler thread (cdsend/main.c,
   search.[ch])

o) Fix timing problem when joining worker threads (cdsend/main.c)

o) Fix compilation errors when configured with USR_EXT=yes
   (cdrecv/Makefile.am, logfiles.h, libcd/Makefile.am, extend.c)

o) Drop gap lists on disconnect and drop connection when
   MAX_GAPS are reached (events.[ch], handling.c, gaps.[ch])

o) Increase MAX_GAPS from 20 to 100 (frames.h)

====================================
Changes in 1.0.21     29. June 2004
====================================

o) Move logging[.ch] to new libidcsyslog. Remove using of
   external variables for debuglevel and syslog filtering.
   Simplify all Makefiles.am
   (logging.[ch], */*//Makefile.am, configure.ac,)

o) Check if a file object exists before trying to free it.
   Fix missing file object when a DFF has to be sent after
   connection establishment (prepare.c)

o) Fix sender core dump when adjusting buffer size (sending.c)

o) Fix core dump when option request frame without options is
   received and debug messages are printed (frames.c)

o) Block SIGPIPE signal (cd_common.c)

o) Send station name in type 1 option request string (sending.c)

o) Fix bug in connectWithTimeout() when connect() takes longer
   than one second. This bug causes the sporadic EPIPE error
   when the sender tries to send data (to an unconnected socket)
   (misc.c)

o) Rename remaining WITHOUT_* defines (frames.[ch], cd_commmon.c,
   configure.ac, control.c, keychecker.c)

o) Add wait time argument to retryWait(). Try to re-read
   binary file some times when end of file is reached
   unexpected (sending.c)

o) Fix missing time for CRF and ORF frames in sender log files
   (sending.c)

o) Check if an Alert Frame is received before sending data
   Check if an Alert Frame is received when an unexpected close
   error is reported from writeWithtimeout before reporting
   an error (sending.c)

o) Fix compilation error when compiling mit -DIMS (logging.h)

====================================
Changes in 1.0.20      28. Mai 2004
====================================

o) Fix missing IP and name check when no valid line is found in the
   station file (listen.c)

o) Fix duplicate entries in index file (logfiles.c)

o) Add logging of incoming data to sender (events.[ch], frames.h,
   sending.c)

o) Reduce memory consumption for sender when in catch-up phase
   (prepare.[ch])

====================================
Changes in 1.0.19      14. Mai 2004
====================================

o) Clean up event table and add events for Connection request and Data
   (format) Frames sent and Port Assignment and Connection Response
   Frame received (events.[ch])

o) Move sendFrame() and cleanUp() function from receiver to
   libCD (cd_common.[ch], handling.c, listen.c, cdrecv.h)

o) Omit check for channel times when nominal time is 0 (function
   parseAndCheckCD11dataChannel) as requested by Edward (frames.c)

o) Add check for invalid option type (handling.c, frames.[ch])

o) Enhance test script. All needed parameters are read from the
   config file now. Add test target to Makefile in test directory
   (test/Makefile.am, cdsend.pl, config.test)

o) Add trailer at the end of a txt file if a file change is done
   (logfiles.c)

o) Add creation of log files to the sender. Incoming data in
   connected state is not logged yet (sending.c)

====================================
Changes in 1.0.18        7. Mai 2004
====================================

o) Fix missing "ctbt.acquisition..." string in syslog messages when
   an initialization error is logged. The port number in the syslog
   ID string is added after the configuration file is read (src/*/main.c)

o) Make generation of syslog entries configurable (logging.c,
   cd_common.c)

o) Split parseAndCheckCD11dataChannels() as requested by Edward.
   parseAndCheckCD11dataChannel() should be used now instead of
   parseAndCheckCD11CSFdataChannels() (frames.c)

o) Move frame header check from  acquireCD11Framing() to checkCD11frameType()
   as requested by Stephen (handling.c, frames.c)

o) Read keyID from certificates (auth.[ch]). If no or an invalid key
   ID is found in the certificate, key ID is set to -1 now instead
   of using the serial number as a key ID!

o) Fix check for maxPosDeviation (frames.c)

o) Add check if the start time of the frame is equal to the earliest
   subframe and if no subframe starts after the frame time + frame time
   length (frames.c)

o) Add config parameter "controlStation". Only the control station
   is authorized to send command frames to the receiver/sender
   (init.c, events.[ch], listen.c, command.c, cd_common[ch]).
   If compiled with STRICT_COMMAND_CHECK no signature check is done
   and no command response is sent back when an unauthorized station
   sends a command. Otherwise "400 station not authorized" is sent
   back as response.

o) Add private and public key for tests (certs/CDTEST/*)

o) Adapt control test cases to use correct signed signed
   frames (cdsend.pl)

====================================
Changes in 1.0.17    16. April 2004
====================================

o) Support Common Names like "CF-*" in getKeyByName() (auth.c)

o) Add debug message when linking an "alternate key" (auth.c)

o) getKeyByName() returns first "best guesses" now. This allows to check
   alternate keys also for "best guesses" (auth.c)

o) Fix bug in raiseFDLimit(). Current limit is now set to max. limit.
   (misc.c)

o) Fix some splint warnings (sending.c)

====================================
Changes in 1.0.16      6. April 2004
====================================

o) Fix sender core dump (on Solaris) or endless loop (on Linux) when
   no clf file could be loaded in fixed interval mode(sending.c)

o) Move more code from sender to library (sending.[ch], frames.[ch])

o) Start work on sending CD1.1 data (connect and send data, no AckNack
   or Alert frame treatment, re-start untested) (sending.c, prepare,c
   cdsend.pl)

o) Fix endless loop when last clf file does not exist (sending.c)

====================================
Changes in 1.0.15     26. March 2004
====================================

o) Rename initConfigParames() to initConfigParams() (cd_common.[ch],
   */main.c)

o) Move init.[ch] and logfiles.[ch] to libCD

o) Fix sender core dump when keys are pre-loaded (schedule.c)

o) Check all file paths during startup and create directories
   if necessary (cdsend/main.c)

o) Fix wrong file/directory permissions for new created directories
   when start-up (init.c, misc.c)

o) Drop config parameter createBinInOffline and introduce more
   general createBinFile (ON when receiver in online mode, OFF when receiver
   in offline mode or sender) (cd_common.[ch], logfiles.c, sender/main.c,
   recv/main.c, handling.c)

o) Fix wrong command response code (command.c)

o) Rename DATA_CHECK_ENABLE to ONLINE_MODE (handling.c, cd_common.h, main.c,
   init.c)

o) Make some adaptions in the CD library for sender (init.c, misc.c)

o) Create only one binary file per day as long as the receiver is not stopped
   (handling.c, logfiles.[ch], cd_common.h)

o) Fix sender core dump (on Solaris) or endless loop (on Linux) when
   a clf file can not be loaded (sending.c)

o) Fix unnecessary connection establishment when a new Alert Frame is
   found in the clf file (sending.c)

o) Improve sender test cases (cdsend.pl)

o) Fix bug in writeWithTimeout(). Now the returned events and not the
   requested events are checked. This should solve the SIGPIPE
   problem.

o) Fix wrong internal reference list file when in catch up or
   fixed interval mode and a connection is closed or the sender is
   stopped before the whole clf file is sent. This makes a format
   change of the internal reference list file necessary (sending.c,
   prepare.[ch])

====================================
Changes in 1.0.14      5. March 2004
====================================

o) Add new retry time config parameter for CD sender (cd_common.[ch],
   sending.c, config_sender.par)

o) Fix problem which occurs when trying to create a directory on
   some NFS mounted file systems (misc.c)

o) Enhance sender test cases and add sender test case for
   re-start (cdsend.pl, config.test)

o) Fix random state changes (cdsend/main.c)

o) Rename pClfFileParams to pClfFileHead (code cleanup)
   (schedule.[ch])

o) Code cleanup (remove unused functions, variables and add comments)
   (prepare.[ch], sending.c)

o) Add re-connect feature and improve CPU time consumption
   (prepare.c, sending.c)

o) Fix some re-start bugs (missing DFF or does not connect)
   (sending.c)

====================================
Changes in 1.0.13  25. February 2004
====================================

o) Fix broken lookbackTimeSched time check (was 2 month wrong) (search.c)

o) Fix broken start date when re-parsing index files (main.c)

o) Fix missing config.h which causes a compilation error when
   compiling on a system without OpenSSL libraries and headers
   (init_sender.c, prepare.c, schedule.c)

o) Fix infinite loop when a previous processed index file entry
   is checked (schedule.c)

o) Raising the allowed open file descriptors limit to the system wide
   hard limit (misc.[ch], init.c)

o) Rename config parameter "enableTbsFile" to "enableClfFile"!!!
   (cd_common.c, all config*.par files)

o) Improved debug and logging messages (init_sender.c, prepare.c,
   schedule.c, search.c, sending.c)

o) Add re-start feature to CD sender (save and restore internal
   reference list)(sending.c)

====================================
Changes in 1.0.12  13. February 2004
====================================

o) Move checkCD*frameType() to libCD (handling.c, frames.[ch])

o) Fix un-initialized memory use warning (inittables.c)

o) Update comment (cd_common.c)

o) Remove unused sender variables in station structure (cd_common.h)

o) Add sender (PAF received) event (events.[ch])

o) Move checkNum() from sender to libCD (misc.[ch], search.c)

o) Huge sender update: Add CD conform logging, improved debbuging,
   remove unnecessary mutex locks, some code re-works,
   update comments, small design change (worker
   threads now wait for incoming data instead of wait for a
   broadcast from scheduler thread) and more (all sender files)

===================================
Changes in 1.0.11  2. February 2004
===================================

o) Don't shutdown CDreceiver when waitForConnect() fails and errno
   is set to ECONNABORTED. This is no local system error. (listen.c)

o) Re-write writing to binary files. Replace fwrite() with some
   experimental code that uses write() and does some checks to
   identify writing problems. (logfiles.c)

o) Large sender update for a first (untested) implementation
   of continuous mode (all files in src/cdsend)

o) Test case for sender in fixed interval mode added (cdtest.pl)

====================================
Changes in 1.0.10  15. December 2003
====================================

o) Check for connection ID instead of station name in getStation()
   (cd_common.c)

o) Fix wrong frame destination name in Connection Response Frames (listen.c)

o) Use the same function for frame authentication checks in listener,
   handling and controller thread. (cd_common.[ch], listen.c, handling.c,
   control.c).
   Warning: That changes the behaviour of the listener thread. Frames are
            not longer received with an error/warning if no keys are
            available and frame signature check is switched off (_U_* log
            files)

o) Fix wrong frame header values for CD1.1 frames in log files if a
   timeout has occurred (handling.c)

o) Make IP address which is sent back in Port Assignment or Connection
   Response Frame configurable (cd_common.h, listen.c, init.c)
   Necessary if NAT is used in the incoming route.

o) Log redirect port info instead of port info in txt file when
   sending PAF or Connection Response Frames (logfiles.c)

o) Fix attempt to send data over a terminated IP connection (SIGPIPE
   problem) (misc.c)

o) Fix wrong comments and change the txt file string "Frame
   length" to "Bytes received" or "Bytes sent". Add logging of
   the frame length field of CD1 Data, Data Format Frames and Alert
   Frames to .txt files (logfiles.c)

o) Log IP addresses in IP address notation (eg. "127.0.0.1") instead of
   print only a hex value (logfiles.c misc.[ch])

o) Fix some compiler warnings when compiled without authentication
   (offline.c, init.c, command.c, cdcon/main.c, control.c)

o) Fix compilation error when compiled without LDAP access or
   without authentication (listen.c, ldap.c, cd_ldap.h)

o) Fix problem when handling thread initializes too slow. Now
   the shutdown flag is set for such a thread and the shutdown
   is done by the thread itself instead of cancel the handling thread.
   (cdrecv.h, listen.c, handling.c)

===================================
Changes in 1.0.9  16. December 2003
===================================

o) Fix some splint warnings (listen.c)

o) Fix missing connection state text in cdcon.pl (cdcon.pl)

o) Add function for parsing Option Request/Response Frames (frames.[ch])

o) Add channel subframe offset to CDdataChannel structure (frames.[ch])

o) Log more Option Request/Response frame values and Channel
   subframe offset to .txt file (logfiles.c)

===================================
Changes in 1.0.8  11. December 2003
===================================

o) Reset connection specific shutdown flag before handling thread
   terminates (listen.c)

o) Add processing for "disconnect" and "set config params"
   command (command.c)

o) Add defines and text for "disconnect" and "set config params"
   command (cd_common.[ch])

o) Fix that no data (e. g. alert frames) is sent when a user
   shutdown request is pending (misc.c)

o) Add test case for disconnect command (cdsend.pl)

o) Add text for "set config params" command and fix check for IP
   address (cdcon.pl)

===================================
Changes in 1.0.7  09. December 2003
===================================

o) Move events.[ch] to libCD (events.[ch], cdrecv/Makefile.am
   libcd/Makefila.am)

o) Move HAVE_TO_LOAD_CERTIFCATES macro from receiver to libCD (cdrecv.h,
   auth.h)

o) Set history structure in initConfigParames() (cdrecv/main.c, cd_common.c,
   cdsend/main.c)

o) Rename some structure members to make them more generic useable (eg.
   receiverStarted to appStarted) (cd_common.h, cdrecv/main.c, monitor.c,
   sending.c)

o) Move setPortInfo() to libCD. Add new generic function for loading
   certificates (cd_common.[ch], listen.c)

o) Add station specific shutdown condition (cd_common.c, main.c,
   handling.c)

o) Add station specific system configuration flag (controls creation of
   files, strict mode, etc.) (handling.c, listen.c, logfiles.c)

o) Fix wrong re-acquire timeout for CD1_1 connections (handling.c)

o) Re-work logging of CDcontrol (logs to syslog now) (cdcon/main.c,
   control.[ch])

o) Add control of non local receivers (cdcon/main.c, control.c)

o) Check frame authentication of Command Response frame (control.c)

o) Move more code from CDreceiver to libCD (checkFrameAuthentication())
   (cd_common.[ch], handling.c)

o) Process Command Request frames only when compiled with
   authentication (listen.c)

o) Modify command responses to simplify parsing (command.c)

===================================
Changes in 1.0.6   28.November 2003
===================================

o) Use compiler option -Wall only if compiler is gcc
   (all source code Makefile.am)

o) Replace global debug macro with station specific debug macro to support
   station specific debug levels (gaps.c handling.c listen.c logfiles.c
   wfdisc.c)

o) Add connection ID field to station structure. The connection ID
   is used for file names and to identify connections internally.
   The (old) station name is used to load the right keys and to check if
   stations are already connected. In the CDreceiver connection ID and
   station name are identically. In the CDsender the connection ID is
   build from data provider and data consumer name. (cd_common.[ch],
   init.c, listen.c, offline.c, command.c, events.c, main.c,
   monitor.c, wfdisc.c, logfiles.c, keychecker.c, handling.c)

o) Remove duplicate entries in CDsender structures (cd_sender.h,
   init_sender.c, prepare.c, schedule.c, cdrecv.h, sending.c)

o) Fix bug in CDsender which causes that only the first data consumer
   (line) is loaded (init_sender.c)

o) Fix core dump in CDsender when frame size > BUFSIZE (sending.c)

o) Allocate station structures with libCD function and remove sender
   specific allocation function (main.c, init_sender.c)

o) Send also frame with warnings (prepare.c)

o) Drop unnecessary mutex locks in CDsender (sending.c)

===================================
Changes in 1.0.5  21. November 2003
===================================

o) Move utility function shutdownReceiver() from CDreceiver to libCD and
   rename it to shutdownApplication() (wfdisc.c, offline.c, monitor.c,
   cdrecv/main.c, cd_common.c, logfiles.c, listen.c)

o) Move functions reading the configuration file and the configuration
   structure itself from CDreceiver to libCD (cdrecv/main.c,
   cdsend/main.c, cdcon/main.c, cd_common.[ch], init.[ch], cdrecv.h)

o) Move getStation() and getStationState to libCD (listen.c, cd_common.[ch])

o) Fix splint warnings (offline.c, monitor.c, listen.c, main.c)

o) Set station specific debug level (SDL=<level>,<station name>)
   (command.c, cd_common.h)

o) Remove CD_* defines from configuration structure (They caused a lot
   of pain! Don't use it again!) (cd_common.h)

o) Use station structure in CDsender and use stopProgram() instead of
   stopSender() (sending.c, schedule.c, prepare.c, search.c, sending.c,
   cdsend/main.c, init_sender.c cdsender.h)

o) Re-work readPLfile() (init_sender.c)

===================================
Changes in 1.0.4  14. November 2003
===================================

o) Rename .tbs files to .clf (Concise List of Frames) and add frame parsing
   code to .clf files (logfiles.c)

o) Add date and time to debug messages if configured with IMS=1
   (logging.[ch])

o) Move configuration and station structures to libcd include file
   (cd_common.h, cdrecv.h, cdrecv/main.c)

o) Move utility functions from CDreceiver to libcd (auth.[ch],
   monitor.c, cd_common.h)

o) Relaxed parsing of ARM keys. Parsing of ARM keys is now done case
   insensitive and spaces between DNAME fields are allowed (auth.c,
   misc.[ch])

o) Add commands for get global (GST=1) and detailed
   (GST=3,<station name>) station statistics (command.c)

o) Check command response trailer (control.c)

o) Use of common structures in CDsender (cdsend/main.c, sending.c, search.c,
   schedule.c, cdsender.h)

===================================
Changes in 1.0.3   31. October 2003
===================================

o) Log more information for Connection Request, Connection Response and
   Port Assignment frames to .txt files (cdrecv.h, logfiles.c, misc.[ch])

o) Log more Command Request/Response information to .txt files (logfiles.c)

o) Fix bug in connectWithTimeout() (misc.c)

o) Use connectWithTimeout() in CDsender (sending.c)

o) Fix some bugs in CDsender and rename configuration parameter filePath
   to cdsendFilePath and indexFilePath to cdrecvIndexFilePath (cdsend/main.c,
   cdsender.h, samples/config_sender.par)

o) Add function to log a structure with a given layout (misc.[ch])

o) Add functions which check, print and execute a command sent by a command
   request frame (frames.[ch], cd_common.[ch], command.[ch])

o) Add Command Response frame parsing function (frames.[ch])

o) Move more CDreceiver code and defines to CD library (init.c, cdrecv.h,
   cd_common.[ch], logfiles.c)

o) Continue work on CDcontrol. Send Command Request frames and parse Command
   Response frames (cdcontrol/main.c, control.c, control.h).

o) Process incoming Command Request frames (events.[ch], command.c, listen.c)

o) Add test cases for command request frames (cdsend.pl)

===================================
Changes in 1.0.2   17. October 2003
===================================

o) Start work on CD-control (cdcon/main.c, cdcon.h)

o) Move file permission code (eg. WRITE_WORLD_PRIV) from cdrecv/main.c
   to libcd/cd_common.c (cdrecv/main.c, cd_common.c, cd_common.h,
   cdrecv.h, cdsend/cdsender.h)

o) Replace stopReceiver() with more generic stopProgram() function.
   Move stopProgram() to cd_common.c (init.c, cdrecv/main.c,
   cd_common.c, cdrecv.h, logfiles.c)

o) Add check for pending user termination request to writeWithTimeout()
   (misc.c, misc.h, offline.c, listen.c, handling.c)

o) Add library function to set up Command Request Frame (frames.[ch])
   and function to set UTC timestamp (misc.[ch])

o) Add new library function connectWithTimeout (misc.[ch])

===================================
Changes in 1.0.1    3. October 2003
===================================

o) Include IP address and station name at begin of *each* txt file
   (event.[ch], logfiles.c)

o) Fix wrong directory permissions (main.c)

o) Re-name configuration parameter indexFilePath to cdrecvIndexFilePath
   and maxPosDeviation to maxFutureTime

o) Check if new certificates or ARM keys are available (certificate thread)
   on the local file system and load new certificates or ARM keys (init.c,
   keychecker.c, auth.c, auth.h)

o) Combine station and IP file in a new 'station' file (config.offline.par,
   config.par,station_file, cdrecv.h, init.c, listen.c, main.c, config.test)

===================================
Changes in 1.0.0     28 August 2003
===================================

o) Fix some compiler warnings and bugs in getarg.c (getarg.c)

o) Dump Hash value in verifyData() if debug level >= 99 (auth.c)

o) Renamed the configuration parameter realTimeWfdiscCreate to be

o) Log also detailed information for sent frames (logfiles.c)

o) Fix bug in signature verification of CD1.1 subframe data. Set
   transformation type to '0' when data is signed before canadian
   compression (handling.c)

o) Added text to the INSTALL file concerning the pthread library,
   unpacking the tar file, and added references to www.openssl.org
   and www.openldap.org.

o) Changed the point of contact address to services@ctbto.org

======================================
Changes in 0.7.3     14 July 2003 (JC)
======================================

o) Renamed the configuration parameter realTimeWfdiscCreate to be
   enableWfdiscFile. (main.c, samples/config.offline.par,
   samples/config.par) This name is more consistent with related
   parameter names.

o) Fix the handling of system errors in the handling thread. System
   errors should now be handled and reported correctly (handling.c)

o) Modified start.cdrecv so it should now work even if the program
   lsof cannot be found. Also reordered some variable declarations,
   so site specific variables come first (start.cdrecv)

o) Fixed some typos of the word "world".
   (cdrecv.h main.c offline.c)

===============================
Changes in 0.7.2     26/05/2003
===============================

o) Print number of currently connected and unconnected station in summary
   (monitor.c)

o) Allow more than one ARM directive (init.c)

o) Fix bug in loadLDAPkeys4Station(). Cache state was not set correct.
   (ldap.c)

o) Start work for certificate thread.  (cdrecv.h, main.c, Makefile.am)

o) Don't start certificate and monitor thread in offline mode (main.c)

o) Fix bug in readWithTimeout(). Check for pending user shutdown
   request regardless if an internal timeout (1000ms) has occurred or not.
   (misc.c)

o) Fix bug in readWithTimeout(). Check for timeout also in MSG_PEEK
   mode and data available condition (misc.c)

o) Set key cache time and build alternate key chain for
   alternate keys (auth.c)
   (Optimized for the old key naming schema!! New key naming
    schema should work too, but I expect it will be terrible slow)

o) Try alternate keys if first key does not verify correct(handling.c)

o) Stations with unknown type are not longer counted to CD1
   values. There is an own section now in the monitor thread
   output for unknown stations (monitor.c)

o) Fix invalid data verification if CD1.1 data have been signed
   after canadian compression

o) Fix nbr of samples check for compressed CD1.1 data (pad to a
   multiple of 20 if necessary) (frames.c, misc.h)

o) Raise a warning if signature verification is switched on and
   no keys are available (frame.h, events.c)

o) Fix verification of compressed CD1.1 data if number of samples is
   not a multiple of 20 (handling.c)

o) Fix wrong data offset in wfdisc records for all channels in the
   first frame after a file switch (cdrecv.h, wfdisc.c, handling.c,
   logfiles.c)

o) Log nominal time in tbs records also for data frames which are
   received with an error or warning (logfiles.c)

===============================
Changes in 0.7.1     17/04/2003
===============================

o) Fix bug: don't log previous frame in txt file when too short
   frame with valid header is received (-> timeout) (frame.h,
   handling.c, logfiles.c)

o) Add frame parsing codes 'invalid alert type' and 'frame not parsed complete'
   (frame.h, handling.c logfiles.c)

o) log PAF information to txt file (logfiles.c)

o) Add LDAP key cache primitive

o) Try to get certificates from LDAP first before using local certificates
   (listen.c, offline.c)

o) Add Frame info alert type to txt file (logfiles.c)

o) Use more compact syslog message (events.c)

o) Add "alternate certificate check algorithm" for certificates with
   special CN (eg. <site>-<number>)

o) Fix ldap.h related configure warning (configure.ac)

o) Fix well known port related file name if port number is higher 9999
   (listen.c)

o) Update build in defaults (main.c) and sample files

===============================
Changes in 0.7.0     28/03/2003
===============================

o) Rework acquireCD1..() as requested by JC (handling.c)

o) Set frame parsing code "Unknown frame Type" when receiving
   unknown frame (frame.h, handling.c, logfiles.c)

o) Rework frame parsing functions as requested by JC (frame.c)

o) Replace the "Bad" string in the txt file log messages with
   "with warning/error", e.g. "Data Frame received with warning/error"
   (logfiles.c)

o) Re-organize directory structure and build libcd (all Makefiles.am and
   some sources (main.c, init.[ch], inittables.[ch]), splint_hints.h)

o) New tools directory

o) Fix most of splint warnings in libcd (all .c and .h files in libcd)

o) Rename package to CDtools

o) Start work an LDAP topics (retrieve certificates from LDAP server)

===============================
Changes in 0.6.5     18/03/2003
===============================

o) Fix wrong channel authentication states when no certificate is
   found for the previous channel (handling.c)

o) Fix bug: don't check validity period check for ARM keys on CD1
   connections (ARM keys have no validity date) (auth.c)

o) Set correct channel authentication state if no keys available or station
   NONE directive (handling.c)

o) Add frame signature check state (handling.c, listen.c, logfiles.c,
   wfdisc.c)

o) Write more authentication states to wfdisc record (add skipped, NONE
   directive)(handling.c)

o) Change index file name and update cycle. Make creation of index file
   configurable(logfiles.c, main.c)

o) Call getprotobyname once instead on every connection request (misc.c)

o) Write clipped info to wfdisc record (wfdisc.c)

o) Add site/channel and key ID related NONE directives

o) Allow NONE directives for unsigned channels/frames

o) Log more detailed frame/channel signature check result (e.g.
   Failed (no sig))(events.c, frames.h, handling.c, listen.c,
   logfiles.c)

o) Check if global directive in key preload file is first global
   directive for this station (init.c)

===============================
Changes in 0.6.4      7/03/2003
===============================

o) Add authentication states "skipped" and "switched off" (offline.c,
   listen.c, handling.c, logfiles.c)

o) Include JC's comment (offline.c, listen.c)

o) Allow relative pathnames in config files (init.c, auth.c)

o) Fix bug in libparidc (max. name length (64 bytes) was not checked)
   (getpar.c)

o) Fix wrong frame authentication state when at least a channel
   authentication failed (handling.c)

o) Check if number of samples is a multiple of 20 when canadian
   compressed and if N times the data size when uncompressed (frames.c)

o) Check if channel is signed when channel authentication is
   switched on (handling.c, logfiles.c, frames.h)

o) Make verifyChannelData generic useable (handling.c, events.[ch],
   logfiles.c)

o) Fix bug in logDF(F)parsingEvents (only events in the first channel
   has been logged to syslog (event.c)

o) Write wfdisc also for "bad" data frames (e.g. authentication failure)
   (handling.c)

o) Set more channel values when an error in a channel occurs (this
   fix also an endless loop on Linux which has been causes by an
   uninitalizied pointer) (frames.c, logfiles.c)

o) Fix bugs in offline mode:
   The sender thread is too fast doing its work
   when sending only small files (handling thread is not connected;
   this could be only a Linux problem, see comment in the source)
   Handling thread has not shutdown when sending thread exiting
   (causes unnecessary error messages) (offline.c)

o)  Fix bug in offline mode when offline control file doesn't
    exist (offline.c)

o) Stop receiver if started under super user ID (security
   feature) (main.c)

o) Add userGroupPrivileges and worldPrivileges configuration parameter

===============================
Changes in 0.6.3     26/02/2003
===============================

o) Check directory prefix size and give warning if limit is reached.
   (logfiles.c)

o) Create log dirs many levels deep e. g.
   filePath=/dvl/ndc/NIAB/cdrecv/DATA/%y/%m/%d (main.c, logfiles.c)

o) Check during start up of receiver if a file could be written
   (logfiles.c)

o) Check available disc space during start-up (logfiles.c)

o) Add some checks to make shure that file path plus file name
   don't exceed internal buffer limits (logfiles.c)

o) Maintain list of created files in index file. The index file
   is located where config parameter  'indexFilePath' points to and
   is named _<listener port>.<standard date format>.idx
   strftime format characters are not allowed in the path
   (logfiles.c)

o) Make creation of binary files configurable in offline mode
   (main.c, logfiles.c)

o) Rework readConfigurationFile and dumpConfiguration. Build generic
   functions from these functions process....(), dump....() (main.c,
   init.c, init.h)

o) Add remote and local address information to extra info in .txt file
  (see SRS) (logfiles.c)

===============================
Changes in 0.6.2     18/02/2003
===============================

o) Fix warnings that occurs when complied with highest warning level
   (many files)

o) Fix core dump when check signature for uncompressed or "canadian
   before signing" data channels (handling.c, auth.c)

o) Fix bug in authentication check for CD1.1 channel data (occurs
   only when NBO and HBO are different) (handling.c)

o) Fix incorrect authentication state in .txt files for frames with
   a valid frame signature (handling.c)

o) Reduce messages to syslog if verboseEnabel is set to NO

o) Load key in offline mode if not pre-loaded

o) Decouple verboseEnable config parameter and text file detail. Text
   file detail is controlled now by config parameter enableTextFile.

o) Rename or extend configuration parameters (remove dataformatChecking,
   rename timeout to cd10Timeout and filesize to fileSize, add more
   values to enableTextFile {NO|YES|MORE|FULL}

o) Fix some logiScope complains (logfiles.c)

===============================
Changes in 0.6.1     07/02/2003
===============================

o) Fix bug that cause core dump when logging "can't cancel listener thread"
   (main.c)

o) Clean up main.c (move functions to other files)(main.c, misc.[ch], init.c)

o) Modify ARM loading algorythm. Now ARM files must be named <keyID>.arm
   and more than one ARM key can be loaded now (auth.c)

o) Add signature verification status for all received CD1.1 frames to .txt
   file (cdrecv.h, events.[ch], wfdisc.c, frame.[ch], listen.c,
   logfiles.c)

o) Add frame/channel parsing code for received frames to .txt file
   (cdrecv.h, events.[ch], wfdisc.c, frame.[ch], listen.c, logfiles.c)

o) Log subframe count and channel data size of CD1-1 frames in .txt files
   (logfiles.c)

o) Fix checks for "bad" frames. A frame becomes invalid if at least
   a warning occurs during parsing or authentication check (listen.c,
   handling.c).

o) Check for response from handling thread in offline mode (offline.c)

o) Set as much as possible frame values in the related structures before
   checking the values. This gives more information if parsing has to be
   stopped caused by an invalid value in the frame. (frames.c)

===============================
Changes in 0.6.0     31/01/2003
===============================

o) Change behavior when signature part dsig->r or dsig->s is smaller than 20
   bytes. It's not longer an internal error (auth.c)

o) Load ARM formatted keys (auth.[ch])

o) omit loading of local ARM keys if keyDirectory config parameter is empty
   (auth.c)

o) Rework basic functions to could be used also by a sender application
   (misc.[c,h], listen.c)

o) Load ARM keys with leading 00 values (auth.c)

o) Add log message when loading a key (auth.[ch], main.c)

o) Start work on offline mode (cdrecv.h, offline.c, logfiles.c, main.c,
   handling.c, wfdisc.c)

===============================
Changes in 0.5.5     13/01/2003
===============================

o) Change file type character in tbs file and add direction (events.[ch],
   logfiles.c)

o) Remember header structure of CD1.1 frames to avoid re-parsing when
   logging txt or tbs files (listen.c, handling.c, logfiles.c)

o) Fix bug in handleCD11(): authentication warnings were counted to
   connection request warnings (handling.c)

o) Rework getConnectionRequest (Gordanas comments)(listen.c)

o) Rework saveData (Gordanas comments)(logfiles.c)

o) Fix bug that values of station with a key cache directive is
   logged instead of the listener values in monitor thread when using
   at least one key cache directive (monitor.c, listen.c, cdrecv.h)

o) Fix bug that debugLevel is not loaded as first configuration parameter
   to have debug feature available in readConfigurationFile() (main.c,
   logging.h, cdrecv.h)

o) Rename some configuration parameter to have a common naming schema
   (Stephens comments) (main.c, sample files)

o) Fix bug that nbrOfThreads stopped is incorrect when Listener
   thread is canceled by the main thread (listen.c, main.c)

o) Fix bug that wrong frame destination is sent back sometimes in OSF and
   AF frames (handling.c)

o) Fix bug that the first read data is duplicated N times when reading in
   MSG_PEEK mode and requested bytes are not available at the socket
   when reading (misc.c)

o) Fix odd behavior that the listener thread starts a handling thread when
   a 'out of disc space' condition occurs during connection request.
   (listen.c)

o) Fix bug that thread ID of new handling thread is set to late (this
   could cause a thread which not releases its ressouces or which is
   not joined when a 'out of disc space' condition occurs). This bug
   has been found by inspection of the source code! (listen.c)

===============================
Changes in 0.5.4      9/12/2002
===============================

o) Check frame signature of CD1.1 connection request frames and sign
  outgoing frames (listen.c, events.[ch], auth.[ch])

o) Check signatures of CD1.1 frames and sign outgoing CD1.1
   frames (handling.c, events.[ch], auth.[ch])

o) Add private key ID to configuration parameters (main.c, cdrecv.h,
   frames.[ch])

o) Fix bug: print "Authentication size" for data channels only if frame
   is a CD1.1 data frame (logfiles.c)

o) Fix bug: log "Signature check: [N/A]" for unsigned channels if
   data frame has mixed signed and unsigned channels. (logfiles.c)

o) Fix compilation error in monitor.c when build with NO_AUTH=yes

===============================
Changes in 0.5.3      9/12/2002
===============================

o) Fix bug in ascDate2double(). ASCII date was converted using the local
   timezone instead of UTC (used for logging of ASCII dates in CD1.1 frames)
   (misc.c)

o) Fix format string for "Compression debug message" (e.g. "ca" instead
   of "ca;")(wfdisc.c)

o) Fix bug: canadian uncompress didn't work on a little endian architecture
  (Intel). The whole canadian compress code assumes that compression and
  decompression is done on the same architecture. It's not sure that this fix
  works if compression is done on little endian architecture. (canada.c,
  canadian_compress.h)

o) Add new log message "new gap created" and log this one instead
   "unexpected sequence number" if a new gap is created

o) Load local PEM keys in key cache using a cache directive or if
   station connects (main.c, monitor.c, listen.c, cdrecv.h, auth.c, auth.h)

o) Check signatures of CD1 data (listen.c, auth.c, frames.c)

o) Fix bug that a second "signature checked" message is logged if
   authentication is verified successfully (logfiles.c)

o) Add some authentication test cases (cdsend.pl)

o) Log first line of detailed station info also in non verbose mode
   (monitor.c)

===============================
Changes in 0.5.2     29/11/2002
===============================

o) log the status bits in human readable form (only in MORE_VERBOSE mode)
   (logfiles.c, frames.c, frames.h)

o) add re acquiring for CD1.1 frames (misc.c, handling.c)

o) Start to interpret the key preload file (still incomplete, only PEM
   or NONE with global directives are accepted) and load PEM
   keys (main.c, auth.c)

o) Use a build-in cdreceiver function to write wfdisc records (a GEOTOOL
   installation is not longer needed to compile the cdreceiver) (wfdisc.c)

o) Allow to configure and compile without OpenLDAP installed. In this
   case LDAP access is of the cdreceiver disabled. (main.c, configure.in)

o) Add NO_AUTH configuration parameter to configure script. If NO_AUTH is
   set, cdreceiver is build without authentication features, regardless
   if OpenSSL is installed or not. (configure.in)

o) Add NO_LDAP configuration parameter to configure script. If NO_LDAP is
   set, cdreceiver is build without LDAP access, regardless
   if OpenLDAP is installed or not. (configure.in)

o) Add USR_EXT configuration parameter to configure script. If USR_EXT is
   set, cdreceiver will call the function saveInUserFormat() on each
   received valid data frame. (configure.in, main.c, handling.c, wfdisc.c)

===============================
Changes in 0.5.1     12/11/2002
===============================

o) Fix bug which causes core dump when receiving signed connection request
  frame (listen.c, frames.h)

o) Fix bug in writeAckNackInfo if gap count becomes negative (logfiles.c)

o) Start work on authentication: Load private key (auth.c auth.h main.c
   cdrecv.h)

o) Improve .txt logfile (write more CD1.1 info like key ID's and status data)
   (logfiles.c)

o) Fix bug which causes wrong cdreceiver keyID is sent back to sender
   (listen.c, handling.c)

o) Log value from CD1.1 dataformat field instead of "ca" or "-"

o) Allow to configure and compile without OpenSSL installed. In this
   case all authentication features of the receiver are disabled.

===============================
Changes in 0.5.0     30/10/2002
===============================

o) Config file is now mandatory command line parameter (main.c)

o) Number of stations unconnected/connecting/waiting/connected is printed
   in summary (monitor.c)

o) Listener info is printed in summary now instead of printing it as a
  'real' station info and listener values are not longer added to
   CD1/CD1.1 station summary (monitor.c)

o) add check for 'could not save data' condition in listener
   thread (listen.c)

o) Stop receiver if data could not be saved (logfiles.c, main.c)

o) change binary file extensions to "10bin" and "11bin" (logfiles.c,
   handling.c)

o) Log more information for Option request/response and AckNack
   frames (logfiles.txt)

o) Send AckNack frames (misc.c, misc.h, handling.c, frames.c, events.c
   events.h)

o) Fix Bug in dumpConfiguration (mandatory string parameters were not
   dumped, main.c)

o) Move splint hints to an own (OS dependent) include file (splint_hints.h)

o) Fix bug that cause corrupted sending times of outgoing frames (logfiles.c
   cdrecv.h, listen.c, handling.c)

o) Add test case for sequence numbers and include a configuration file
   'config.test' in the test directory which should be used to configure
   the cd-receiver when running the test script

===============================
Changes in 0.4.11    15/10/2002
===============================

o) Change config parameter name file-prefix to file-path (main.c)

o) Put the whole cd11 tree in the repository (before only the cdrecv
   directory was in the repository)

o) Include JC's comments (frames.[ch], handling.c, logfiles.c, listen.c)

o) Fix Bug: print difference between time stamp in channel and nominal time
   in frame not difference between time stamp in channel and receiving time
   in .txt files (logfiles.c)

o) Use nanosleep() instead of sleep(). nanosleep requires the rt library
   on Solaris, so the configure script is also changed (listen.c)

o) check for snprintf bug in configure script

o) Log start and stop messages also to stdout (main.c)

o) Add check for i2/i4 CD-1.1 data type (events.[ch], frames.c)

o) Add check for 'could not save data' condition in handling
   threads (handling.c) (cd-receiver is *not* stopped yet when disc is full)

o) Fix possible bug while searching for a station object (listen.c).
   (comparison of station name didn't stop if \0 was found)

o) Fix bug in log2stdout(). Replaced \0 was not written back to
   output buffer (logging.c)

o) Start work for sending CD-1.1 AckNack frames (handling.c, frames.h)

===============================
Changes in 0.4.10    26/9/2002
===============================

o) log incoming frames to syslog only in MORE verbose mode

o) Add CR and station handling warning count to summary to see what
   has happen in non strict mode (one warning per invalid frame)

o) Fix wrong expected reaction output string in some test cases (cdsend.pl)

o) Enhance output of dumpConfiguration()

o) Fix bug (# of authentication failures was not written in station summary)

o) log connect and disconnect events in station txt files

o) Use wfdisc.h from GEOTOOL distribution instead of own one

o) remove some comments from configure.in

o) Accept s2/s3 data types in CD-1 data frames

o) Fix bug in 0.4.9 (wrong channel events displayed in logDF*parsingEvents)

o) Fix bug in findDataType(). In CD1 packet length is always divisible by 4, so
   datatype in wfdisc records was always s4

o) Fix PAD() bug. This bug have no effect in older releases (lengths were
   always divisible by 4 or 2 in all test frames).

o) Add datatype for CD-1 channels to txt file, too.

o) Add more test cases (s3 data, invalid packet length)

o) Log disconnect event to syslog

o) print warning if data is steim compressed

===============================
Changes in 0.4.9      24/9/2002
===============================

o) clean frame.c frame.h from receiver specific code. This allows easy use
   of frame parsing functions by other applications, but slow down receiver
   a little bit in non strict mode if many warnings are found during
   parsing.

o) print also number values from frame in addition to
   describing text in .txt file

o) print date in txt files also in human readable form

o) add responder and creator name type to config parameters

o) drop binout file code and fix bug (LOG_OUTGOING2BIN doesn't work correct)

o) change and fix some bugs in sample configuration file

o) Fix bug. Normal shutdown didn't work under LINUX if no debug output was
   written (non POSIX conform cancellation behavior)

o) Add CDreceiver version to startup message

=================
Changes in 0.4.8
=================

o) Add Virtual DFF to .txt and .tbs files

o) Improved shutdown code (normal shutdown on idle lines works
   fine now)

o) Included JC's comments (move functions to new files, rename functions,
   etc.)

o) Fix bug with wrong filenames in wfdisc records

o) Write receive time into lddate field of wfdisc record

o) Fix bug when handling thread could not initialize (e. g. n space left
   on device). Number of stopped threads has been decremented twice in this
   case (lead to "connections limit reached" error)

=================
Changes in 0.4.7
=================

** Bug fix release **

o) Fix bug that first data frame in bin file was not written to wfdisc file

o) Fix bug that calibration information (calib, calper) was not parsed correct

o) Don't display summary information if listener couldn't start up

=================
Changes in 0.4.6
=================

o) write wfdisc records for CD1.1

o) Write more output for CD1.1 frames in .txt file

o) More CD1.1 frame checks

o) display data of all, not only for the first, channels in .txt file

=================
Changes in 0.4.5
=================

o) Convert description to WinWord

o) Get PKCS#11 document (www.rsa.com)

o) give Warning if port is used from other connection

o) Check Station names if configured

o) change suffix of CD1.1 raw data files to .BIN

o) add option request frame to start CD1.1 tests

o) check sources on RED HAT

o) change unconnected filenames _U_<PORT> instead of __UNCONN

o) Add accurate start read time for .txt and .tbs file
