Searched refs:sslUser (Results 1 – 3 of 3) sorted by relevance
13 mtlsMetaParseSslUser(std::string_view sslUser) in mtlsMetaParseSslUser() argument25 size_t colonIndex = sslUser.find(':'); in mtlsMetaParseSslUser()29 sslUser); in mtlsMetaParseSslUser()33 std::string_view entityType = sslUser.substr(0, colonIndex); in mtlsMetaParseSslUser()34 sslUser.remove_prefix(colonIndex + 1); in mtlsMetaParseSslUser()39 entityType, sslUser); in mtlsMetaParseSslUser()44 size_t slashIndex = sslUser.find('/'); in mtlsMetaParseSslUser()49 entity = sslUser; in mtlsMetaParseSslUser()54 entity = sslUser.substr(0, slashIndex); in mtlsMetaParseSslUser()55 sslUser.remove_prefix(slashIndex + 1); in mtlsMetaParseSslUser()[all …]
134 std::string sslUser = getUsernameFromCommonName(commonName); in verifyMtlsUser() local135 if (sslUser.empty()) in verifyMtlsUser()144 sslUser, clientIp, unsupportedClientId, in verifyMtlsUser()
18 std::string sslUser = "user:kawajiri/hostname.facebook.com"; in TEST() local19 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()25 std::string sslUser = "user:kawajiri"; in TEST() local26 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()48 for (const std::string& sslUser : invalidSslUsers) in TEST() local50 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), std::nullopt); in TEST()