bc-csharp
bc-csharp copied to clipboard
Missing OtherRevocationInfoFormat in CMSSigned classes
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.