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

Function ParseUserInfo

library/cpp/neh/https.cpp:344–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 }
343
344 void ParseUserInfo(const TParsedLocation& loc, TString& cert, TString& pvtKey) {
345 if (!loc.UserInfo) {
346 return;
347 }
348
349 TStringBuf kws = loc.UserInfo;
350 while (kws) {
351 TStringBuf name = kws.NextTok('=');
352 TStringBuf value = kws.NextTok(';');
353 if (TStringBuf("cert") == name) {
354 cert = value;
355 } else if (TStringBuf("key") == name) {
356 pvtKey = value;
357 }
358 }
359 }
360 }
361
362 static inline void PrepareSocket(SOCKET s) {

Callers 2

TSslCtxServerMethod · 0.85
HandshakeMethod · 0.85

Calls 1

NextTokMethod · 0.45

Tested by

no test coverage detected