Commit 7884d6d8 authored by Mingtao Yang's avatar Mingtao Yang Committed by Facebook Github Bot

X509_CRL_get0{last,next}Update portability shims

Summary:
OpenSSL 1.1.0 renamed and deprecated X509_CRL_get_lastUpdate -> X509_CRL_get0_lastUpdate
along with X509_CRL_get_nextUpdate -> X509_CRL_get0_nextUpdate

Reviewed By: ngoyal, anirudhvr, Orvid

Differential Revision: D7782339

fbshipit-source-id: 63f04284bb54da87d4235a02890107db8abaa4b4
parent b5105fc5
...@@ -490,6 +490,15 @@ X509* X509_OBJECT_get0_X509(const X509_OBJECT* obj) { ...@@ -490,6 +490,15 @@ X509* X509_OBJECT_get0_X509(const X509_OBJECT* obj) {
} }
return obj->data.x509; return obj->data.x509;
} }
const ASN1_TIME* X509_CRL_get0_lastUpdate(const X509_CRL* crl) {
return X509_CRL_get_lastUpdate(crl);
}
const ASN1_TIME* X509_CRL_get0_nextUpdate(const X509_CRL* crl) {
return X509_CRL_get_nextUpdate(crl);
}
#endif // !FOLLY_OPENSSL_IS_110 #endif // !FOLLY_OPENSSL_IS_110
} // namespace ssl } // namespace ssl
} // namespace portability } // namespace portability
......
...@@ -199,6 +199,10 @@ uint32_t X509_get_extended_key_usage(X509* x); ...@@ -199,6 +199,10 @@ uint32_t X509_get_extended_key_usage(X509* x);
int X509_OBJECT_get_type(const X509_OBJECT* obj); int X509_OBJECT_get_type(const X509_OBJECT* obj);
X509* X509_OBJECT_get0_X509(const X509_OBJECT* obj); X509* X509_OBJECT_get0_X509(const X509_OBJECT* obj);
const ASN1_TIME* X509_CRL_get0_lastUpdate(const X509_CRL* crl);
const ASN1_TIME* X509_CRL_get0_nextUpdate(const X509_CRL* crl);
#endif #endif
#if FOLLY_OPENSSL_IS_110 #if FOLLY_OPENSSL_IS_110
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment