Commit 8f6d3b10 authored by Gareth Chen's avatar Gareth Chen Committed by Facebook Github Bot

Splitting changes to folly/portability/OpenSSL.cpp/h into their own commit

Summary:
Adding an implementation of X509_get0_tbs_sigalg for pre-1.1.0
versions of OpenSSL

Reviewed By: fredemmott

Differential Revision: D9317612

fbshipit-source-id: b7d270a818f802d7df537cdb23e2129dfb184567
parent e2a018be
......@@ -499,6 +499,10 @@ const ASN1_TIME* X509_CRL_get0_nextUpdate(const X509_CRL* crl) {
return X509_CRL_get_nextUpdate(crl);
}
const X509_ALGOR* X509_get0_tbs_sigalg(const X509* x) {
return x->cert_info->signature;
}
#endif // !FOLLY_OPENSSL_IS_110
} // namespace ssl
} // namespace portability
......
......@@ -203,6 +203,8 @@ 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);
const X509_ALGOR* X509_get0_tbs_sigalg(const X509* x);
#endif
#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