Skip to content

Commit

Permalink
fix: e2ei keystore method 'find_all' was unimplemented on WASM for in…
Browse files Browse the repository at this point in the history
…termediate CAs & CRLs
  • Loading branch information
beltram committed Jan 15, 2024
1 parent 70f123e commit 4164adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion keystore/src/entities/platform/wasm/mls/e2ei_crl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ impl EntityBase for E2eiCrl {
}

async fn find_all(_conn: &mut Self::ConnectionType, _params: EntityFindParams) -> CryptoKeystoreResult<Vec<Self>> {
Err(CryptoKeystoreError::ImplementationError)
let storage = conn.storage();
storage.get_all("e2ei_crls", Some(params)).await
}

async fn save(&self, conn: &mut Self::ConnectionType) -> CryptoKeystoreResult<()> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ impl EntityBase for E2eiIntermediateCert {
}

async fn find_all(_conn: &mut Self::ConnectionType, _params: EntityFindParams) -> CryptoKeystoreResult<Vec<Self>> {
Err(CryptoKeystoreError::ImplementationError)
let storage = conn.storage();
storage.get_all("e2ei_intermediate_certs", Some(params)).await
}

async fn save(&self, conn: &mut Self::ConnectionType) -> CryptoKeystoreResult<()> {
Expand Down

0 comments on commit 4164adb

Please sign in to comment.