Function openpgp_card_sequoia::upload_from_cert_yolo [−][src]
pub fn upload_from_cert_yolo(
oca: &mut CardAdmin,
cert: &Cert,
key_type: KeyType,
password: Option<String>
) -> Result<(), Box<dyn Error>>
Expand description
Convenience fn to select and upload a (sub)key from a Cert, as a given KeyType. If multiple suitable (sub)keys are found, the first one is used.
FIXME: picking the (sub)key to upload should probably done with more intent.