Skip to content

Commit ddff26d

Browse files
authored
Cargo.toml: remove branches from patch.crates-io (#1890)
The relevant branches have been merged
1 parent 4cb99df commit ddff26d

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,5 @@ x509-tsp = { path = "./x509-tsp" }
5959
x509-cert = { path = "./x509-cert" }
6060
x509-ocsp = { path = "./x509-ocsp" }
6161

62-
[patch.crates-io.elliptic-curve]
63-
git = "https://github.com/RustCrypto/traits.git"
64-
branch = "elliptic-curve/der-error-fixups"
65-
66-
[patch.crates-io.ecdsa]
67-
git = "https://github.com/RustCrypto/signatures.git"
68-
branch = "der-error-fixups"
62+
elliptic-curve = { git = "https://github.com/RustCrypto/traits.git" }
63+
ecdsa = { git = "https://github.com/RustCrypto/signatures.git" }

der/src/tag.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ mod number;
77

88
pub use self::{class::Class, mode::TagMode, number::TagNumber};
99

10-
use crate::{Decode, DerOrd, Encode, Error, ErrorKind, Length, Reader, Result, Writer};
10+
use crate::{
11+
Decode, DerOrd, Encode, EncodingRules, Error, ErrorKind, Length, Reader, Result, Writer,
12+
};
1113
use core::{cmp::Ordering, fmt};
1214

1315
/// Indicator bit for constructed form encoding (i.e. vs primitive form)
@@ -318,6 +320,7 @@ impl<'a> Decode<'a> for Tag {
318320
0x1A => Tag::VisibleString,
319321
0x1B => Tag::GeneralString,
320322
0x1E => Tag::BmpString,
323+
0x24 if reader.encoding_rules() == EncodingRules::Ber => Tag::OctetString,
321324
0x30 => Tag::Sequence, // constructed
322325
0x31 => Tag::Set, // constructed
323326
0x40..=0x7F => {

0 commit comments

Comments
 (0)