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.hpp11 mtlsMetaParseSslUser(std::string_view sslUser) in mtlsMetaParseSslUser() argument
23 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 …]
H A Dmutual_tls.cpp132 std::string sslUser = getUsernameFromCommonName(commonName); in verifyMtlsUser() local
133 if (sslUser.empty()) in verifyMtlsUser()
142 sslUser, clientIp, unsupportedClientId, in verifyMtlsUser()
/openbmc/bmcweb/test/http/
H A Dmutual_tls_meta.cpp16 std::string sslUser = "user:kawajiri/hostname.facebook.com"; in TEST() local
17 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()
23 std::string sslUser = "user:kawajiri"; in TEST() local
24 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), "kawajiri"); in TEST()
46 for (const std::string& sslUser : invalidSslUsers) in TEST() local
48 EXPECT_EQ(mtlsMetaParseSslUser(sslUser), std::nullopt); in TEST()