@@ -515,6 +515,7 @@ std::chrono::system_clock::time_point HttpOperation::NextRetryTime()
515515# define HAVE_TLS_VERSION
516516#endif
517517
518+ // NOLINTNEXTLINE(google-runtime-int)
518519static long parse_min_ssl_version (const std::string &version)
519520{
520521#ifdef HAVE_TLS_VERSION
@@ -532,6 +533,7 @@ static long parse_min_ssl_version(const std::string &version)
532533 return 0 ;
533534}
534535
536+ // NOLINTNEXTLINE(google-runtime-int)
535537static long parse_max_ssl_version (const std::string &version)
536538{
537539#ifdef HAVE_TLS_VERSION
@@ -591,6 +593,7 @@ CURLcode HttpOperation::SetCurlPtrOption(CURLoption option, void *value)
591593 return rc;
592594}
593595
596+ // NOLINTNEXTLINE(google-runtime-int)
594597CURLcode HttpOperation::SetCurlLongOption (CURLoption option, long value)
595598{
596599 CURLcode rc;
@@ -877,8 +880,10 @@ CURLcode HttpOperation::Setup()
877880
878881#ifdef HAVE_TLS_VERSION
879882 /* By default, TLSv1.2 or better is required (if we have TLS). */
883+ // NOLINTNEXTLINE(google-runtime-int)
880884 long min_ssl_version = CURL_SSLVERSION_TLSv1_2;
881885#else
886+ // NOLINTNEXTLINE(google-runtime-int)
882887 long min_ssl_version = 0 ;
883888#endif
884889
@@ -903,6 +908,7 @@ CURLcode HttpOperation::Setup()
903908 * The CURL + openssl library may be more recent than this code,
904909 * and support a version we do not know about.
905910 */
911+ // NOLINTNEXTLINE(google-runtime-int)
906912 long max_ssl_version = 0 ;
907913
908914 if (!ssl_options_.ssl_max_tls .empty ())
@@ -921,6 +927,7 @@ CURLcode HttpOperation::Setup()
921927#endif
922928 }
923929
930+ // NOLINTNEXTLINE(google-runtime-int)
924931 long version_range = min_ssl_version | max_ssl_version;
925932 if (version_range != 0 )
926933 {
@@ -967,6 +974,7 @@ CURLcode HttpOperation::Setup()
967974 if (ssl_options_.ssl_insecure_skip_verify )
968975 {
969976 /* 6 - DO NOT ENFORCE VERIFICATION, This is not secure. */
977+ // NOLINTNEXTLINE(google-runtime-int)
970978 rc = SetCurlLongOption (CURLOPT_USE_SSL, static_cast <long >(CURLUSESSL_NONE));
971979 if (rc != CURLE_OK)
972980 {
@@ -988,6 +996,7 @@ CURLcode HttpOperation::Setup()
988996 else
989997 {
990998 /* 6 - ENFORCE VERIFICATION */
999+ // NOLINTNEXTLINE(google-runtime-int)
9911000 rc = SetCurlLongOption (CURLOPT_USE_SSL, static_cast <long >(CURLUSESSL_ALL));
9921001 if (rc != CURLE_OK)
9931002 {
@@ -1042,7 +1051,7 @@ CURLcode HttpOperation::Setup()
10421051
10431052 // TODO: control local port to use
10441053 // curl_easy_setopt(curl, CURLOPT_LOCALPORT, dcf_port);
1045-
1054+ // NOLINTNEXTLINE(google-runtime-int)
10461055 rc = SetCurlLongOption (CURLOPT_TIMEOUT_MS, static_cast <long >(http_conn_timeout_.count ()));
10471056 if (rc != CURLE_OK)
10481057 {
0 commit comments