@@ -515,6 +515,7 @@ std::chrono::system_clock::time_point HttpOperation::NextRetryTime()
515
515
# define HAVE_TLS_VERSION
516
516
#endif
517
517
518
+ // NOLINTNEXTLINE(google-runtime-int)
518
519
static long parse_min_ssl_version (const std::string &version)
519
520
{
520
521
#ifdef HAVE_TLS_VERSION
@@ -532,6 +533,7 @@ static long parse_min_ssl_version(const std::string &version)
532
533
return 0 ;
533
534
}
534
535
536
+ // NOLINTNEXTLINE(google-runtime-int)
535
537
static long parse_max_ssl_version (const std::string &version)
536
538
{
537
539
#ifdef HAVE_TLS_VERSION
@@ -591,6 +593,7 @@ CURLcode HttpOperation::SetCurlPtrOption(CURLoption option, void *value)
591
593
return rc;
592
594
}
593
595
596
+ // NOLINTNEXTLINE(google-runtime-int)
594
597
CURLcode HttpOperation::SetCurlLongOption (CURLoption option, long value)
595
598
{
596
599
CURLcode rc;
@@ -877,8 +880,10 @@ CURLcode HttpOperation::Setup()
877
880
878
881
#ifdef HAVE_TLS_VERSION
879
882
/* By default, TLSv1.2 or better is required (if we have TLS). */
883
+ // NOLINTNEXTLINE(google-runtime-int)
880
884
long min_ssl_version = CURL_SSLVERSION_TLSv1_2;
881
885
#else
886
+ // NOLINTNEXTLINE(google-runtime-int)
882
887
long min_ssl_version = 0 ;
883
888
#endif
884
889
@@ -903,6 +908,7 @@ CURLcode HttpOperation::Setup()
903
908
* The CURL + openssl library may be more recent than this code,
904
909
* and support a version we do not know about.
905
910
*/
911
+ // NOLINTNEXTLINE(google-runtime-int)
906
912
long max_ssl_version = 0 ;
907
913
908
914
if (!ssl_options_.ssl_max_tls .empty ())
@@ -921,6 +927,7 @@ CURLcode HttpOperation::Setup()
921
927
#endif
922
928
}
923
929
930
+ // NOLINTNEXTLINE(google-runtime-int)
924
931
long version_range = min_ssl_version | max_ssl_version;
925
932
if (version_range != 0 )
926
933
{
@@ -967,6 +974,7 @@ CURLcode HttpOperation::Setup()
967
974
if (ssl_options_.ssl_insecure_skip_verify )
968
975
{
969
976
/* 6 - DO NOT ENFORCE VERIFICATION, This is not secure. */
977
+ // NOLINTNEXTLINE(google-runtime-int)
970
978
rc = SetCurlLongOption (CURLOPT_USE_SSL, static_cast <long >(CURLUSESSL_NONE));
971
979
if (rc != CURLE_OK)
972
980
{
@@ -988,6 +996,7 @@ CURLcode HttpOperation::Setup()
988
996
else
989
997
{
990
998
/* 6 - ENFORCE VERIFICATION */
999
+ // NOLINTNEXTLINE(google-runtime-int)
991
1000
rc = SetCurlLongOption (CURLOPT_USE_SSL, static_cast <long >(CURLUSESSL_ALL));
992
1001
if (rc != CURLE_OK)
993
1002
{
@@ -1042,7 +1051,7 @@ CURLcode HttpOperation::Setup()
1042
1051
1043
1052
// TODO: control local port to use
1044
1053
// curl_easy_setopt(curl, CURLOPT_LOCALPORT, dcf_port);
1045
-
1054
+ // NOLINTNEXTLINE(google-runtime-int)
1046
1055
rc = SetCurlLongOption (CURLOPT_TIMEOUT_MS, static_cast <long >(http_conn_timeout_.count ()));
1047
1056
if (rc != CURLE_OK)
1048
1057
{
0 commit comments