confkeys.h revision 499b34cea04a46823d003d4c0520c8b03e8513cb
/*
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: confkeys.h,v 1.22 2001/01/09 21:52:31 bwelling Exp $ */
#ifndef DNS_CONFKEYS_H
#define DNS_CONFKEYS_H 1
/*****
***** Module Info
*****/
/*
* The ADTs for the key values defined in a named.conf config file.
*/
/*
*
* MP:
*
* Caller must to all necessary locking.
*
* Reliability:
*
* Not applicable.
*
* Resources:
*
* Memory allocators supplied by caller
*
* Security:
*
* Not applicable.
*
* Standards:
*
* Not applicable.
*/
/***
*** Imports
***/
#include <stdio.h>
/***
*** Types
***/
typedef struct dns_c_pubkey dns_c_pubkey_t;
typedef struct dns_c_pklist dns_c_pklist_t;
typedef struct dns_c_tkey dns_c_tkey_t;
typedef struct dns_c_tkey_list dns_c_tkeylist_t;
typedef struct dns_c_kdef dns_c_kdef_t;
typedef struct dns_c_kdef_list dns_c_kdeflist_t;
typedef struct dns_c_kid dns_c_kid_t;
typedef struct dns_c_kid_list dns_c_kidlist_t;
/*
* The type for holding a trusted key value.
*/
struct dns_c_tkey {
char *domain;
};
/*
* A list of trusted keys.
*/
struct dns_c_tkey_list {
};
/*
* A public key value.
*/
struct dns_c_pubkey {
char *key;
};
/*
* A list of pubkeys.
*/
struct dns_c_pklist {
};
/*
* A private key definition from a 'key' statement.
*/
struct dns_c_kdef {
char *keyid;
char *algorithm;
char *secret;
};
/*
* A list of private keys.
*/
struct dns_c_kdef_list {
};
/*
* A key id for use in a server statement 'keys' list.
*/
struct dns_c_kid {
char *keyid;
};
/*
* List of key ids for a 'server' statement.
*/
struct dns_c_kid_list {
};
/***
*** Functions
***/
const char *key,
dns_c_pubkey_t **pubkey);
dns_c_kid_t **retval);
dns_c_kid_t **keyid);
dns_c_kdef_t **retval);
dns_c_kdef_t **keyid);
dns_c_kdef_t *src);
const char *algorithm);
dns_c_tkey_t *src);
#endif /* DNS_CONFKEYS_H */