Commit ec528801 authored by Samuel Miller's avatar Samuel Miller Committed by Facebook GitHub Bot

Migrate get509() callsite to OpenSSLTransportCert

Summary:
Before removing `getX509()` from `AsyncTransportCertificate` we need to migrate
all the callsites to `OpenSSLTransportCertificate`.

Differential Revision: D30487611

fbshipit-source-id: 50deea4904b7b6a6c08c6d4fd0c635a4bc8774cb
parent b0d73b7b
...@@ -33,7 +33,7 @@ class BasicTransportCertificate : public folly::OpenSSLTransportCertificate { ...@@ -33,7 +33,7 @@ class BasicTransportCertificate : public folly::OpenSSLTransportCertificate {
return nullptr; return nullptr;
} }
return std::make_unique<BasicTransportCertificate>( return std::make_unique<BasicTransportCertificate>(
cert->getIdentity(), cert->getX509()); cert->getIdentity(), OpenSSLTransportCertificate::tryExtractX509(cert));
} }
BasicTransportCertificate( BasicTransportCertificate(
......
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