/*
* Portions Copyright (C) 2004-2008, 2010, 2012 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2000-2002 Internet Software Consortium.
*
* 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 ISC AND NETWORK ASSOCIATES DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC 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.
*
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
*
* 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 ISC AND NETWORK ASSOCIATES DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC 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$ */
#ifndef DST_DST_INTERNAL_H
#include <isc/refcount.h>
#ifdef OPENSSL
#endif
extern isc_mem_t *dst__memory_pool;
/***
*** Types
***/
/*% DST Key Structure */
struct dst_key {
unsigned int magic;
union {
void *generic;
#ifdef OPENSSL
#endif
#endif
};
struct dst_context {
unsigned int magic;
union {
void *generic;
#ifdef OPENSSL
#endif
} ctxdata;
};
struct dst_func {
/*
* Context functions
*/
/*
* Key operations
*/
/* conversion functions */
/* cleanup */
void (*cleanup)(void);
};
/*%
* Initializers
*/
isc_result_t dst__openssl_init(void);
unsigned char algorithm);
/*%
* Destructors
*/
void dst__openssl_destroy(void);
/*%
* Memory allocators using the DST memory pool.
*/
void dst__mem_free(void *ptr);
/*%
* Entropy retriever using the DST entropy pool.
*/
/*
* Entropy status hook.
*/
unsigned int dst__entropy_status(void);
#endif /* DST_DST_INTERNAL_H */
/*! \file */