Davide Pesavento
03fdfb17a1
build: enable a few more compiler warnings
...
Refactor default-compiler-flags.py to reduce duplication
Change-Id: I059d4857ea6744ac791592c50d41a6ef8b8d60cc
2023-08-18 18:55:54 -04:00
Davide Pesavento
747cb45c16
util: add deprecated attribute to aliases documented as such
...
Change-Id: I334f0c3e072f773260d96f9cfe8f6029c256c41a
2023-08-16 14:44:46 -04:00
Davide Pesavento
9404892918
interest: improve code readability
...
And add more tests for decoding of malformed ForwardingHint
Change-Id: Ie7b043911769a0952300aa412fe7dbb893a464aa
2023-08-11 22:10:08 -04:00
Junxiao Shi
382de67df8
net: make FaceUri usable as container key
...
refs #4227
Change-Id: I4389fe6691ab2499c73e6ed83d4090b77fdbafca
2023-08-11 18:17:10 +00:00
Alexander Afanasyev
0af48fb516
interest: Match data to Interest regardless of FreshnessPeriod/MustBeFresh
...
When Data is received from the wire it should match Interest with
MustBeFresh even if the Data packet doesn't specify FreshnessPeriod.
Refs: #5270
Change-Id: I2ce4d23062f6346ebcd54e2e3e6e5de5a927e516
2023-08-09 12:26:59 -04:00
Davide Pesavento
12b8aaa9f2
build: decrease level of debug information produced by default
...
Refs: #5279
Change-Id: I5c96d3e58d507c5ab01e0ae79348be15e078ac9a
2023-08-06 19:18:51 -04:00
Junxiao Shi
502c4c3bd6
security: avoid ValidityPeriod under/overflow
...
refs #5176
Change-Id: I15f2225ea727b205798db29d14ef49a7565eb82e
2023-07-24 11:09:27 +00:00
Varun Patil
f81de71486
security: make HMAC compatible with OpenSSL 3
...
This is a temporary workaround until the internals
can be restructured to use EVP_MAC
Refs: #5251
Change-Id: I28854177a066a753a5cbacad591ee55f5c137622
2023-07-23 14:25:03 -07:00
Davide Pesavento
67bc114aa8
util: generalize and simplify time::{to,from}UnixTimestamp()
...
Change-Id: I1dc94365944b8efc03f32919d32d5df0a652b672
2023-05-15 21:48:43 -04:00
Davide Pesavento
699cca4ba0
encoding: declare Block operators as hidden friends
...
Change-Id: Ib6a0792110cb1627e691c66bf83adf27df065c46
2023-05-12 19:50:23 -04:00
Davide Pesavento
296c3a185d
interest+data: add string_view overloads for convenience
...
Also, explicitly declare the nullptr_t overloads as deleted, so that
users get a clear compilation error instead of a potentially confusing
"ambiguous overload" if they try to pass nullptr to these functions.
Change-Id: I399efcbd698a0d3f7e29219d21eb1a53a1d71070
2023-05-10 22:56:48 -04:00
Davide Pesavento
47ce2eed3a
Refactor and modernize namespace declarations
...
* Completely remove inline namespace v2
* Flatten some unnecessarily deep namespace nesting
* Move DummyClientFace, Segmenter, SegmentFetcher to namespace ndn
* Move all unit tests to namespace ndn::tests
Change-Id: I8bcfcf9fd669936a3277d2d5d505f765b4b05742
2023-05-10 02:37:06 -04:00
Davide Pesavento
21b7f1b379
encoding+lp+net: simplify with if constexpr
...
Change-Id: Ie2b45a502c59e5cb7181628e691f7aaaf7509d84
2023-04-28 23:21:02 -04:00
Davide Pesavento
581dd52b0d
lp: consistently use uint32_t for TLV types
...
Change-Id: I880043b634476eaaafa35b49f6b3f93210ae5ecf
2023-04-24 02:10:52 -04:00
Davide Pesavento
152ef44da9
Move BOOST_CONCEPT_ASSERT to unit tests where possible
...
Change-Id: I0c6ae494eb7be4ab2ff422ba6d866ead9e75f4eb
2023-04-22 02:02:29 -04:00
Davide Pesavento
3fdb02f62e
Use std::string_view in several APIs
...
Change-Id: I2c13b229162b247738cbf46d6bf71fc69d45816f
2023-04-14 04:05:08 -04:00
Davide Pesavento
a3651646a9
ndnsec: stop installing deprecated command aliases
...
Refs: #5163
Change-Id: Ia9f705529061a2ca2cb8bcbd1a9ef1d7a5ffae31
2023-04-10 21:33:54 -04:00
Davide Pesavento
23483c76d5
name: remove deprecated functions
...
Change-Id: I776c34c5a81ade92354aa8d974f5f380ae2715c4
2023-04-04 14:25:36 -04:00
Davide Pesavento
0910343957
mgmt: simplify StatusDataset implementation
...
Change-Id: Icf21cfd8bc47333461dadd06c347b723e77f5784
2023-03-27 19:41:15 -04:00
Davide Pesavento
187e9f99b2
Adopt more C++17 features throughout the codebase
...
Change-Id: I31af421d8a977ba2aae23afcda289ff53230897f
2023-03-23 23:28:27 -04:00
Davide Pesavento
eb87c28200
detail: stop importing std::function into ndn namespace
...
Change-Id: I536774e974627abbf4e8b868ebb948b90ea5d4a6
2023-03-15 21:07:02 -04:00
Davide Pesavento
869d1a3c36
util: remove obsolete backport of std::to_string
...
Change-Id: Ib2ba051b84032b227ce75f41e242af20b4a43c3c
2023-03-14 23:55:02 -04:00
Davide Pesavento
05ec0be21b
Use inline on all namespace-scope constants defined in headers
...
Change-Id: Ia6e68d3fe572f6c15978c77a646ac599fa47e575
2023-03-14 21:36:01 -04:00
Davide Pesavento
f6b458930f
util: remove ndn::optional, use std::optional directly
...
Change-Id: I503e8f250e80e0ff7708070effc2e84e3b38b3b7
2023-03-13 15:12:06 -04:00
Davide Pesavento
a2fbc35f12
util: remove ndn::variant, use std::variant directly
...
Change-Id: I374095f0f391454f3340bbf36785ccbebea2773a
2023-03-12 13:46:02 -04:00
Davide Pesavento
fcd3e44028
build: switch to C++17
...
Change-Id: I92039300ce845de0312dceccb94c128229ed60c4
2023-03-10 18:44:11 -05:00
Davide Pesavento
762548b15e
build: drop official support for Ubuntu 18.04 and macOS 10.15
...
Increase the minimum required version of clang on linux to 7.0 because
older versions fail to compile libstdc++'s implementation of std::variant
Change-Id: Id17d95c2869634622fc8775e085b74801a486e90
2023-03-07 14:40:22 -05:00
Davide Pesavento
02ed332ddd
docs: update several URLs to point to docs.named-data.net
...
Change-Id: If000753573c6a50130dc3101a411b6d482ccf3ed
2023-02-23 19:40:22 -05:00
Davide Pesavento
d09d52bdfa
tests: fix dangling-reference warning with gcc 13
...
Change-Id: I73531e291d9b3146f3778c21a262d328d98eb26b
2023-02-15 14:15:06 -05:00
Davide Pesavento
ae39daf4de
build: switch source archive to xz compression
...
And a few minor README improvements
Change-Id: I667860f46b19d1ec885fd81910a116581007ac8f
2023-02-14 23:46:46 -05:00
Davide Pesavento
a90b2cf762
ci: adopt reusable workflows from named-data/actions
...
Change-Id: Ib5b73ca2082cec8fc105a875f5c261a979db11c7
2023-02-07 17:56:06 -05:00
Davide Pesavento
535bd33223
util: add missing include for std::set
...
Change-Id: If18b2f6196e01949b380b41b42ae09e460310ba5
2023-01-10 02:30:12 -05:00
Davide Pesavento
81de5d98e9
Prepare release 0.8.1
...
Refs: #5250
Change-Id: I99931c1300cd752554aea764e9688d027b5de29e
ndn-cxx-0.8.1
2022-12-31 01:50:11 -05:00
Davide Pesavento
15fa994bf6
transport: replace a bunch of bools with a proper state machine
...
Change-Id: I42f74aebfd714cd8b3be7fcb3068228935482366
2022-12-15 04:00:22 -05:00
Davide Pesavento
67090837ab
build: update waf to version 2.0.24
...
Change-Id: Ifaa5d378f09434e2e9ea44ce99e1948e2b9be9f4
2022-12-02 15:32:25 -05:00
Davide Pesavento
90795be569
encoding: remove obsolete TLV-TYPE definitions
...
Also, consolidate all types in a single enum
Change-Id: I55c9d10de21183e17590bd2f73b51ae8b7c84304
2022-11-30 16:26:52 -05:00
Davide Pesavento
576c21ba33
docs: delete certificate spec
...
Moved to the NDN-packet-spec repo
https://github.com/named-data/NDN-packet-spec/commit/3a74e134979606af9a2b90b12f141f8794ad96d7
Change-Id: I57aec08aeb553d5eb6c5a7c368ba03b904b1e4ed
2022-11-29 20:00:22 -05:00
Davide Pesavento
ffddbbf745
encoding: recognize Ed25519 signature type
...
Refs: #5209
Change-Id: I96bcc7ac194ed6034a66580b0cdb7e95b3dd0c31
2022-11-21 16:33:47 -05:00
Davide Pesavento
09c064f1c5
Remove a few deprecated functions
...
Change-Id: I8f48aa0d084ffd1349750dfe04357ce900ab8dd6
2022-11-21 15:00:44 -05:00
Davide Pesavento
b5e95f9106
ci: skip headers check in code-coverage jobs
...
Change-Id: I73f5cc04cc4b8bf69db66e690d9d4117239a0961
2022-11-20 20:16:06 -05:00
Davide Pesavento
83faec7308
ci: add Xcode 14.1
...
Change-Id: I5e809720778b9386f3bd37f74e3a270be340ea15
2022-11-14 19:44:41 -05:00
Davide Pesavento
017a9c066f
util: add Segmenter utility class to segment an object
...
Refs: #5247
Change-Id: Ib0ebb0b24366b2d3c209e2ebe28ea2c62b42bff1
2022-11-05 00:22:25 -04:00
Davide Pesavento
5c4f376e05
Add more noexcept
...
Change-Id: Ifcb411b9c7cd562276df615db86c9dac3ede9afb
2022-10-31 14:25:25 -04:00
Davide Pesavento
8fbffe4577
mgmt: use new signed Interest format in nfd::Controller
...
Refs: #4804
Change-Id: I26640f0a0c5f2bceac431f9c7c3698f3d31d31e3
2022-10-13 18:44:08 -04:00
Davide Pesavento
637ea3b2a9
security: rename NO_SIGNATURE error code to MALFORMED_SIGNATURE
...
And move the documentation for all validation error codes to doxygen
Change-Id: Ibf4b507e3a544f2978192fbfad20cd7dc486818f
2022-10-05 23:33:35 -04:00
Davide Pesavento
2acce25696
security: various enhancements to Interest and Data validation
...
* Avoid decoding SignatureInfo multiple times while validating an Interest
* Fix handling of signed Interests with malformed InterestSignatureInfo
* Report a NO_SIGNATURE error when SignatureInfo is missing or malformed
* Fail with POLICY_ERROR in ValidationPolicySimpleHierarchy when the
signing identity violates the policy
* Reduce code duplication
* Expand unit test coverage
Change-Id: I1c9d532b2307d5df8f4bd75152af57a4e10835aa
2022-10-05 21:18:07 -04:00
Davide Pesavento
ea5ce49651
build: link with lld if available
...
Change-Id: Iaf1e7110e629fa1fa16bbd8b8cc1418fafd2408b
2022-10-05 01:46:24 -04:00
Davide Pesavento
e16ac8693f
encoding: don't call flush() in OBufferStream if already closed
...
Refs: #5240
Change-Id: I48e2694657971960079c5b07b35102d32c316bc1
2022-10-05 01:44:11 -04:00
Davide Pesavento
c860bd1ccb
docs: fix capitalization in doxygen comments
...
Change-Id: Ie61b20a3dbfc847bc14523e507102fe6fe416908
2022-10-05 01:05:26 -04:00
Davide Pesavento
0f56226142
detail: update bundled copies of {optional,scope,span}-lite
...
optional-lite commit 5e4b7760aac85ea73a5b9b91c726fc36cbd4149b
scope-lite commit 8987f3f94121ce15e19a9b65e0078dc3cd6272d6
span-lite commit 0248244006ad3cf31b2430b6c93bd87277e46c03
Change-Id: Ib7b2570201d56847d92db178071431323bbac467
2022-10-02 16:07:46 -04:00