diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2020-07-07 12:18:32 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-08 21:32:41 +0000 |
commit | b9015cdc8aa845bf172d059c3c1b7f1f03147131 (patch) | |
tree | 28d406807700e6325ddbc965271f3496fa1ab25d /src/mongo/util | |
parent | c0c135de3504bdf9c2fdd9654430be9c11030f60 (diff) | |
download | mongo-b9015cdc8aa845bf172d059c3c1b7f1f03147131.tar.gz |
SERVER-49339 Rename ocspValidationRefreshPeriodSecs to ocspStaplingRefreshPeriodSecs
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/net/ssl_manager_openssl.cpp | 8 | ||||
-rw-r--r-- | src/mongo/util/net/ssl_parameters.idl | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp index d2db1444093..3dc7325a90a 100644 --- a/src/mongo/util/net/ssl_manager_openssl.cpp +++ b/src/mongo/util/net/ssl_manager_openssl.cpp @@ -1801,8 +1801,8 @@ Status SSLManagerOpenSSL::stapleOCSPResponse(SSL_CTX* context) { Milliseconds duration; if (swDurationInitial.isOK()) { // if the validation refresh period was set manually, use it - if (kOCSPValidationRefreshPeriodSecs != -1) { - duration = Seconds(kOCSPValidationRefreshPeriodSecs); + if (kOCSPStaplingRefreshPeriodSecs != -1) { + duration = Seconds(kOCSPStaplingRefreshPeriodSecs); } else { duration = swDurationInitial.getValue(); } @@ -1822,9 +1822,9 @@ Status SSLManagerOpenSSL::stapleOCSPResponse(SSL_CTX* context) { return; } else { // if the validation refresh period was set manually, use it - if (kOCSPValidationRefreshPeriodSecs != -1) { + if (kOCSPStaplingRefreshPeriodSecs != -1) { this->_ocspStaplingAnchor.setPeriod( - Seconds(kOCSPValidationRefreshPeriodSecs)); + Seconds(kOCSPStaplingRefreshPeriodSecs)); } else { this->_ocspStaplingAnchor.setPeriod(swDuration.getValue()); } diff --git a/src/mongo/util/net/ssl_parameters.idl b/src/mongo/util/net/ssl_parameters.idl index 76929f4c31b..e920f358f08 100644 --- a/src/mongo/util/net/ssl_parameters.idl +++ b/src/mongo/util/net/ssl_parameters.idl @@ -72,12 +72,13 @@ server_parameters: cpp_varname: "tlsOCSPCacheSize" validator: gt: 0 - ocspValidationRefreshPeriodSecs: + ocspStaplingRefreshPeriodSecs: description: "Interval at which the OCSP response will be refreshed" set_at: startup cpp_vartype: int + deprecated_name: ocspValidationRefreshPeriodSecs default: -1 - cpp_varname: "kOCSPValidationRefreshPeriodSecs" + cpp_varname: "kOCSPStaplingRefreshPeriodSecs" validator: gte: 1 tlsOCSPVerifyTimeoutSecs: |