MCPcopy Create free account
hub / github.com/catboost/catboost / CheckCertHostname

Function CheckCertHostname

library/cpp/neh/https.cpp:331–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329 }
330
331 bool CheckCertHostname(X509* cert, TStringBuf hostname) {
332 switch (MatchCertAltNames(cert, hostname)) {
333 case MATCH_FOUND:
334 return true;
335 break;
336 case NO_EXTENSION:
337 return MatchCertCommonName(cert, hostname) == MATCH_FOUND;
338 break;
339 default:
340 return false;
341 }
342 }
343
344 void ParseUserInfo(const TParsedLocation& loc, TString& cert, TString& pvtKey) {
345 if (!loc.UserInfo) {

Callers 1

HandshakeMethod · 0.85

Calls 2

MatchCertAltNamesFunction · 0.85
MatchCertCommonNameFunction · 0.85

Tested by

no test coverage detected