HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__md5sum()
13b8e81810e0Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libcrmcommon: New pcmk__md5sum()

To replace crm_md5sum().

This returns (gchar *) to avoid a completely pointless string copy.
At time of writing, later commits incrementally update the
non-deprecated callers to use (gchar *) as well without the need to make
a copy.

However, I'm undecided about whether to stick with that approach, or
just to keep calling pcmkstr_copy() in pcmkmd5sum(). It's a useless
copy, BUT it lets the rest of the call chain use (char *) without
worrying about g_free() and such.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 23 2025, 7:08 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.