blob: 57b85f284831e917fda341314f46a978813549c2 [file] [log] [blame]
Jeff Thompson8238d002013-07-10 11:56:49 -07001/**
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
10extern "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 */
17struct 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 */
25static 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