Commit b2955150 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

asnTimeToTimepoint: Use a const parameter (#1235)

Summary:
X509_get0_notBefore returns and takes const parameters.
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>

ping reanimus
Pull Request resolved: https://github.com/facebook/folly/pull/1235

Test Plan: Build

Reviewed By: knekritz

Differential Revision: D17695324

Pulled By: reanimus

fbshipit-source-id: bebdb11fc9dd0b49354e7efcd1adc4f87a6675bc
parent d0e76dbb
......@@ -164,7 +164,7 @@ std::string OpenSSLCertUtils::getNotBeforeTime(X509& x509) {
}
std::chrono::system_clock::time_point OpenSSLCertUtils::asnTimeToTimepoint(
ASN1_TIME* asnTime) {
const ASN1_TIME* asnTime) {
int dSecs = 0;
int dDays = 0;
......
......@@ -115,7 +115,7 @@ class OpenSSLCertUtils {
* std::chrono classes.
*/
static std::chrono::system_clock::time_point asnTimeToTimepoint(
ASN1_TIME* asnTime);
const ASN1_TIME* asnTime);
private:
static std::string getDateTimeStr(const ASN1_TIME* time);
......
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