Bug #2212
closed
Validator throws exception when getting back a Data packet that is not a certificate
Added by Shock Jiang almost 10 years ago.
Updated almost 10 years ago.
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.
- 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.
- 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
The unhandled exception, I believe, is CryptoPP::BERDecodeErr
.
- Status changed from New to Code review
- % Done changed from 0 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF