blob: 6c7b33a8696e50f1951a73408236f75ddd56d344 [file] [log] [blame]
Alexander Afanasyevd36dd552014-06-30 12:42:46 -07001.. _Release Notes:
Alexander Afanasyevabaab522014-04-30 20:42:11 -07002
Alexander Afanasyevd36dd552014-06-30 12:42:46 -07003ndn-cxx Release Notes
4---------------------
5
Alexander Afanasyev5946ed12015-01-19 23:41:39 -08006ndn-cxx v0.3.0 (changes since version 0.2.0)
7++++++++++++++++++++++++++++++++++++++++++++
8
9Release date: February 2, 2015
10
11New features:
12^^^^^^^^^^^^^
13
14- **Build**
15
16 + The code now requires C++11. The minimum supported gcc version is 4.6, as earlier versions
17 do not have proper support for C++11 features.
18
19- **Base**
20
21 + Enable detailed version information when built from shallow clone or tarball
22 (:issue:`1915`)
23
24 + Make default transport configurable (:issue:`2189`)
25
26 + Add ability to do partial Name comparison (:issue:`2090`)
27
28- **Security**
29
30 + Add support for KeyDigest key locator (:issue:`1426`)
31
32 + Add a method to get KeyDigest from a PublicKey instance (:issue:`1964`)
33
34 + Add support for KeyChain to sign Interest using SHA256 digest (:issue:`2218`)
35
36 + Add ``ndnsec-dsk-gen`` tool to generate a pair of Data-Signing-Key (DSK) for the specified
37 identity (:issue:`2246`)
38
39 + Pair-up PIB and TPM in KeyChain: PIB remembers the last used TPM type/location, which is
40 used during KeyChain construction (unless overriden) (:issue:`2242`)
41
42- **Wire encoding**
43
44 + Add support for application-defined meta information blocks (:issue:`2021`)
45
46 + Introduce new ``name::Component::is*`` methods to allow checking if the name component
47 follows the specific naming convention without relying on the exception handling
48 (:issue:`2088`)
49
50 + Add definition of producer-generated NACK (:issue:`2111`)
51
52 + Add ``std::hash<Name>`` specialization to support ``unordered_map`` container
53 (:issue:`2147`)
54
55 + Add support for ImplicitSha256DigestComponent (:issue:`1640`)
56
57 + Allow tagging Interest and Data packets with arbitrary information (:issue:`2336`)
58
59- **Management**
60
61 + Support NFD face query operation (:issue:`2085`)
62
63- **Miscellaneous tools**
64
65 + Add a new helper to calculate digests over dynamic inputs (:issue:`1934`)
66
67 + Add DNS resolver helper (:issue:`1918`)
68
69 + Import and re-license Ethernet and FaceUri classes from NFD codebase, add FaceUri
70 canonization support for ``udp``, ``tcp``, and ``ether`` schemas (:issue:`1994`)
71
72 + Add per-application in-memory storage with LRU, LFU, and FIFO replacement policies
73 (:issue:`1940`)
74
75 + Add ability to specialize system and steady clocks (e.g., for unit tests and simulation
76 purposes) (:issue:`2158`)
77
78 + Expose DummyClientFace as public API
79
80 + New IndentedStream helper class to simplify writing to streams with the specified indents
81 or prefixes (:issue:`2238`)
82
83 + New Signal class template as an enhanced version of the deprecated EventEmitter
84 (:issue:`2279`)
85
86 + New scheduler::ScopedEventId helper to automatically cancel scheduled events upon
87 destruction (:issue:`2442`)
88
89 + New NetworkMonitor helper to detect network state changes (:issue:`2443`)
90
91Updates and bug fixes:
92^^^^^^^^^^^^^^^^^^^^^^
93
94- **Base**
95
96 + Prevent flags being set for rib/unregister command (:issue:`1945`)
97
98 + Fix segfault caused by Face::unregisterPrefix when registeredPrefixId does not exist
99
100 + Add explicit internal KeyChain to Face class. KeyChain previously existed in the Face as
101 part of NFD controller class. (:issue:`2039`)
102
103 + Properly disable assertions in release builds (:issue:`2135`)
104
105 + Connect to Transport during construction of Face instance (:issue:`2318`)
106
107- **Wire encoding**
108
109 + Fix segfault when decoding empty Exclude element (:issue:`1970`)
110
111 + Provide EqualityComparable concept for Exclude element
112
113 + Correct Marker in Name::appendVersion() (:issue:`2086`)
114
115 + Ensure that wire-encoding errors are inherited from ``tlv::Error`` (:issue:`1983`)
116
117- **Management**
118
119 + Replace FaceFlags with individual fields in face management data structures (:issue:`1992`)
120
121 + ``ndn::nfd::Controller`` extended to allow generating ControlCommand for remote prefix
122 registration (:issue:`2039`)
123
124 + Change ``ForwarderStatus.NfdVersion`` to string (:issue:`2003`)
125
126- **Security**
127
128 + Fix ``ndnsec-cert-gen`` to correctly infer prefix before KEY component (:issue:`2052`)
129
130 + Help message corrections in ``ndnsec-cert-dump``, ``ndnsec-cert-gen``, and
131 ``ndnsec-key-gen`` (:issue:`2052`)
132
133 + Accept ``--sign-id`` and ``--cert-prefix`` in ``ndnsec-cert-revoke`` (:issue:`2058`)
134
135 + Changes output format of ``ndnsec-cert-revoke`` to base64 encoding (:issue:`2059`)
136
137 + Add a new (safer) option to ``ndnsec-cert-gen`` allowing inclusion of additional
138 information blocks into the certificate. The new ``--signed-info`` parameter makes minimum
139 assumptions, treating text before first space as OID and the rest as the associated string
140 with this OID.
141
142 + Make Face optional in Validator class (:issue:`2124`)
143
144 + Display signature information when printing a certificate (:issue:`2196`)
145
146 + Handle certificate decoding error in validation process (:issue:`2212`)
147
148 + Fix segmentation fault in ``ndnsec-sign-req`` (:issue:`2211`)
149
150 + Allow verbose option in ``ndnsec-list`` (:issue:`2197`)
151
152 + Allow generation of DSK using ``ndnsec-key-gen`` (:issue:`2247`)
153
154 + Allow ``ndnsec-key-gen`` to generate ECDSA keys (:issue:`2248`)
155
156 + Fix memory leak in SecPublicInfoSqlite3 (:issue:`2253`)
157
158 + Properly report status of ``ndnsec-delete`` execution (:issue:`2275`)
159
160- **Miscellaneous tools**
161
162 + Fix incorrect tag map in ``tlvdump`` tool
163
164 + Change to default resolver behavior in util::dns::Resolver (:issue:`2415`)
165
166- **Documentation**
167
168 + Update of tutorials and installation instructions
169
170 + Rename manpage of ``client.conf`` to ``ndn-client.conf`` (:issue:`1967`)
171
172 + Updated and extended ndn-cxx code style:
173
174 - add rules for some C++11 constructs
175 - prefer ``BOOST_ASSERT`` and ``static_assert``
176
177 + Improve example applications (:issue:`1976`)
178
179- **Tests**
180
181 + Improve security unit test cases (:issue:`1683`)
182
183 + Embedding CI build and test running scripts into the repository
184
185 + Partial unit test coverage for Face class (previously covered only by integration tests)
186 (:issue:`1947`)
187
188 + Improve stability of unit tests by using UnitTestTime (wall clock independent time)
189 (:issue:`2152`)
190
191- **Build**
192
193 + Redesign the way default compiler flags are determined (:issue:`2209`)
194
195 + Support tools and examples with multiple translation units (:issue:`2344`)
196
197 + Disable installation of internal headers and headers of the disabled components
198 (:issue:`2266`, and :issue:`2269`)
199
200 + Enable conditional compilation based on presence of ``getpass()`` function
201
202- Other minor fixes and corrections
203
204Deprecated:
205^^^^^^^^^^^
206
207- ``ndn::ptr_lib`` and ``ndn::func_lib`` namespace aliases
208
209- The following ``nfd::Controller`` methods:
210
211 + ``Controller::start`` overloads, except the overload taking ``CommandOptions``
212 + ``Controller::Sign`` typedef
213 + ``Controller::getDefaultCommandTimeout``
214 + ``ControlCommand::getPrefix``
215 + ``ControlCommand::getRequestName(ControlParameters)``
216 + ``Controller::Controller(Face&)``
217
218- ``MetaInfo::TYPE_*`` constants
219
220- ``EventEmitter`` is deprecated in favor of ``Signal``
221
222Removed:
223^^^^^^^^
224
225- FaceFlags APIs (:issue:`1992`)
226
227- ``ControlCommand::makeCommandInterest`` (:issue:`2008`)
228
229- namespace ``ndn::Tlv`` (:issue:`2079`)
230
231- ``shared_ptr<io_service>`` constructor and getter in Face class
232
233- ``tlv::ConentType`` (typo in the name)
234
235- ``Selectors::Selectors(int, int, Exclude, int, bool)`` constructor
236
237- ``Interest::Interest(Name, int, int, Exclude, int, bool, int, time::milliseconds, uint32_t)``
238 constructor
239
240- ``signature-sha256.hpp`` file
241
242- unused ``encryption-manager.hpp`` file
243
244- unused ``openssl`` dependency
245
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700246ndn-cxx v0.2.0 (changes since version 0.1.0)
247++++++++++++++++++++++++++++++++++++++++++++
248
249Release date: August 25, 2014
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700250
251New features:
252^^^^^^^^^^^^^
253
254- **Base**
255
256 + The license under which the library is released is changed to **Lesser GNU Public
257 License version 3.0**.
258
259 + New ways to use incoming Interest dispatching:
260
261 * New :ndn-cxx:`InterestFilter` abstraction that supports filtering based on name
262 prefixes and regular expressions.
263
264 * Separated :ndn-cxx:`Face::registerPrefix()` and :ndn-cxx:`Face::setInterestFilter()`
265 methods allow distinct operations of registering with the local NDN forwarder and setting
266 up application-specific ``OnInterest`` call dispatch using InterestFilters.
267
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700268 + Add support for new `NDN naming conventions
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800269 <http://named-data.net/doc/tech-memos/naming-conventions.pdf>`_ (:issue:`1761`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700270
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700271- **Security**
272
273 + Add ``type dir`` :ref:`trust-anchor in ValidatorConfig <validator-conf-trust-anchors>`
274 to add all certificates under the specified directory as trust anchors.
275 The new option also allow periodic reloading trust anchors, allowing dynamic trust
276 models.
277
278 + Added support for multiple signature types to :ndn-cxx:`PublicKey`,
279 :ndn-cxx:`SecPublicInfo` abstractions
280
281 + New :ndn-cxx:`SignatureSha256WithEcdsa` signature type
282
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700283 + Updates in :ndn-cxx:`Signature` data structure to reflect changes in `NDN-TLV spec
284 0.1.1 <http://named-data.net/doc/NDN-TLV/0.1.1/>`_
285
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700286- **Wire encoding**
287
288 + :ndn-cxx:`Data::getFullName() <getFullName()>` method to get :ndn-cxx:`Data` packet
289 name with implicit digest
290
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800291 + New :ndn-cxx:`Name::getSuccessor()` method to get name successor (:issue:`1677`)
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700292
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800293 + New in-wire refreshing of Interest's nonce (:issue:`1758`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700294
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700295- **Management**
296
297 + Support for :ndn-cxx:`ChannelStatus`, :ndn-cxx:`StrategyChoice` datasets
298
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800299 + Defining new common Route Origins for NFD RIB management protocol (:issue:`1719`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700300
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800301 + New RibEntry and Route data structures for RIB management protocol (:issue:`1764`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700302
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800303 + Add support for RIB flags for setInterestFilter and registerPrefix (:issue:`1842`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700304
305- **Miscellaneous tools**
306
307 + Introduce :ndn-cxx:`Scheduler::cancelAllEvents` to cancel all previously scheduled events
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800308 (:issue:`1757`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700309
310 + Introduce :ndn-cxx:`util::EventEmitter`, :ndn-cxx:`util::NotificationSubscriber`,
311 :ndn-cxx:`util::NotificationStream`, and :ndn-cxx:`nfd::FaceMonitor` utility classes
312
313 + Introduce :ndn-cxx:`util::SegmentFetcher` helper class to fetch multi-segmented data
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800314 (:issue:`1879`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700315
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700316- **Build**
317
318 + enabled support of precompiled headers for clang and gcc compilers to speed up compilation
319
320Updates and bug fixes:
321^^^^^^^^^^^^^^^^^^^^^^
322
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700323- **Base**
324
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800325 + Serialization of socket write operations (:issue:`1707`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700326
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800327 + Enforcing limit on Interest and Data packet size in :ndn-cxx:`Face::expressInterest` and
328 :ndn-cxx:`Face::put` methods (:issue:`1774`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700329
330 + Cleaning up transport state on communication failure, so Face can try to reconnect
331 in the future.
332
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800333 + Fix bug with Face::removePendingInterest (:issue:`1917`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700334
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700335- **Wire encoding**
336
337 + Nonce field is now encoded as 4-byte uint8_t value, as defined by NDN-TLV spec.
338
339 + Optimized Data packet signing
340
341 :ndn-cxx:`KeyChain::sign` method now pre-allocates :ndn-cxx:`EncodingBuffer`, requests
342 unsigned portion of :ndn-cxx:`Data` using ``Data::wireEncode(EncodingBuffer, true)``,
343 and then appends the resulting signature and prepends :ndn-cxx:`Data` packet header.
344 This way there is no extra memory allocation after :ndn-cxx:`Data` packet is signed.
345
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700346 + Optimized implicit digest calculation in :ndn-cxx:`Interest::matchesData` method
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800347 (:issue:`1769`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700348
349- **Management**
350
Alexander Afanasyev5946ed12015-01-19 23:41:39 -0800351 + Add link-layer byte counts in FaceStatus data structure (:issue:`1765`)
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700352
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700353- **Security**
354
355 + Allow user to explicitly specify the cert name prefix before 'KEY' component in
356 ``ndnsec-certgen``
357
358 + ``SignatureSha256`` has been renamed to :ndn-cxx:`DigestSha256` to conform with
359 `NDN-TLV specification <http://named-data.net/doc/ndn-tlv/>`_.
360
361 + Add checking of ``Timestamp`` and ``Nonce`` fields in signed Interest within
362 :ndn-cxx:`ValidatorConfig`
363
364 + Allow validator customization using hooks:
365
366 Sub-classes of :ndn-cxx:`Validator` class can use the following hooks to fine-tune the
367 validation process:
368
369 * :ndn-cxx:`Validator::preCertificateValidation <preCertificateValidation>` to
370 process received certificate before validation.
371 * :ndn-cxx:`Validator::onTimeout <onTimeout>` to process interest timeout
372 * :ndn-cxx:`Validator::afterCheckPolicy <afterCheckPolicy>` to process validation requests.
373
Yingdi Yu4e99f532014-08-25 19:40:57 -0700374 + Fix memory issues in :ndn-cxx:`SecPublicInfoSqlite3`
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700375
376- **Miscellaneous tools**
377
378 + Redefine method for random number generation: ``random::generateWord*`` and
379 ``random::generateSecureWord*`` to generate cryptographically non-secure (fast) and
380 secure (slow) random numbers.
381
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700382- Other minor fixes and corrections
383
384Deprecated:
385^^^^^^^^^^^
386
387- ``SignatureSha256`` class, use :ndn-cxx:`DigestSha256` instead.
388
389- All :ndn-cxx:`Face` constructors that accept ``shared_ptr<io_service>``.
390
391 Use versions that accept reference to ``io_service`` object.
392
393- ``Face::ioService`` method, use :ndn-cxx:`Face::getIoService` instead.
394
395- :ndn-cxx:`Interest` constructor that accepts name, individual selectors, and individual
396 guiders as constructor parameters.
397
398 Use ``Interest().setX(...).setY(...)`` or use the overload taking ``Selectors``
399
400- ``name::Component::toEscapedString`` method, use :ndn-cxx:`name::Component::toUri` instead.
401
402- ``SecPublicInfo::addPublicKey`` method, use :ndn-cxx:`SecPublicInfo::addKey` instead.
403
404- ``Tlv::ConentType`` constant (typo), use ``Tlv::ContentType`` instead.
405
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700406- ``CommandInterestGenerator`` and ``CommandInterestValidator`` utility classes.
407 :ndn-cxx:`ValidatorConfig` should be used instead.
408
Alexander Afanasyevd36dd552014-06-30 12:42:46 -0700409Removed:
410^^^^^^^^
411
412- support of ndnd-tlv (only NFD management protocol is supported now)
413
414- ``SecPublicInfoMemory`` and ``SecTpmMemory`` classes that were no longer used
415
416- Removing concept of periodic event from :ndn-cxx:`Scheduler`.
417
418 In applications, periodic events should be just re-scheduled within the callback for
419 single-shot events.
420
421
422
423ndn-cxx v0.1.0
424++++++++++++++
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700425
Alexander Afanasyevec0499f2014-07-30 12:11:01 -0700426Release date: May 7, 2014
427
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700428Version 0.1.0 is the initial release of ndn-cxx, an NDN C++ library with eXperimental
429eXtensions.
430
431Originally based on `ndn-cpp library <https://github.com/named-data/ndn-cpp>`_ the ndn-cxx
Lixia Zhangc5fdfe72014-04-30 09:33:43 -0700432library adopts a slightly different design philosophy (including an extensive use of Boost
433libraries to facilitate development, as well as the use of Crypto++ library to support
434cryptographic operations), and includes a number of extensions that aim to simplify NDN
435application development.
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700436
437The current features include:
438
439- **Base**
440
Lixia Zhangc5fdfe72014-04-30 09:33:43 -0700441 + Fully asynchronous, event-driven communication model, which is implemented using `Boost.Asio
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700442 <http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio.html>`_
443 + Single-threaded, but thread-safe Face operations
444
445 A single Face object can be safely used in multiple threads to express Interests and
446 publish Data packets
447
448 + Explicit time management for NDN operations using `Boost.Chrono
449 <http://www.boost.org/doc/libs/1_48_0/doc/html/chrono.html>`_
450 + Simplified and extended `NDN API <doxygen/annotated.html>`_
451 + Extensive set of unit-tests based on `Boost.Test framework
452 <http://www.boost.org/doc/libs/1_48_0/libs/test/doc/html/index.html>`_
453
454 - Continuous integration using an in-house installation of Jenkins build bots and the
Lixia Zhangc5fdfe72014-04-30 09:33:43 -0700455 hosted `Travis CI <https://travis-ci.org/named-data/ndn-cxx>`_ continuous
456 integration service compile and verify correctness of the library for each commit
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700457
458- **Wire format**
459
460 + Full support of `NDN-TLV packet format v0.1 <http://named-data.net/doc/NDN-TLV/0.1/>`_
461 + Pure C++ implementation of wire encoding/decoding with simple access to wire format
462 of all NDN packet abstractions via ``wireEncode`` and ``wireDecode`` methods
463
464 In many cases, NDN packet abstractions are just "indices" to the wire format
465
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700466- **Communication with the forwarder**
467
468 + Enable connecting to local forwarder via UNIX and TCP transports and to remote
469 forwarders using TCP transport
470 + Full support for communication with `Named Data Networking Forwarding Daemon (NFD)
471 <https://github.com/named-data/NFD>`_
472
473 - Full support for `NFD management protocols
474 <http://redmine.named-data.net/projects/nfd/wiki/Management>`_ to NFD status
475 information, create and manage NFD Faces, receive NFD Face status change
476 notifications, update StrategyChoice for namespaces, and manage routes in RIB
477 - Support for `LocalControlHeader
478 <http://redmine.named-data.net/projects/nfd/wiki/LocalControlHeader>`_ to implement
479 special NDN applications that need low-level control of NDN packet forwarding
480
Lixia Zhangc5fdfe72014-04-30 09:33:43 -0700481- **Security support**
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700482
Lixia Zhangc5fdfe72014-04-30 09:33:43 -0700483 + A set of security primitives to allowing implementation of secure NDN applications in
484 a simplified manner
Alexander Afanasyevc5452c52014-04-29 17:21:51 -0700485
486 - **KeyChain**: provides simple interfaces of packet signing, and key and certificate
487 management
488 - **ValidatorConfig**: validator that implements trust model defined in a configuration
489 file
490 - **CommandInterestGenerator** and **CommandInterestValidator**: convenient helpers to produce
491 and validate command interests, while preventing potential replay attacks
492
493 + Several implementations of trusted platform modules to securely manage private keys
494
495 - **SecTpmOsx**: TPM based on OSX KeyChain (OSX-specific)
496 - **SecTpmFile**: TPM that uses file-based access control to protect keys (cross-platform)
497
498 + Extensive set of security command-line tools to manage security identities and certificates
499
500 - Generating private/public keys
501 - Issuing certificates
502 - Exporting/importing identities
503 - Managing default security settings
504
505- **Miscellaneous tools**
506
507 + Scheduler to support delayed time operations
508 + NDN regular expressions
509 + Simple config file to alter various aspects of the library
510 + **tlvdump**: a simple tool to visualize TLV-encoded blocks