sign-ed25519: Add some comments for data structure
authorColin Walters <walters@verbum.org>
Tue, 18 Jul 2023 11:53:37 +0000 (07:53 -0400)
committerColin Walters <walters@verbum.org>
Tue, 18 Jul 2023 11:55:14 +0000 (07:55 -0400)
Like poor man's generics.

src/libostree/ostree-sign-ed25519.c

index 0ef64d3c804bd2152fd3068c880ff690f76bde19..bbe10e8767991805f50c001416dd6da4e4087e34 100644 (file)
@@ -48,9 +48,9 @@ struct _OstreeSignEd25519
 {
   GObject parent;
   ed25519_state state;
-  guchar *secret_key;
-  GList *public_keys;
-  GList *revoked_keys;
+  guchar *secret_key;  /* malloc'd buffer of length OSTREE_SIGN_ED25519_SECKEY_SIZE */
+  GList *public_keys;  /* malloc'd buffer of length OSTREE_SIGN_ED25519_PUBKEY_SIZE */
+  GList *revoked_keys; /* malloc'd buffer of length OSTREE_SIGN_ED25519_PUBKEY_SIZE */
 };
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC