summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sign-ed25519.h
diff options
context:
space:
mode:
authorDenis Pynkin <denis.pynkin@collabora.com>2019-09-05 02:04:25 +0300
committerDenis Pynkin <denis.pynkin@collabora.com>2020-03-25 15:23:54 +0300
commit557f42360945b4f70196d7ec4c50443e10918573 (patch)
tree7830926fa4ca32b621b508f6c96da45d046fa966 /src/libostree/ostree-sign-ed25519.h
parent5fc2ddff30c5c8b40e60fd4dd7a6b8c1fab2e98e (diff)
downloadostree-557f42360945b4f70196d7ec4c50443e10918573.tar.gz
sign: fix memory leaks and code cleanup
Return `const char *` instead of copy of the string -- this allow to avoid unneeded copying and memory leaks in some constructions. Minor code cleanup and optimisations. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Diffstat (limited to 'src/libostree/ostree-sign-ed25519.h')
-rw-r--r--src/libostree/ostree-sign-ed25519.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libostree/ostree-sign-ed25519.h b/src/libostree/ostree-sign-ed25519.h
index 797ac138..eb8f6701 100644
--- a/src/libostree/ostree-sign-ed25519.h
+++ b/src/libostree/ostree-sign-ed25519.h
@@ -46,9 +46,9 @@ gboolean ostree_sign_ed25519_data (OstreeSign *self,
GCancellable *cancellable,
GError **error);
-gchar * ostree_sign_ed25519_get_name (OstreeSign *self);
-gchar * ostree_sign_ed25519_metadata_key (OstreeSign *self);
-gchar * ostree_sign_ed25519_metadata_format (OstreeSign *self);
+const gchar * ostree_sign_ed25519_get_name (OstreeSign *self);
+const gchar * ostree_sign_ed25519_metadata_key (OstreeSign *self);
+const gchar * ostree_sign_ed25519_metadata_format (OstreeSign *self);
gboolean ostree_sign_ed25519_metadata_verify (OstreeSign *self,
GBytes *data,