Searched refs:sslUser (Results 1 – 3 of 3) sorted by relevance
11 mtlsMetaParseSslUser(std::string_view sslUser) in mtlsMetaParseSslUser() argument23 size_t colonIndex = sslUser.find(':'); in mtlsMetaParseSslUser()27 sslUser); in mtlsMetaParseSslUser()32 sslUser.remove_prefix(colonIndex + 1); in mtlsMetaParseSslUser()37 entityType, sslUser); in mtlsMetaParseSslUser()42 size_t slashIndex = sslUser.find('/'); in mtlsMetaParseSslUser()47 entity = sslUser; in mtlsMetaParseSslUser()52 entity = sslUser.substr(0, slashIndex); in mtlsMetaParseSslUser()53 sslUser.remove_prefix(slashIndex + 1); in mtlsMetaParseSslUser()60 entity, sslUser); in mtlsMetaParseSslUser()[all …]
132 std::string sslUser = getUsernameFromCommonName(commonName); in verifyMtlsUser() local133 if (sslUser.empty()) in verifyMtlsUser()142 sslUser, clientIp, unsupportedClientId, in verifyMtlsUser()
16 std::string sslUser = "user:kawajiri/hostname.facebook.com"; in TEST() local17 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()23 std::string sslUser = "user:kawajiri"; in TEST() local24 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()46 for (const std::string& sslUser : invalidSslUsers) in TEST() local48 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), std::nullopt); in TEST()