blob: d54bfc8a57d504b3fe0f17b28291981d6dfc9ebd [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
Jeff Thompson2d27e2f2013-08-09 12:55:00 -07007#define NDN_PUBLISHERPUBLICKEYDIGEST_H
Jeff Thompson8238d002013-07-10 11:56:49 -07008
Jeff Thompson2d27e2f2013-08-09 12:55:00 -07009#ifdef __cplusplus
Jeff Thompson8238d002013-07-10 11:56:49 -070010extern "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 {
Jeff Thompson2d27e2f2013-08-09 12:55:00 -070018 unsigned char *publisherPublicKeyDigest; /**< pointer to pre-allocated buffer. 0 for none */
Jeff Thompson8238d002013-07-10 11:56:49 -070019 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
Jeff Thompson2d27e2f2013-08-09 12:55:00 -070031#ifdef __cplusplus
Jeff Thompson8238d002013-07-10 11:56:49 -070032}
33#endif
34
35#endif