Fix docstring for Certificate::generate_self_signed (#632)
CI / check (push) Has been cancelled
CI / test (sudo apt-get install libpcsclite-dev, ubuntu-latest, 1.85.0) (push) Has been cancelled
CI / test (sudo apt-get install libpcsclite-dev, ubuntu-latest, stable) (push) Has been cancelled
CI / test (true, macos-latest, 1.85.0) (push) Has been cancelled
CI / test (true, macos-latest, stable) (push) Has been cancelled
CI / test (true, windows-latest, 1.85.0) (push) Has been cancelled
CI / test (true, windows-latest, stable) (push) Has been cancelled
CI / rustfmt (push) Has been cancelled
CI / clippy (push) Has been cancelled
CI / check (push) Has been cancelled
CI / test (sudo apt-get install libpcsclite-dev, ubuntu-latest, 1.85.0) (push) Has been cancelled
CI / test (sudo apt-get install libpcsclite-dev, ubuntu-latest, stable) (push) Has been cancelled
CI / test (true, macos-latest, 1.85.0) (push) Has been cancelled
CI / test (true, macos-latest, stable) (push) Has been cancelled
CI / test (true, windows-latest, 1.85.0) (push) Has been cancelled
CI / test (true, windows-latest, stable) (push) Has been cancelled
CI / rustfmt (push) Has been cancelled
CI / clippy (push) Has been cancelled
This commit is contained in:
+2
-3
@@ -96,9 +96,8 @@ impl Certificate {
|
|||||||
/// Creates a new self-signed certificate for the given key. Writes the resulting
|
/// Creates a new self-signed certificate for the given key. Writes the resulting
|
||||||
/// certificate to the slot before returning it.
|
/// certificate to the slot before returning it.
|
||||||
///
|
///
|
||||||
/// `extensions` is optional; if empty, no extensions will be included. Due to the
|
/// `extensions` is a required argument; users who do not have any extensions
|
||||||
/// need for an `O: Oid` type parameter, users who do not have any extensions should
|
/// should set the `extensions` argument to `|_| Ok(())`.
|
||||||
/// use the workaround `let extensions: &[x509_cert::Extension<'_, &[u64]>] = &[];`.
|
|
||||||
pub fn generate_self_signed<F, KT: yubikey_signer::KeyType>(
|
pub fn generate_self_signed<F, KT: yubikey_signer::KeyType>(
|
||||||
yubikey: &mut YubiKey,
|
yubikey: &mut YubiKey,
|
||||||
key: SlotId,
|
key: SlotId,
|
||||||
|
|||||||
Reference in New Issue
Block a user