blob: 718a39bc07c7008e04422b36c9fbf6faebd05af0 [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
13 + The license under which the library is released is changed to **Lesser GNU Public
14 License version 3.0**.
15
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
21 * Separated :ndn-cxx:`Face::registerPrefix()` and :ndn-cxx:`Face::setInterestFilter()`
22 methods allow distinct operations of registering with the local NDN forwarder and setting
23 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
35 + Added support for multiple signature types to :ndn-cxx:`PublicKey`,
36 :ndn-cxx:`SecPublicInfo` abstractions
37
38 + New :ndn-cxx:`SignatureSha256WithEcdsa` signature type
39
40 + Updates in :ndn-cxx:`Signature` data structure to reflect changes in `NDN-TLV spec
41 0.1.1 <http://named-data.net/doc/NDN-TLV/0.1.1/>`_
42
43- **Wire encoding**
44
45 + :ndn-cxx:`Data::getFullName() <getFullName()>` method to get :ndn-cxx:`Data` packet
46 name with implicit digest
47
48 + New :ndn-cxx:`Name::getSuccessor()` method to get name successor (:issue:`1677`)
49
50 + New in-wire refreshing of Interest's nonce (:issue:`1758`)
51
52- **Management**
53
54 + Support for :ndn-cxx:`ChannelStatus`, :ndn-cxx:`StrategyChoice` datasets
55
56 + Defining new common Route Origins for NFD RIB management protocol (:issue:`1719`)
57
58 + New RibEntry and Route data structures for RIB management protocol (:issue:`1764`)
59
60 + Add support for RIB flags for setInterestFilter and registerPrefix (:issue:`1842`)
61
62- **Miscellaneous tools**
63
64 + Introduce :ndn-cxx:`Scheduler::cancelAllEvents` to cancel all previously scheduled events
65 (:issue:`1757`)
66
67 + Introduce :ndn-cxx:`util::EventEmitter`, :ndn-cxx:`util::NotificationSubscriber`,
68 :ndn-cxx:`util::NotificationStream`, and :ndn-cxx:`nfd::FaceMonitor` utility classes
69
70 + Introduce :ndn-cxx:`util::SegmentFetcher` helper class to fetch multi-segmented data
71 (:issue:`1879`)
72
73- **Build**
74
75 + enabled support of precompiled headers for clang and gcc compilers to speed up compilation
76
77Updates and bug fixes:
78^^^^^^^^^^^^^^^^^^^^^^
79
80- **Base**
81
82 + Serialization of socket write operations (:issue:`1707`)
83
84 + Enforcing limit on Interest and Data packet size in :ndn-cxx:`Face::expressInterest` and
85 :ndn-cxx:`Face::put` methods (:issue:`1774`)
86
87 + Cleaning up transport state on communication failure, so Face can try to reconnect
88 in the future.
89
90 + Fix bug with Face::removePendingInterest (:issue:`1917`)
91
92- **Wire encoding**
93
94 + Nonce field is now encoded as 4-byte uint8_t value, as defined by NDN-TLV spec.
95
96 + Optimized Data packet signing
97
98 :ndn-cxx:`KeyChain::sign` method now pre-allocates :ndn-cxx:`EncodingBuffer`, requests
99 unsigned portion of :ndn-cxx:`Data` using ``Data::wireEncode(EncodingBuffer, true)``,
100 and then appends the resulting signature and prepends :ndn-cxx:`Data` packet header.
101 This way there is no extra memory allocation after :ndn-cxx:`Data` packet is signed.
102
103 + Optimized implicit digest calculation in :ndn-cxx:`Interest::matchesData` method
104 (:issue:`1769`)
105
106- **Management**
107
108 + Add link-layer byte counts in FaceStatus data structure (:issue:`1765`)
109
110- **Security**
111
112 + Allow user to explicitly specify the cert name prefix before 'KEY' component in
113 ``ndnsec-certgen``
114
115 + ``SignatureSha256`` has been renamed to :ndn-cxx:`DigestSha256` to conform with
116 `NDN-TLV specification <http://named-data.net/doc/ndn-tlv/>`_.
117
118 + Add checking of ``Timestamp`` and ``Nonce`` fields in signed Interest within
119 :ndn-cxx:`ValidatorConfig`
120
121 + Allow validator customization using hooks:
122
123 Sub-classes of :ndn-cxx:`Validator` class can use the following hooks to fine-tune the
124 validation process:
125
126 * :ndn-cxx:`Validator::preCertificateValidation <preCertificateValidation>` to
127 process received certificate before validation.
128 * :ndn-cxx:`Validator::onTimeout <onTimeout>` to process interest timeout
129 * :ndn-cxx:`Validator::afterCheckPolicy <afterCheckPolicy>` to process validation requests.
130
131 + Fix memory issues in :ndn-cxx:`SecPublicInfoSqlite3`
132
133- **Miscellaneous tools**
134
135 + Redefine method for random number generation: ``random::generateWord*`` and
136 ``random::generateSecureWord*`` to generate cryptographically non-secure (fast) and
137 secure (slow) random numbers.
138
139- Other minor fixes and corrections
140
141Deprecated:
142^^^^^^^^^^^
143
144- ``SignatureSha256`` class, use :ndn-cxx:`DigestSha256` instead.
145
146- All :ndn-cxx:`Face` constructors that accept ``shared_ptr<io_service>``.
147
148 Use versions that accept reference to ``io_service`` object.
149
150- ``Face::ioService`` method, use :ndn-cxx:`Face::getIoService` instead.
151
152- :ndn-cxx:`Interest` constructor that accepts name, individual selectors, and individual
153 guiders as constructor parameters.
154
155 Use ``Interest().setX(...).setY(...)`` or use the overload taking ``Selectors``
156
157- ``name::Component::toEscapedString`` method, use :ndn-cxx:`name::Component::toUri` instead.
158
159- ``SecPublicInfo::addPublicKey`` method, use :ndn-cxx:`SecPublicInfo::addKey` instead.
160
161- ``Tlv::ConentType`` constant (typo), use ``Tlv::ContentType`` instead.
162
163- ``CommandInterestGenerator`` and ``CommandInterestValidator`` utility classes.
164 :ndn-cxx:`ValidatorConfig` should be used instead.
165
166Removed:
167^^^^^^^^
168
169- support of ndnd-tlv (only NFD management protocol is supported now)
170
171- ``SecPublicInfoMemory`` and ``SecTpmMemory`` classes that were no longer used
172
173- Removing concept of periodic event from :ndn-cxx:`Scheduler`.
174
175 In applications, periodic events should be just re-scheduled within the callback for
176 single-shot events.