8#ifndef BOTAN_TLS_SERVER_INFO_H_
9#define BOTAN_TLS_SERVER_INFO_H_
11#include <botan/types.h>
36 m_hostname(hostname), m_service(
""), m_port(port) {}
46 std::string_view service,
48 m_hostname(hostname), m_service(service), m_port(port) {}
53 std::string
hostname()
const {
return m_hostname; }
59 std::string
service()
const {
return m_service; }
64 uint16_t
port()
const {
return m_port; }
69 bool empty()
const {
return m_hostname.empty(); }
72 std::string m_hostname, m_service;
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
bool operator==(const Server_Information &a, const Server_Information &b)
bool operator<(const Server_Information &a, const Server_Information &b)
bool operator!=(const Server_Information &a, const Server_Information &b)