Skip to content

Commit ffa6a13

Browse files
Bump all rasn packages to 0.26.0 in lockstep
* Bump rasn from 0.25.1 to 0.26.0 Bumps [rasn](https://github.com/librasn/rasn) from 0.25.1 to 0.26.0. - [Release notes](https://github.com/librasn/rasn/releases) - [Changelog](https://github.com/librasn/rasn/blob/main/CHANGELOG.md) - [Commits](librasn/rasn@rasn-v0.25.1...rasn-v0.26.0) --- updated-dependencies: - dependency-name: rasn dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump all rasn packages to 0.26 in lockstep --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adam Soutar <[email protected]>
1 parent 6656dc0 commit ffa6a13

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

Cargo.lock

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

pack-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ xml = "0.8.20"
99
zip = { version = "2.5.0", default-features = false, features = ["deflate"] }
1010
pem = "3.0.5"
1111
rsa = "0.9.8"
12-
rasn = "0.25.1"
12+
rasn = "0.26.0"

pack-sign/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ deku = "0.18.1"
2222
byteorder = "1.5.0"
2323
pem = "3.0.5"
2424
base64 = "0.22.1"
25-
rasn-cms = "0.25.1"
26-
rasn = "0.25.1"
27-
rasn-pkix = "0.25.1"
25+
rasn-cms = "0.26.0"
26+
rasn = "0.26.0"
27+
rasn-pkix = "0.26.0"
2828
# This is required for randomly generated X.509 Certificates.
2929
# If you are providing your own certificate to PACK, turn it off.
3030
# It depends on a lot of crypto code.

pack-sign/src/v1_signing.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
1818
use base64::{prelude::BASE64_STANDARD, Engine};
1919
use pack_common::Result;
20-
use rasn::types::Integer::Primitive;
21-
use rasn::types::Oid;
20+
use rasn::types::{Integer, Oid};
2221
use rasn::{Decode, Encode};
2322
use rasn_cms::algorithms::RSA;
2423
use rasn_cms::ContentInfo;
@@ -70,7 +69,7 @@ fn create_pkcs7_file(sig_file: String, keys: &Keys) -> Result<Vec<u8>> {
7069
))?;
7170

7271
let signer_info = SignerInfo {
73-
version: Primitive(1),
72+
version: Integer::ONE,
7473
sid: SignerIdentifier::IssuerAndSerialNumber(IssuerAndSerialNumber {
7574
issuer: cert.tbs_certificate.issuer.clone(),
7675
serial_number: cert.tbs_certificate.serial_number.clone()
@@ -89,7 +88,7 @@ fn create_pkcs7_file(sig_file: String, keys: &Keys) -> Result<Vec<u8>> {
8988
};
9089

9190
let signed_data = SignedData {
92-
version: Primitive(1),
91+
version: Integer::ONE,
9392
digest_algorithms: vec![rasn_cms::AlgorithmIdentifier {
9493
algorithm: OID_SHA256.into(),
9594
parameters: None

0 commit comments

Comments
 (0)