Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "app-store-server-library"
description = "The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API"
version = "4.1.2"
version = "4.1.3"
repository = "https://github.com/namecare/app-store-server-library-rust"
homepage = "https://github.com/namecare/app-store-server-library-rust"
authors = ["tkhp", "namecare"]
Expand All @@ -27,7 +27,7 @@ sha1 = { version = "0.10.6" }
# Serialization
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.145" }
serde_with = { version = "3.15.1", features = ["chrono"] }
serde_with = { version = "3.16.0", features = ["chrono"] }
serde_repr = "0.1.20"
uuid = { version = "1.18.1", features = ["serde", "v4"] }
chrono = { version = "0.4.42", features = ["serde"] }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Specify `app-store-server-library` in your project's `Cargo.toml` file, under th

```toml
[dependencies]
app-store-server-library = { version = "4.1.2", features = ["receipt-utility", "api-client", "ocsp"] }
app-store-server-library = { version = "4.1.3", features = ["receipt-utility", "api-client", "ocsp"] }
```

### Feature Flags
Expand Down Expand Up @@ -121,7 +121,7 @@ To enable OCSP verification:

```toml
[dependencies]
app-store-server-library = { version = "4.1.2", features = ["ocsp"] }
app-store-server-library = { version = "4.1.3", features = ["ocsp"] }
```

OCSP verification is performed automatically when verifying signed data.
Expand Down
2 changes: 1 addition & 1 deletion src/api_client/api_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<T: Transport, API, E: APIServiceErrorCode + DeserializeOwned> ApiClient<T,
let mut request_builder = Request::builder()
.method(method)
.uri(url)
.header("User-Agent", "app-store-server-library/rust/4.1.2")
.header("User-Agent", "app-store-server-library/rust/4.1.3")
.header("Authorization", format!("Bearer {}", self.generate_token()))
.header("Accept", "application/json");

Expand Down
2 changes: 1 addition & 1 deletion src/chain_verifier_ocsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl ChainVerifier {

let response_bytes = ocsp_response
.response_bytes
.ok_or(OcspError::ValidationError)?;
.ok_or_else(|| OcspError::ValidationError)?;

const ID_PKIX_OCSP_BASIC: &str = "1.3.6.1.5.5.7.48.1.1";
if response_bytes.response_type.to_string() != ID_PKIX_OCSP_BASIC {
Expand Down