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