OpenDNSSEC-libhsm 2.1.13
libhsmdns.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 .SE (The Internet Infrastructure Foundation).
3 * Copyright (c) 2009 NLNet Labs.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#ifndef HSMDNS_H
29#define HSMDNS_H 1
30
31#include <ldns/ldns.h>
32
34typedef struct {
36 ldns_algorithm algorithm;
38 uint16_t flags;
40 uint32_t inception;
42 uint32_t expiration;
44 uint16_t keytag;
46 ldns_rdf *owner;
48
49
54
55
64extern void
66
67
77extern ldns_rr*
79 const ldns_rr_list* rrset,
80 const libhsm_key_t *key,
81 const hsm_sign_params_t *sign_params);
82
83
93extern ldns_rr*
95 const libhsm_key_t *key,
96 const hsm_sign_params_t *sign_params);
97
106extern int hsm_keytag(const char* loc, int alg, int sep, uint16_t* keytag);
107
108#endif /* HSMDNS_H */
hsm_ctx_t * ctx
Definition: hsmutil.c:46
ldns_rr * hsm_sign_rrset(hsm_ctx_t *ctx, const ldns_rr_list *rrset, const libhsm_key_t *key, const hsm_sign_params_t *sign_params)
Definition: libhsm.c:3154
hsm_sign_params_t * hsm_sign_params_new(void)
Definition: libhsm.c:2448
ldns_rr * hsm_get_dnskey(hsm_ctx_t *ctx, const libhsm_key_t *key, const hsm_sign_params_t *sign_params)
Definition: libhsm.c:3267
int hsm_keytag(const char *loc, int alg, int sep, uint16_t *keytag)
Definition: libhsm.c:3211
void hsm_sign_params_free(hsm_sign_params_t *params)
Definition: libhsm.c:2462
uint32_t inception
Definition: libhsmdns.h:40
ldns_algorithm algorithm
Definition: libhsmdns.h:36
ldns_rdf * owner
Definition: libhsmdns.h:46
uint16_t flags
Definition: libhsmdns.h:38
uint16_t keytag
Definition: libhsmdns.h:44
uint32_t expiration
Definition: libhsmdns.h:42