proxygen
wangle::SSLContextKeyHash Struct Reference

#include <SSLContextSelectionMisc.h>

Public Member Functions

size_t operator() (const SSLContextKey &sslContextKey) const noexcept
 

Detailed Description

Definition at line 85 of file SSLContextSelectionMisc.h.

Member Function Documentation

size_t wangle::SSLContextKeyHash::operator() ( const SSLContextKey sslContextKey) const
inlinenoexcept

Definition at line 86 of file SSLContextSelectionMisc.h.

References folly::hash::hash_combine(), string, and folly::toLowerAscii().

86  {
87  std::string lowercase(sslContextKey.dnString.data(),
88  sslContextKey.dnString.size());
89  folly::toLowerAscii(lowercase);
91  lowercase, static_cast<int>(sslContextKey.certCrypto));
92  }
size_t hash_combine(const T &t, const Ts &...ts) noexcept(noexcept(hash_combine_generic(StdHasher{}, t, ts...)))
Definition: Hash.h:669
void toLowerAscii(char *str, size_t length)
Definition: String.cpp:601
const char * string
Definition: Conv.cpp:212

The documentation for this struct was generated from the following file: