bneradt commented on code in PR #12755: URL: https://github.com/apache/trafficserver/pull/12755#discussion_r2688460494
########## src/iocore/net/YamlSSLMultiCertConfig.cc: ########## @@ -0,0 +1,137 @@ +/** @file + + @section license License + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ + +#include "iocore/net/YamlSSLMultiCertConfig.h" + +#include <set> +#include <string> +#include <exception> + +#include <yaml-cpp/yaml.h> + +#include "tscore/Diags.h" + +namespace +{ +// YAML key names matching the config file format. +constexpr char YAML_SSL_CERT_NAME[] = "ssl_cert_name"; +constexpr char YAML_DEST_IP[] = "dest_ip"; +constexpr char YAML_SSL_KEY_NAME[] = "ssl_key_name"; +constexpr char YAML_SSL_CA_NAME[] = "ssl_ca_name"; +constexpr char YAML_SSL_OCSP_NAME[] = "ssl_ocsp_name"; +constexpr char YAML_SSL_KEY_DIALOG[] = "ssl_key_dialog"; +constexpr char YAML_DEST_FQDN[] = "dest_fqdn"; +constexpr char YAML_SSL_TICKET_ENABLED[] = "ssl_ticket_enabled"; +constexpr char YAML_SSL_TICKET_NUMBER[] = "ssl_ticket_number"; +constexpr char YAML_ACTION[] = "action"; Review Comment: Yes, good catch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
