MCPcopy Create free account
hub / github.com/apache/trafficserver / set_version

Method set_version

plugins/origin_server_auth/origin_server_auth.cc:469–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 _virt_host_modified = true;
468 }
469 void
470 set_version(const char *s)
471 {
472 // Translate package and version to int
473 // Supports old configuration
474 if (strcmp("awsv2", s) == 0 || strcmp("2", s) == 0) {
475 _version = versions::awsv2;
476 } else if (strcmp("awsv4", s) == 0 || strcmp("4", s) == 0) {
477 _version = versions::awsv4;
478 } else if (strcmp("gcpv1", s) == 0) {
479 _version = versions::gcpv1;
480 } else {
481 Dbg(dbg_ctl, "Invalid version");
482 }
483 _version_modified = true;
484 }
485
486 void
487 set_include_headers(const char *s)

Callers 1

TSRemapNewInstanceFunction · 0.80

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected