mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 10:09:36 +02:00
GH# 878: check for valid hex characters, support SHA-1 name-based UUIDs (v5)
This commit is contained in:
@@ -61,6 +61,13 @@ public:
|
||||
|
||||
UUID createFromName(const UUID& nsid, const std::string& name, DigestEngine& de);
|
||||
/// Creates a name-based UUID, using the given digest engine.
|
||||
///
|
||||
/// Note: in order to create a standard-compliant UUID, the given DigestEngine
|
||||
/// must be either an instance of MD5Engine or SHA1Engine. The version field of
|
||||
/// the UUID will be set accordingly.
|
||||
|
||||
UUID createFromName(const UUID& nsid, const std::string& name, DigestEngine& de, UUID::Version version);
|
||||
/// Creates a name-based UUID, using the given digest engine and version.
|
||||
|
||||
UUID createRandom();
|
||||
/// Creates a random UUID.
|
||||
|
||||
Reference in New Issue
Block a user