Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 1 | ndn-cxx version 0.2.0 |
| 2 | --------------------- |
| 3 | |
| 4 | Release date: August 25, 2014 |
| 5 | |
| 6 | Changes since version 0.1.0: |
| 7 | |
| 8 | New features: |
| 9 | ^^^^^^^^^^^^^ |
| 10 | |
| 11 | - **Base** |
| 12 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 13 | + The license under which the library is released is changed to the **GNU Lesser |
| 14 | General Public License version 3.0** |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 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 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 21 | * Separate ``Face::registerPrefix()`` and ``Face::setInterestFilter()`` methods |
| 22 | allow distinct operations of registering with the local NDN forwarder and setting |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 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 | |
susmit | f47cef6 | 2018-02-13 12:01:14 -0700 | [diff] [blame] | 35 | + Added support for multiple signature types to ``PublicKey``, ``SecPublicInfo`` abstractions |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 36 | |
| 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 Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 44 | + ``Data::getFullName()`` method to get the Data packet name including the implicit digest |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 45 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 46 | + ``Name::getSuccessor()`` method to get name successor (:issue:`1677`) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 47 | |
| 48 | + New in-wire refreshing of Interest's nonce (:issue:`1758`) |
| 49 | |
| 50 | - **Management** |
| 51 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 52 | + Support for :ndn-cxx:`ChannelStatus` and :ndn-cxx:`StrategyChoice` datasets |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 53 | |
| 54 | + Defining new common Route Origins for NFD RIB management protocol (:issue:`1719`) |
| 55 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 56 | + New ``RibEntry`` and ``Route`` data structures for RIB management protocol (:issue:`1764`) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 57 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 58 | + Add support for RIB flags in ``setInterestFilter()`` and ``registerPrefix()`` (:issue:`1842`) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 59 | |
| 60 | - **Miscellaneous tools** |
| 61 | |
| 62 | + Introduce :ndn-cxx:`Scheduler::cancelAllEvents` to cancel all previously scheduled events |
| 63 | (:issue:`1757`) |
| 64 | |
susmit | f47cef6 | 2018-02-13 12:01:14 -0700 | [diff] [blame] | 65 | + Introduce ``util::EventEmitter``, :ndn-cxx:`util::NotificationSubscriber`, |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 66 | :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 Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 73 | + Enabled support of precompiled headers for clang and gcc compilers to speed up compilation |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 74 | |
| 75 | Updates 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 Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 86 | in the future |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 87 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 88 | + Fix bug in ``Face::removePendingInterest`` (:issue:`1917`) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 89 | |
| 90 | - **Wire encoding** |
| 91 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 92 | + The Nonce field is now encoded as a 4-byte value, as defined by NDN-TLV spec |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 93 | |
| 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 Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 106 | + Add link-layer byte counts in ``FaceStatus`` data structure (:issue:`1765`) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 107 | |
| 108 | - **Security** |
| 109 | |
| 110 | + Allow user to explicitly specify the cert name prefix before 'KEY' component in |
| 111 | ``ndnsec-certgen`` |
| 112 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 113 | + ``SignatureSha256`` has been renamed to :ndn-cxx:`DigestSha256` to conform to |
| 114 | `NDN-TLV specification <http://named-data.net/doc/ndn-tlv/>`_ |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 115 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 116 | + Add checking of Timestamp and Nonce fields in signed Interest within |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 117 | :ndn-cxx:`ValidatorConfig` |
| 118 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 119 | + Allow validator customization using hooks. |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 120 | |
| 121 | Sub-classes of :ndn-cxx:`Validator` class can use the following hooks to fine-tune the |
| 122 | validation process: |
| 123 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 124 | * ``preCertificateValidation`` to process received certificate before validation |
susmit | f47cef6 | 2018-02-13 12:01:14 -0700 | [diff] [blame] | 125 | * ``onTimeout`` to process interest timeout |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 126 | * ``afterCheckPolicy`` to process validation requests |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 127 | |
susmit | f47cef6 | 2018-02-13 12:01:14 -0700 | [diff] [blame] | 128 | + Fix memory issues in ``SecPublicInfoSqlite3`` |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 129 | |
| 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 | |
| 138 | Deprecated: |
| 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 | |
susmit | f47cef6 | 2018-02-13 12:01:14 -0700 | [diff] [blame] | 156 | - ``SecPublicInfo::addPublicKey`` method, use ``SecPublicInfo::addKey`` instead. |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 157 | |
| 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 | |
| 163 | Removed: |
| 164 | ^^^^^^^^ |
| 165 | |
Davide Pesavento | d776a93 | 2020-03-20 18:42:36 -0400 | [diff] [blame] | 166 | - Support for ndnd-tlv (only NFD management protocol is supported now) |
Alexander Afanasyev | 45312f5 | 2015-09-27 12:06:50 -0700 | [diff] [blame] | 167 | |
| 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. |