userver
C++ Async Framework
Loading...
Searching...
No Matches
boost_uuid5.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/utils/boost_uuid5.hpp
4
/// @brief @copybrief utils::generators::GenerateBoostUuidV5()
5
6
#
include
<
string_view
>
7
8
#
include
<
boost
/
uuid
/
uuid
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
utils
::generators {
13
14
/// RFC 9562 name-based UUID namespace IDs (same as boost::uuids::ns::*, see boost_uuid5.cpp).
15
namespace
ns
{
16
17
extern
const
boost::uuids::uuid kDns;
18
extern
const
boost::uuids::uuid kUrl;
19
extern
const
boost::uuids::uuid kOid;
20
extern
const
boost::uuids::uuid kX500dn;
21
22
}
// namespace ns
23
24
/// Generates UUIDv5 (name-based, SHA-1) for the given namespace and name
25
///
26
/// @see https://datatracker.ietf.org/doc/html/rfc9562#section-5.5
27
boost::uuids::uuid
GenerateBoostUuidV5
(
const
boost::uuids::uuid& namespace_uuid, std::string_view name);
28
29
}
// namespace utils::generators
30
31
USERVER_NAMESPACE_END
userver
utils
boost_uuid5.hpp
Generated on Thu Apr 16 2026 13:37:03 for userver by
Doxygen
1.13.2