internal.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id$ */
00018 
00019 #ifndef PK11_INTERNAL_H
00020 #define PK11_INTERNAL_H 1
00021 
00022 /*! \file pk11/internal.h */
00023 
00024 ISC_LANG_BEGINDECLS
00025 
00026 const char *pk11_get_lib_name(void);
00027 
00028 void *pk11_mem_get(size_t size);
00029 
00030 void pk11_mem_put(void *ptr, size_t size);
00031 
00032 CK_SLOT_ID pk11_get_best_token(pk11_optype_t optype);
00033 
00034 unsigned int pk11_numbits(CK_BYTE_PTR data, unsigned int bytecnt);
00035 
00036 CK_ATTRIBUTE *pk11_attribute_first(const pk11_object_t *obj);
00037 
00038 CK_ATTRIBUTE *pk11_attribute_next(const pk11_object_t *obj,
00039                                   CK_ATTRIBUTE *attr);
00040 
00041 CK_ATTRIBUTE *pk11_attribute_bytype(const pk11_object_t *obj,
00042                                     CK_ATTRIBUTE_TYPE type);
00043 
00044 ISC_LANG_ENDDECLS
00045 
00046 #endif /* PK11_INTERNAL_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha