Bundle Protocol Security (RFC 9172) - authentication and encryption for DTN
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpsec: catch Loc.Error instead of removed Cbor.Error.Decode

Follow-up to the cbor Error refactor: cbor now raises the shared
Loc.Error.Error from _exn decoders rather than its own custom
Cbor.Error.Decode exception.

+1 -2
+1 -2
fuzz/fuzz_bpsec.ml
··· 22 22 try 23 23 let cbor = Cbor.Binary.read_cbor dec in 24 24 ignore (Bpsec.security_block_of_cbor cbor) 25 - with Cbor.Error.Decode _ | End_of_file | Failure _ | Invalid_argument _ -> 26 - () 25 + with Loc.Error _ | End_of_file | Failure _ | Invalid_argument _ -> () 27 26 28 27 (** BIB create/verify roundtrip. *) 29 28 let test_bib_roundtrip key_seed data =