blob: dc2c18c1a4973f017f0589286900afb6539cd3a4 [file] [log] [blame]
Alexander Afanasyev7e721412017-01-11 13:36:08 -08001Validation Error Code
2=====================
3
Davide Pesaventof2cae612021-03-24 18:47:05 -04004The following table defines a list of known codes and their description, which can be returned from the :ndn-cxx:`Validator` interface.
Alexander Afanasyev7e721412017-01-11 13:36:08 -08005Other error codes can be returned by validator implementations outside ndn-cxx codebase.
6
7+------------+--------------------------+-----------------------------------------------------+
8| Error code | Short ID | Description |
9+============+==========================+=====================================================+
10| 0 | NO_ERROR | No error |
11+------------+--------------------------+-----------------------------------------------------+
12| 1 | INVALID_SIGNATURE | Invalid signature |
13+------------+--------------------------+-----------------------------------------------------+
14| 2 | NO_SIGNATURE | Missing signature |
15+------------+--------------------------+-----------------------------------------------------+
16| 3 | CANNOT_RETRIEVE_CERT | Cannot retrieve certificate |
17+------------+--------------------------+-----------------------------------------------------+
18| 4 | EXPIRED_CERT | Certificate expired |
19+------------+--------------------------+-----------------------------------------------------+
20| 5 | LOOP_DETECTED | Loop detected in certification chain |
21+------------+--------------------------+-----------------------------------------------------+
22| 6 | MALFORMED_CERT | Malformed certificate |
23+------------+--------------------------+-----------------------------------------------------+
24| 7 | EXCEEDED_DEPTH_LIMIT | Exceeded validation depth limit |
25+------------+--------------------------+-----------------------------------------------------+
26| 8 | INVALID_KEY_LOCATOR | Key locator violates validation policy |
27+------------+--------------------------+-----------------------------------------------------+
28| .. | ... | ... |
29+------------+--------------------------+-----------------------------------------------------+
30| 255 | IMPLEMENTATION_ERROR | Internal implementation error |
31+------------+--------------------------+-----------------------------------------------------+
32
33Specialized validator implementations can use error codes >= 256 to indicate a specialized error.