-
Notifications
You must be signed in to change notification settings - Fork 42
Labels
A-ClientArea: Parsec desktop applicationArea: Parsec desktop applicationC-PKICategory: Smartcard or PKI support in ParsecCategory: Smartcard or PKI support in ParsecI-RustImpact: Rust-related stuffImpact: Rust-related stuff
Description
The code at
| pub async fn list_enrollments( | |
| cmds: &AuthenticatedCmds, | |
| ) -> Result<Vec<PkiEnrollmentListItem>, PkiEnrollmentListError> { | |
| use authenticated_cmds::latest::pki_enrollment_list::{Rep, Req}; | |
| let rep = cmds.send(Req).await?; | |
| match rep { | |
| Rep::Ok { enrollments } => Ok(enrollments), | |
| Rep::AuthorNotAllowed => Err(PkiEnrollmentListError::AuthorNotAllowed), | |
| rep @ Rep::UnknownStatus { .. } => { | |
| Err(anyhow::anyhow!("Unexpected server response: {:?}", rep).into()) | |
| } | |
| } | |
| } |
Only list the value from the server without doing any validation (do we trust the request)
Metadata
Metadata
Assignees
Labels
A-ClientArea: Parsec desktop applicationArea: Parsec desktop applicationC-PKICategory: Smartcard or PKI support in ParsecCategory: Smartcard or PKI support in ParsecI-RustImpact: Rust-related stuffImpact: Rust-related stuff