Project

General

Profile

Actions

Bug #2212

closed

Validator throws exception when getting back a Data packet that is not a certificate

Added by Shock Jiang over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Security
Target version:
Start date:
11/23/2014
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

Updated by Junxiao Shi over 9 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.

Actions #2

Updated by Alex Afanasyev over 9 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
Actions #3

Updated by Alex Afanasyev over 9 years ago

The unhandled exception, I believe, is CryptoPP::BERDecodeErr.

Actions #4

Updated by Yingdi Yu over 9 years ago

  • Status changed from New to Code review
Actions #5

Updated by Yingdi Yu over 9 years ago

  • % Done changed from 0 to 100
Actions #6

Updated by Yingdi Yu over 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF