Jeff Thompson | 8238d00 | 2013-07-10 11:56:49 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @author: Jeff Thompson |
| 3 | * See COPYING for copyright and distribution information. |
| 4 | */ |
| 5 | |
| 6 | #ifndef NDN_PUBLISHERPUBLICKEYDIGEST_H |
| 7 | #define NDN_PUBLISHERPUBLICKEYDIGEST_H |
| 8 | |
| 9 | #ifdef __cplusplus |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | |
| 13 | /** |
| 14 | * A PublisherPublicKeyDigest holds a pointer to the publisher public key digest value, if any. |
| 15 | * We make a separate struct since this is used by multiple other structs. |
| 16 | */ |
| 17 | struct ndn_PublisherPublicKeyDigest { |
| 18 | unsigned char *publisherPublicKeyDigest; /**< pointer to pre-allocated buffer. 0 for none */ |
| 19 | unsigned int publisherPublicKeyDigestLength; /**< length of publisherPublicKeyDigest. 0 for none */ |
| 20 | }; |
| 21 | |
| 22 | /** |
| 23 | * Initialize an ndn_PublisherPublicKeyDigest struct with 0 for none. |
| 24 | */ |
| 25 | static inline void ndn_PublisherPublicKeyDigest_init(struct ndn_PublisherPublicKeyDigest *self) |
| 26 | { |
| 27 | self->publisherPublicKeyDigest = 0; |
| 28 | self->publisherPublicKeyDigestLength = 0; |
| 29 | } |
| 30 | |
| 31 | #ifdef __cplusplus |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #endif |