Commit 234ce581 authored by David Weinstein's avatar David Weinstein
Browse files

Add x509_validity feature to travis tests

- also update docs for new x509 `not_before`, `not_after`
parent 8fa4059b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -433,7 +433,8 @@ impl<'a> X509Ref<'a> {
        }
    }

    /// Returns Issuer validity notAfter
    /// Returns certificate Not Before validity period.
    /// Requires the `x509_expiry` feature.
    #[cfg(feature = "x509_expiry")]
    pub fn not_after(&self) -> Asn1TimeRef {
        unsafe {
@@ -443,7 +444,8 @@ impl<'a> X509Ref<'a> {
        }
    }

    /// Returns Issuer validity notBefore
    /// Returns certificate Not After validity period.
    /// Requires the `x509_expiry` feature.
    #[cfg(feature = "x509_expiry")]
    pub fn not_before(&self) -> Asn1TimeRef {
        unsafe {
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ set -e
MAIN_TARGETS=https://static.rust-lang.org/dist

if [ "$TEST_FEATURES" == "true" ]; then
    FEATURES="tlsv1_2 tlsv1_1 dtlsv1 dtlsv1_2 sslv3 aes_xts aes_ctr npn alpn rfc5114 ecdh_auto pkcs5_pbkdf2_hmac x509_clone ssl_context_clone x509_generator_request hmac hmac_clone dh_from_params"
    FEATURES="tlsv1_2 tlsv1_1 dtlsv1 dtlsv1_2 sslv3 aes_xts aes_ctr npn alpn rfc5114 ecdh_auto pkcs5_pbkdf2_hmac x509_clone ssl_context_clone x509_generator_request hmac hmac_clone dh_from_params x509_expiry"
fi

if [ "$TRAVIS_OS_NAME" != "osx" ]; then