xref: /netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/include/pk11/internal.h (revision 4afad4b7fa6d4a0d3dedf41d1587a7250710ae54)
1 /*	$NetBSD: internal.h,v 1.1 2024/02/18 20:57:55 christos Exp $	*/
2 
3 /*
4  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5  *
6  * SPDX-License-Identifier: MPL-2.0
7  *
8  * This Source Code Form is subject to the terms of the Mozilla Public
9  * License, v. 2.0.  If a copy of the MPL was not distributed with this
10  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
11  *
12  * See the COPYRIGHT file distributed with this work for additional
13  * information regarding copyright ownership.
14  */
15 
16 #ifndef PK11_INTERNAL_H
17 #define PK11_INTERNAL_H 1
18 
19 /*! \file pk11/internal.h */
20 
21 #include <pk11/pk11.h>
22 
23 ISC_LANG_BEGINDECLS
24 
25 const char *
26 pk11_get_lib_name(void);
27 
28 void *
29 pk11_mem_get(size_t size);
30 
31 void
32 pk11_mem_put(void *ptr, size_t size);
33 
34 CK_SLOT_ID
35 pk11_get_best_token(pk11_optype_t optype);
36 
37 isc_result_t
38 pk11_numbits(CK_BYTE_PTR data, unsigned int bytecnt, unsigned int *bits);
39 
40 CK_ATTRIBUTE *
41 pk11_attribute_first(const pk11_object_t *obj);
42 
43 CK_ATTRIBUTE *
44 pk11_attribute_next(const pk11_object_t *obj, CK_ATTRIBUTE *attr);
45 
46 CK_ATTRIBUTE *
47 pk11_attribute_bytype(const pk11_object_t *obj, CK_ATTRIBUTE_TYPE type);
48 
49 ISC_LANG_ENDDECLS
50 
51 #endif /* PK11_INTERNAL_H */
52