| 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) { |
no test coverage detected