Fix doc link bugs
This commit is contained in:
parent
9f3cf9907f
commit
d2b169dae6
|
|
@ -151,7 +151,7 @@ impl Asn1Time {
|
||||||
///
|
///
|
||||||
/// Requires OpenSSL 1.1.1 or newer.
|
/// Requires OpenSSL 1.1.1 or newer.
|
||||||
///
|
///
|
||||||
/// [`ASN1_TIME_set_string`]: https://www.openssl.org/docs/manmaster/man3/ASN1_TIME_set_string.html
|
/// [`ASN1_TIME_set_string_X509`]: https://www.openssl.org/docs/manmaster/man3/ASN1_TIME_set_string.html
|
||||||
#[cfg(ossl111)]
|
#[cfg(ossl111)]
|
||||||
pub fn from_str_x509(s: &str) -> Result<Asn1Time, ErrorStack> {
|
pub fn from_str_x509(s: &str) -> Result<Asn1Time, ErrorStack> {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,9 @@ impl EcdsaSig {
|
||||||
from_der! {
|
from_der! {
|
||||||
/// Decodes a DER-encoded ECDSA signature.
|
/// Decodes a DER-encoded ECDSA signature.
|
||||||
///
|
///
|
||||||
/// This corresponds to [`d2i_ECDSA_SIG`]: https://www.openssl.org/docs/man1.1.0/crypto/d2i_ECDSA_SIG.html
|
/// This corresponds to [`d2i_ECDSA_SIG`].
|
||||||
|
///
|
||||||
|
/// [`d2i_ECDSA_SIG`]: https://www.openssl.org/docs/man1.1.0/crypto/d2i_ECDSA_SIG.html
|
||||||
from_der,
|
from_der,
|
||||||
EcdsaSig,
|
EcdsaSig,
|
||||||
ffi::d2i_ECDSA_SIG
|
ffi::d2i_ECDSA_SIG
|
||||||
|
|
@ -118,7 +120,9 @@ impl EcdsaSigRef {
|
||||||
to_der! {
|
to_der! {
|
||||||
/// Serializes the ECDSA signature into a DER-encoded ECDSASignature structure.
|
/// Serializes the ECDSA signature into a DER-encoded ECDSASignature structure.
|
||||||
///
|
///
|
||||||
/// This corresponds to [`i2d_ECDSA_SIG`]: https://www.openssl.org/docs/man1.1.0/crypto/i2d_ECDSA_SIG.html
|
/// This corresponds to [`i2d_ECDSA_SIG`].
|
||||||
|
///
|
||||||
|
/// [`i2d_ECDSA_SIG`]: https://www.openssl.org/docs/man1.1.0/crypto/i2d_ECDSA_SIG.html
|
||||||
to_der,
|
to_der,
|
||||||
ffi::i2d_ECDSA_SIG
|
ffi::i2d_ECDSA_SIG
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ use error::ErrorStack;
|
||||||
/// rand_bytes(&mut buf).unwrap();
|
/// rand_bytes(&mut buf).unwrap();
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`RAND_bytes`](https://www.openssl.org/docs/man1.1.0/crypto/RAND_bytes.html)
|
/// [`RAND_bytes`]: https://www.openssl.org/docs/man1.1.0/crypto/RAND_bytes.html
|
||||||
pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> {
|
pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::init();
|
ffi::init();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue