OpenDNSSEC-libhsm
1.3.9
Main Page
Data Structures
Files
File List
Globals
libhsm
src
libhsmdns.h
Go to the documentation of this file.
1
/* $Id: libhsm.h 826 2009-05-27 18:32:34Z jakob $ */
2
3
/*
4
* Copyright (c) 2009 .SE (The Internet Infrastructure Foundation).
5
* Copyright (c) 2009 NLNet Labs.
6
* All rights reserved.
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions
10
* are met:
11
* 1. Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the distribution.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
21
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
*/
29
30
#ifndef HSMDNS_H
31
#define HSMDNS_H 1
32
33
#include <ldns/ldns.h>
34
35
37
typedef
struct
{
39
ldns_algorithm
algorithm
;
41
uint16_t
flags
;
43
uint32_t
inception
;
45
uint32_t
expiration
;
47
uint16_t
keytag
;
49
ldns_rdf *
owner
;
50
}
hsm_sign_params_t
;
51
52
56
hsm_sign_params_t
*
57
hsm_sign_params_new
();
58
59
68
void
69
hsm_sign_params_free
(
hsm_sign_params_t
*params);
70
71
81
ldns_rr*
82
hsm_sign_rrset
(
hsm_ctx_t
*ctx,
83
const
ldns_rr_list* rrset,
84
const
hsm_key_t
*key,
85
const
hsm_sign_params_t
*sign_params);
86
87
97
ldns_rdf *
98
hsm_nsec3_hash_name
(
hsm_ctx_t
*ctx,
99
ldns_rdf *name,
100
uint8_t
algorithm
,
101
uint16_t iterations,
102
uint8_t salt_length,
103
uint8_t *salt);
104
105
115
ldns_rr*
116
hsm_get_dnskey
(
hsm_ctx_t
*ctx,
117
const
hsm_key_t
*key,
118
const
hsm_sign_params_t
*sign_params);
119
120
126
int
127
hsm_supported_algorithm
(ldns_algorithm
algorithm
);
128
129
#endif
/* HSMDNS_H */
Generated on Tue Jan 15 2013 19:14:34 for OpenDNSSEC-libhsm by
1.8.2