aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_credential_service.h
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-02 14:20:08 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-02 14:20:08 +0100
commit113150fb91211dc0cc0901c2373f148b8486d9c9 (patch)
treee442fc40d3d7529d0d5220b328b9c720612b8726 /src/include/gnunet_credential_service.h
parent45c17975732ef486a7ef4c64fb7161c89275bf05 (diff)
downloadgnunet-113150fb91211dc0cc0901c2373f148b8486d9c9.tar.gz
gnunet-113150fb91211dc0cc0901c2373f148b8486d9c9.zip
- add signatures to creds, add converter
Diffstat (limited to 'src/include/gnunet_credential_service.h')
-rw-r--r--src/include/gnunet_credential_service.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h
index 5675cd990..b996b77db 100644
--- a/src/include/gnunet_credential_service.h
+++ b/src/include/gnunet_credential_service.h
@@ -79,16 +79,27 @@ GNUNET_NETWORK_STRUCT_BEGIN
79struct GNUNET_CREDENTIAL_CredentialRecordData { 79struct GNUNET_CREDENTIAL_CredentialRecordData {
80 80
81 /** 81 /**
82 * Public key of the subject this credential was issued to 82 * The signature for this credential by the issuer
83 */ 83 */
84 struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; 84 struct GNUNET_CRYPTO_EcdsaSignature sig;
85 85
86
86 /** 87 /**
87 * Public key of the issuer 88 * Public key of the issuer
88 */ 89 */
89 struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; 90 struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key;
91
92 /**
93 * Signature purpose (data to sign, kind of signature)
94 */
95 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
90 96
91 /** 97 /**
98 * Public key of the subject this credential was issued to
99 */
100 struct GNUNET_CRYPTO_EcdsaPublicKey subject_key;
101
102 /**
92 * Flags for this credential 103 * Flags for this credential
93 */ 104 */
94 uint32_t credential_flags GNUNET_PACKED; 105 uint32_t credential_flags GNUNET_PACKED;
@@ -98,12 +109,7 @@ struct GNUNET_CREDENTIAL_CredentialRecordData {
98 */ 109 */
99 uint64_t expiration GNUNET_PACKED; 110 uint64_t expiration GNUNET_PACKED;
100 111
101 /** 112 /**
102 * The signature for this credential by the issuer
103 */
104 struct GNUNET_CRYPTO_EcdsaSignature sig;
105
106 /**
107 * Followed by the attribute string 113 * Followed by the attribute string
108 */ 114 */
109}; 115};