OpenDNSSEC-libhsm
2.1.6
src
lib
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
34
typedef
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
;
47
}
hsm_sign_params_t
;
48
49
53
hsm_sign_params_t
*
hsm_sign_params_new
(
void
);
54
55
64
void
65
hsm_sign_params_free
(
hsm_sign_params_t
*params);
66
67
77
ldns_rr*
78
hsm_sign_rrset
(
hsm_ctx_t
*
ctx
,
79
const
ldns_rr_list* rrset,
80
const
libhsm_key_t
*key,
81
const
hsm_sign_params_t
*sign_params);
82
83
93
ldns_rr*
94
hsm_get_dnskey
(
hsm_ctx_t
*
ctx
,
95
const
libhsm_key_t
*key,
96
const
hsm_sign_params_t
*sign_params);
97
106
int
hsm_keytag
(
const
char
* loc,
int
alg,
int
ksk, uint16_t* keytag);
107
108
#endif
/* HSMDNS_H */
hsm_sign_params_t::flags
uint16_t flags
Definition:
libhsmdns.h:38
hsm_sign_params_new
hsm_sign_params_t * hsm_sign_params_new(void)
Definition:
libhsm.c:2343
hsm_sign_params_t::owner
ldns_rdf * owner
Definition:
libhsmdns.h:46
hsm_sign_params_t::keytag
uint16_t keytag
Definition:
libhsmdns.h:44
libhsm_key_t
Definition:
libhsm.h:102
hsm_sign_params_t::inception
uint32_t inception
Definition:
libhsmdns.h:40
hsm_sign_params_free
void hsm_sign_params_free(hsm_sign_params_t *params)
Definition:
libhsm.c:2360
hsm_sign_rrset
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:2957
hsm_keytag
int hsm_keytag(const char *loc, int alg, int ksk, uint16_t *keytag)
Definition:
libhsm.c:3014
ctx
hsm_ctx_t * ctx
Definition:
hsmutil.c:46
hsm_get_dnskey
ldns_rr * hsm_get_dnskey(hsm_ctx_t *ctx, const libhsm_key_t *key, const hsm_sign_params_t *sign_params)
Definition:
libhsm.c:3070
hsm_sign_params_t::algorithm
ldns_algorithm algorithm
Definition:
libhsmdns.h:36
hsm_sign_params_t
Definition:
libhsmdns.h:34
hsm_ctx_t
Definition:
libhsm.h:130
hsm_sign_params_t::expiration
uint32_t expiration
Definition:
libhsmdns.h:42
Generated by
1.8.18