• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

/build/buildd-opendnssec_1.3.2-1~bpo60+1-ia64-Ga1C3m/opendnssec-1.3.2/libhsm/src/libhsmdns.h

Go to the documentation of this file.
00001 /* $Id: libhsm.h 826 2009-05-27 18:32:34Z jakob $ */
00002 
00003 /*
00004  * Copyright (c) 2009 .SE (The Internet Infrastructure Foundation).
00005  * Copyright (c) 2009 NLNet Labs.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00018  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00019  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00021  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
00023  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00024  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
00025  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00026  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
00027  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00028  */
00029 
00030 #ifndef HSMDNS_H
00031 #define HSMDNS_H 1
00032 
00033 #include <ldns/ldns.h>
00034 
00035 
00037 typedef struct {
00039     ldns_algorithm algorithm;
00041     uint16_t flags;
00043     uint32_t inception;
00045     uint32_t expiration;
00047     uint16_t keytag;
00049     ldns_rdf *owner;
00050 } hsm_sign_params_t;
00051 
00052 
00056 hsm_sign_params_t *
00057 hsm_sign_params_new();
00058 
00059 
00068 void
00069 hsm_sign_params_free(hsm_sign_params_t *params);
00070 
00071 
00081 ldns_rr*
00082 hsm_sign_rrset(hsm_ctx_t *ctx,
00083                const ldns_rr_list* rrset,
00084                const hsm_key_t *key,
00085                const hsm_sign_params_t *sign_params);
00086 
00087 
00097 ldns_rdf *
00098 hsm_nsec3_hash_name(hsm_ctx_t *ctx,
00099                     ldns_rdf *name,
00100                     uint8_t algorithm,
00101                     uint16_t iterations,
00102                     uint8_t salt_length,
00103                     uint8_t *salt);
00104 
00105 
00115 ldns_rr*
00116 hsm_get_dnskey(hsm_ctx_t *ctx,
00117                const hsm_key_t *key,
00118                const hsm_sign_params_t *sign_params);
00119 
00120 
00126 int
00127 hsm_supported_algorithm(ldns_algorithm algorithm);
00128 
00129 #endif /* HSMDNS_H */

Generated on Sat Dec 17 2011 10:01:47 for OpenDNSSEC-libhsm by  doxygen 1.7.1