diff options
author | Andreas Ebner <pansy007@googlemail.com> | 2019-07-09 17:53:33 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:15:06 +0200 |
commit | 5091edcec16455febee99afec20e0ffe6cc59c21 (patch) | |
tree | c7d517e26ca7d3d4f863b4154361293bc79d733e /src/include | |
parent | fc58d9d4241ed2dcd4b492b4f922ba959449a697 (diff) | |
download | gnunet-5091edcec16455febee99afec20e0ffe6cc59c21.tar.gz gnunet-5091edcec16455febee99afec20e0ffe6cc59c21.zip |
Cleanup, additional input checks, renaming, simplification:
- introducing own GNUNET_SIGNATURE_PURPOSE_DELEGATE
- renaming of cred/crd in delegation_misc.c
- renamed extension cmd para to import
- changed subject key/attr parsing from memcpy/malloc to strtok
- only allow to create delegates to expire absolute not relative (prevent reusing created delegation signatures)
- check subject key and reuse expiration of import/signed delegation
- replaced strdup() part of delegation_misc.c and credential_serialization.c with pointers
- uncommented return after detection of unverifyable signatures
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_signatures.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h index 6801c641e..1d6d5a229 100644 --- a/src/include/gnunet_signatures.h +++ b/src/include/gnunet_signatures.h | |||
@@ -241,6 +241,10 @@ extern "C" | |||
241 | */ | 241 | */ |
242 | #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37 | 242 | #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37 |
243 | 243 | ||
244 | /** | ||
245 | * Signature for a GNUnet delegate | ||
246 | */ | ||
247 | #define GNUNET_SIGNATURE_PURPOSE_DELEGATE 38 | ||
244 | 248 | ||
245 | #if 0 /* keep Emacsens' auto-indent happy */ | 249 | #if 0 /* keep Emacsens' auto-indent happy */ |
246 | { | 250 | { |