summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sign.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2020-05-03 17:04:27 +0000
committerColin Walters <walters@verbum.org>2020-05-03 17:04:27 +0000
commit811082063c0dfd895a2c01d446af1411951f285b (patch)
treeb1d5f78bb512713366327f74892b238b63f43e2a /src/libostree/ostree-sign.c
parent654983ee3154c1f087585a478f984b985337f0bf (diff)
downloadostree-811082063c0dfd895a2c01d446af1411951f285b.tar.gz
signing: Add #define OSTREE_SIGN_NAME_ED25519
Using `#define` or constants instead of strings helps avoid typos and encourages documentation.
Diffstat (limited to 'src/libostree/ostree-sign.c')
-rw-r--r--src/libostree/ostree-sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-sign.c b/src/libostree/ostree-sign.c
index 281fabc8..68447da6 100644
--- a/src/libostree/ostree-sign.c
+++ b/src/libostree/ostree-sign.c
@@ -62,7 +62,7 @@ typedef struct
_sign_type sign_types[] =
{
#if defined(HAVE_LIBSODIUM)
- {"ed25519", 0},
+ {OSTREE_SIGN_NAME_ED25519, 0},
#endif
{"dummy", 0}
};