Home
last modified time | relevance | path

Searched refs:sslUser (Results 1 – 3 of 3) sorted by relevance

/openbmc/bmcweb/http/
H A Dmutual_tls_meta.hpp13 mtlsMetaParseSslUser(std::string_view sslUser) in mtlsMetaParseSslUser() argument
25 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 …]
H A Dmutual_tls.cpp134 std::string sslUser = getUsernameFromCommonName(commonName); in verifyMtlsUser() local
135 if (sslUser.empty()) in verifyMtlsUser()
144 sslUser, clientIp, unsupportedClientId, in verifyMtlsUser()
/openbmc/bmcweb/test/http/
H A Dmutual_tls_meta.cpp18 std::string sslUser = "user:kawajiri/hostname.facebook.com"; in TEST() local
19 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()
25 std::string sslUser = "user:kawajiri"; in TEST() local
26 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()
48 for (const std::string& sslUser : invalidSslUsers) in TEST() local
50 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), std::nullopt); in TEST()