blob: 26ab722510c348ff2cbf9c0d3d292d20bb2ace1b [file] [log] [blame]
Alexander Afanasyev45312f52015-09-27 12:06:50 -07001ndn-cxx version 0.2.0
2---------------------
3
4Release date: August 25, 2014
5
6Changes since version 0.1.0:
7
8New features:
9^^^^^^^^^^^^^
10
11- **Base**
12
Davide Pesaventod776a932020-03-20 18:42:36 -040013 + The license under which the library is released is changed to the **GNU Lesser
14 General Public License version 3.0**
Alexander Afanasyev45312f52015-09-27 12:06:50 -070015
16 + New ways to use incoming Interest dispatching:
17
18 * New :ndn-cxx:`InterestFilter` abstraction that supports filtering based on name
19 prefixes and regular expressions.
20
Davide Pesaventod776a932020-03-20 18:42:36 -040021 * Separate ``Face::registerPrefix()`` and ``Face::setInterestFilter()`` methods
22 allow distinct operations of registering with the local NDN forwarder and setting
Alexander Afanasyev45312f52015-09-27 12:06:50 -070023 up application-specific ``OnInterest`` call dispatch using InterestFilters.
24
25 + Add support for new `NDN naming conventions
26 <http://named-data.net/doc/tech-memos/naming-conventions.pdf>`_ (:issue:`1761`)
27
28- **Security**
29
30 + Add ``type dir`` :ref:`trust-anchor in ValidatorConfig <validator-conf-trust-anchors>`
31 to add all certificates under the specified directory as trust anchors.
32 The new option also allow periodic reloading trust anchors, allowing dynamic trust
33 models.
34
susmitf47cef62018-02-13 12:01:14 -070035 + Added support for multiple signature types to ``PublicKey``, ``SecPublicInfo`` abstractions
Alexander Afanasyev45312f52015-09-27 12:06:50 -070036
37 + New :ndn-cxx:`SignatureSha256WithEcdsa` signature type
38
39 + Updates in :ndn-cxx:`Signature` data structure to reflect changes in `NDN-TLV spec
40 0.1.1 <http://named-data.net/doc/NDN-TLV/0.1.1/>`_
41
42- **Wire encoding**
43
Davide Pesaventod776a932020-03-20 18:42:36 -040044 + ``Data::getFullName()`` method to get the Data packet name including the implicit digest
Alexander Afanasyev45312f52015-09-27 12:06:50 -070045
Davide Pesaventod776a932020-03-20 18:42:36 -040046 + ``Name::getSuccessor()`` method to get name successor (:issue:`1677`)
Alexander Afanasyev45312f52015-09-27 12:06:50 -070047
48 + New in-wire refreshing of Interest's nonce (:issue:`1758`)
49
50- **Management**
51
Davide Pesaventod776a932020-03-20 18:42:36 -040052 + Support for :ndn-cxx:`ChannelStatus` and :ndn-cxx:`StrategyChoice` datasets
Alexander Afanasyev45312f52015-09-27 12:06:50 -070053
54 + Defining new common Route Origins for NFD RIB management protocol (:issue:`1719`)
55
Davide Pesaventod776a932020-03-20 18:42:36 -040056 + New ``RibEntry`` and ``Route`` data structures for RIB management protocol (:issue:`1764`)
Alexander Afanasyev45312f52015-09-27 12:06:50 -070057
Davide Pesaventod776a932020-03-20 18:42:36 -040058 + Add support for RIB flags in ``setInterestFilter()`` and ``registerPrefix()`` (:issue:`1842`)
Alexander Afanasyev45312f52015-09-27 12:06:50 -070059
60- **Miscellaneous tools**
61
62 + Introduce :ndn-cxx:`Scheduler::cancelAllEvents` to cancel all previously scheduled events
63 (:issue:`1757`)
64
susmitf47cef62018-02-13 12:01:14 -070065 + Introduce ``util::EventEmitter``, :ndn-cxx:`util::NotificationSubscriber`,
Alexander Afanasyev45312f52015-09-27 12:06:50 -070066 :ndn-cxx:`util::NotificationStream`, and :ndn-cxx:`nfd::FaceMonitor` utility classes
67
68 + Introduce :ndn-cxx:`util::SegmentFetcher` helper class to fetch multi-segmented data
69 (:issue:`1879`)
70
71- **Build**
72
Davide Pesaventod776a932020-03-20 18:42:36 -040073 + Enabled support of precompiled headers for clang and gcc compilers to speed up compilation
Alexander Afanasyev45312f52015-09-27 12:06:50 -070074
75Updates and bug fixes:
76^^^^^^^^^^^^^^^^^^^^^^
77
78- **Base**
79
80 + Serialization of socket write operations (:issue:`1707`)
81
82 + Enforcing limit on Interest and Data packet size in :ndn-cxx:`Face::expressInterest` and
83 :ndn-cxx:`Face::put` methods (:issue:`1774`)
84
85 + Cleaning up transport state on communication failure, so Face can try to reconnect
Davide Pesaventod776a932020-03-20 18:42:36 -040086 in the future
Alexander Afanasyev45312f52015-09-27 12:06:50 -070087
Davide Pesaventod776a932020-03-20 18:42:36 -040088 + Fix bug in ``Face::removePendingInterest`` (:issue:`1917`)
Alexander Afanasyev45312f52015-09-27 12:06:50 -070089
90- **Wire encoding**
91
Davide Pesaventod776a932020-03-20 18:42:36 -040092 + The Nonce field is now encoded as a 4-byte value, as defined by NDN-TLV spec
Alexander Afanasyev45312f52015-09-27 12:06:50 -070093
94 + Optimized Data packet signing
95
96 :ndn-cxx:`KeyChain::sign` method now pre-allocates :ndn-cxx:`EncodingBuffer`, requests
97 unsigned portion of :ndn-cxx:`Data` using ``Data::wireEncode(EncodingBuffer, true)``,
98 and then appends the resulting signature and prepends :ndn-cxx:`Data` packet header.
99 This way there is no extra memory allocation after :ndn-cxx:`Data` packet is signed.
100
101 + Optimized implicit digest calculation in :ndn-cxx:`Interest::matchesData` method
102 (:issue:`1769`)
103
104- **Management**
105
Davide Pesaventod776a932020-03-20 18:42:36 -0400106 + Add link-layer byte counts in ``FaceStatus`` data structure (:issue:`1765`)
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700107
108- **Security**
109
110 + Allow user to explicitly specify the cert name prefix before 'KEY' component in
111 ``ndnsec-certgen``
112
Davide Pesaventod776a932020-03-20 18:42:36 -0400113 + ``SignatureSha256`` has been renamed to :ndn-cxx:`DigestSha256` to conform to
114 `NDN-TLV specification <http://named-data.net/doc/ndn-tlv/>`_
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700115
Davide Pesaventod776a932020-03-20 18:42:36 -0400116 + Add checking of Timestamp and Nonce fields in signed Interest within
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700117 :ndn-cxx:`ValidatorConfig`
118
Davide Pesaventod776a932020-03-20 18:42:36 -0400119 + Allow validator customization using hooks.
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700120
121 Sub-classes of :ndn-cxx:`Validator` class can use the following hooks to fine-tune the
122 validation process:
123
Davide Pesaventod776a932020-03-20 18:42:36 -0400124 * ``preCertificateValidation`` to process received certificate before validation
susmitf47cef62018-02-13 12:01:14 -0700125 * ``onTimeout`` to process interest timeout
Davide Pesaventod776a932020-03-20 18:42:36 -0400126 * ``afterCheckPolicy`` to process validation requests
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700127
susmitf47cef62018-02-13 12:01:14 -0700128 + Fix memory issues in ``SecPublicInfoSqlite3``
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700129
130- **Miscellaneous tools**
131
132 + Redefine method for random number generation: ``random::generateWord*`` and
133 ``random::generateSecureWord*`` to generate cryptographically non-secure (fast) and
134 secure (slow) random numbers.
135
136- Other minor fixes and corrections
137
138Deprecated:
139^^^^^^^^^^^
140
141- ``SignatureSha256`` class, use :ndn-cxx:`DigestSha256` instead.
142
143- All :ndn-cxx:`Face` constructors that accept ``shared_ptr<io_service>``.
144
145 Use versions that accept reference to ``io_service`` object.
146
147- ``Face::ioService`` method, use :ndn-cxx:`Face::getIoService` instead.
148
149- :ndn-cxx:`Interest` constructor that accepts name, individual selectors, and individual
150 guiders as constructor parameters.
151
152 Use ``Interest().setX(...).setY(...)`` or use the overload taking ``Selectors``
153
154- ``name::Component::toEscapedString`` method, use :ndn-cxx:`name::Component::toUri` instead.
155
susmitf47cef62018-02-13 12:01:14 -0700156- ``SecPublicInfo::addPublicKey`` method, use ``SecPublicInfo::addKey`` instead.
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700157
158- ``Tlv::ConentType`` constant (typo), use ``Tlv::ContentType`` instead.
159
160- ``CommandInterestGenerator`` and ``CommandInterestValidator`` utility classes.
161 :ndn-cxx:`ValidatorConfig` should be used instead.
162
163Removed:
164^^^^^^^^
165
Davide Pesaventod776a932020-03-20 18:42:36 -0400166- Support for ndnd-tlv (only NFD management protocol is supported now)
Alexander Afanasyev45312f52015-09-27 12:06:50 -0700167
168- ``SecPublicInfoMemory`` and ``SecTpmMemory`` classes that were no longer used
169
170- Removing concept of periodic event from :ndn-cxx:`Scheduler`.
171
172 In applications, periodic events should be just re-scheduled within the callback for
173 single-shot events.