File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1170,7 +1170,7 @@ fn decode_idp_negative_incomplete() {
1170
1170
let idp =
1171
1171
IssuingDistributionPoint :: from_der ( & hex ! ( "3067A060A05EA45C305A310B3009060355040613025553311F301D060355040A131654657374204365727469666963617465732032303137311C301A060355040B13136F6E6C79536F6D65526561736F6E7320434133310C300A0603550403130343524C8304079F80" ) ) ;
1172
1172
let err = idp. err ( ) . unwrap ( ) ;
1173
- assert_eq ! ( err. position( ) . unwrap( ) , 103u8 . into( ) ) ;
1173
+ assert_eq ! ( err. position( ) . unwrap( ) , 105u8 . into( ) ) ;
1174
1174
assert_eq ! (
1175
1175
ErrorKind :: Incomplete {
1176
1176
expected_len: 106u8 . into( ) ,
@@ -1202,7 +1202,13 @@ fn decode_idp_negative_bool_long() {
1202
1202
let idp =
1203
1203
IssuingDistributionPoint :: from_der ( & hex ! ( "30820168A0820161A082015DA4753073310B3009060355040613025553311F301D060355040A13165465737420436572746966696361746573203230313731183016060355040B130F696E64697265637443524C204341353129302706035504031320696E6469726563742043524C20666F7220696E64697265637443524C20434136A4753073310B3009060355040613025553311F301D060355040A13165465737420436572746966696361746573203230313731183016060355040B130F696E64697265637443524C204341353129302706035504031320696E6469726563742043524C20666F7220696E64697265637443524C20434137A46D306B310B3009060355040613025553311F301D060355040A13165465737420436572746966696361746573203230313731183016060355040B130F696E64697265637443524C204341353121301F0603550403131843524C3120666F7220696E64697265637443524C204341358402FFFF" ) ) ;
1204
1204
let err = idp. err ( ) . unwrap ( ) ;
1205
- assert_eq ! ( ErrorKind :: Length { tag: Tag :: Boolean } , err. kind( ) ) ;
1205
+ assert_eq ! (
1206
+ ErrorKind :: Incomplete {
1207
+ expected_len: Length :: new( 365 ) ,
1208
+ actual_len: Length :: new( 364 )
1209
+ } ,
1210
+ err. kind( )
1211
+ ) ;
1206
1212
}
1207
1213
1208
1214
#[ test]
You can’t perform that action at this time.
0 commit comments