Fix links in x509 module

This commit is contained in:
Ansley Peduru 2018-01-01 16:16:41 -05:00
parent c2430b87f7
commit c4620a30c6
2 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,7 @@ impl X509VerifyParamRef {
/// ///
/// This corresponds to [`X509_VERIFY_PARAM_set1_ip`]. /// This corresponds to [`X509_VERIFY_PARAM_set1_ip`].
/// ///
/// [`X509_VERIFY_PARAM_set1_ip`]: https://www.openssl.org/docs/man1.1.0/crypto/X509_VERIFY_PARAM_set1_ip.htm://www.openssl.org/docs/man1.1.0/crypto/X509_VERIFY_PARAM_set1_ip.html /// [`X509_VERIFY_PARAM_set1_ip`]: https://www.openssl.org/docs/man1.1.0/crypto/X509_VERIFY_PARAM_set1_ip.html
pub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack> { pub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack> {
unsafe { unsafe {
let mut buf = [0; 16]; let mut buf = [0; 16];

View File

@ -9,6 +9,8 @@
//! //!
//! # Example //! # Example
//! //!
//! Build an `X509` certificate and use a generated RSA key to sign it.
//!
//! ```rust //! ```rust
//! //!
//! extern crate openssl; //! extern crate openssl;
@ -102,9 +104,9 @@ impl X509StoreContext {
impl X509StoreContextRef { impl X509StoreContextRef {
/// Returns application data pertaining to an `X509` store context. /// Returns application data pertaining to an `X509` store context.
/// ///
/// This corresponds to [`CRYPTO_get_ex_data`]. /// This corresponds to [`X509_STORE_CTX_get_ex_data`].
/// ///
/// [`CRYPTO_get_ex_data`]: https://www.openssl.org/docs/man1.1.0/crypto/CRYPTO_get_ex_data.html /// [`X509_STORE_CTX_get_ex_data`]: https://www.openssl.org/docs/man1.0.2/crypto/X509_STORE_CTX_get_ex_data.html
pub fn ex_data<T>(&self, index: Index<X509StoreContext, T>) -> Option<&T> { pub fn ex_data<T>(&self, index: Index<X509StoreContext, T>) -> Option<&T> {
unsafe { unsafe {
let data = ffi::X509_STORE_CTX_get_ex_data(self.as_ptr(), index.as_raw()); let data = ffi::X509_STORE_CTX_get_ex_data(self.as_ptr(), index.as_raw());