Actions
Bug #2212
closedValidator throws exception when getting back a Data packet that is not a certificate
Description
I find this problem when testing NDNS, where validator requests certificate from NDNS.
When validator receives back anything but a valid certificate, it throws an exception "BER decode error", which causes some applications to unexpectedly fail.
It is not possible to handle this exception inside the application, as it is getting thrown from the inside of Face::processEvents() loop.
Updated by Junxiao Shi almost 10 years ago
- Description updated (diff)
Please attach a code snippet that reproduces this problem.
I think Validator shouldn't throw exception. If something is wrong, it should declare that validation has failed.
Updated by Alex Afanasyev almost 10 years ago
- Subject changed from Validator throws exception when getting a NDNS-NACK to Validator throws exception when getting back a Data packet that is not a certificate
- Description updated (diff)
- Category set to Security
- Assignee set to Yingdi Yu
- Priority changed from Normal to High
- Target version set to v0.3
Updated by Alex Afanasyev almost 10 years ago
The unhandled exception, I believe, is CryptoPP::BERDecodeErr
.
Updated by Yingdi Yu almost 10 years ago
- Status changed from Code review to Closed
Actions