125f78d91Sagc /*- 225f78d91Sagc * Copyright (c) 2012 Alistair Crooks <agc@NetBSD.org> 325f78d91Sagc * All rights reserved. 425f78d91Sagc * 525f78d91Sagc * Redistribution and use in source and binary forms, with or without 625f78d91Sagc * modification, are permitted provided that the following conditions 725f78d91Sagc * are met: 825f78d91Sagc * 1. Redistributions of source code must retain the above copyright 925f78d91Sagc * notice, this list of conditions and the following disclaimer. 1025f78d91Sagc * 2. Redistributions in binary form must reproduce the above copyright 1125f78d91Sagc * notice, this list of conditions and the following disclaimer in the 1225f78d91Sagc * documentation and/or other materials provided with the distribution. 1325f78d91Sagc * 1425f78d91Sagc * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1525f78d91Sagc * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1625f78d91Sagc * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1725f78d91Sagc * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1825f78d91Sagc * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1925f78d91Sagc * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2025f78d91Sagc * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2125f78d91Sagc * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2225f78d91Sagc * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2325f78d91Sagc * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2425f78d91Sagc */ 2525f78d91Sagc #ifndef MISC_H_ 2625f78d91Sagc #define MISC_H_ 20110705 2725f78d91Sagc 2825f78d91Sagc #include <sys/types.h> 2925f78d91Sagc 3025f78d91Sagc #include <inttypes.h> 3125f78d91Sagc 3225f78d91Sagc #ifndef __BEGIN_DECLS 3325f78d91Sagc # if defined(__cplusplus) 3425f78d91Sagc # define __BEGIN_DECLS extern "C" { 3525f78d91Sagc # define __END_DECLS } 3625f78d91Sagc # else 3725f78d91Sagc # define __BEGIN_DECLS 3825f78d91Sagc # define __END_DECLS 3925f78d91Sagc # endif 4025f78d91Sagc #endif 4125f78d91Sagc 4225f78d91Sagc __BEGIN_DECLS 4325f78d91Sagc 4425f78d91Sagc void *netpgp_allocate(size_t /*n*/, size_t /*nels*/); 4525f78d91Sagc void netpgp_deallocate(void */*ptr*/, size_t /*size*/); 46*32b86961Sagc ssize_t netpgp_hexdump(const void */*in*/, const size_t /*inlen*/, void */*out*/, size_t /*outsize*/); 4725f78d91Sagc 4825f78d91Sagc __END_DECLS 4925f78d91Sagc 5025f78d91Sagc #endif 51