bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

Missing OtherRevocationInfoFormat in CMSSigned classes

Open iupsilon opened this issue 4 years ago • 0 comments

This PR aims to add support to OtherRevocationInfoFormat in CMSSigned* classes. The implementation is inspired from Java repo.

I recently had to deal with CAdES-LT baseline and I realized that CrlSet can either contain X509Crl and OtherRevocationInfoFormat objects. Unfortunately the current bc-csharp doesn't manage this aspect and breaks throwing an InvalidCastException in the CreateCrlStore method if crlSet contains OtherRevocationInfoFormat.

I also added the test method TestCrlAndOtherRevocationInfoFormat in order to verify the correctness of the solution.

iupsilon avatar Oct 13 '21 12:10 iupsilon