1*13b8cf66Sagc /*- 2*13b8cf66Sagc * Copyright (c) 2009 The NetBSD Foundation, Inc. 3*13b8cf66Sagc * All rights reserved. 4*13b8cf66Sagc * 5*13b8cf66Sagc * This code is derived from software contributed to The NetBSD Foundation 6*13b8cf66Sagc * by Alistair Crooks (agc@NetBSD.org) 7*13b8cf66Sagc * 8*13b8cf66Sagc * Redistribution and use in source and binary forms, with or without 9*13b8cf66Sagc * modification, are permitted provided that the following conditions 10*13b8cf66Sagc * are met: 11*13b8cf66Sagc * 1. Redistributions of source code must retain the above copyright 12*13b8cf66Sagc * notice, this list of conditions and the following disclaimer. 13*13b8cf66Sagc * 2. Redistributions in binary form must reproduce the above copyright 14*13b8cf66Sagc * notice, this list of conditions and the following disclaimer in the 15*13b8cf66Sagc * documentation and/or other materials provided with the distribution. 16*13b8cf66Sagc * 17*13b8cf66Sagc * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18*13b8cf66Sagc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19*13b8cf66Sagc * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20*13b8cf66Sagc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21*13b8cf66Sagc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22*13b8cf66Sagc * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23*13b8cf66Sagc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24*13b8cf66Sagc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25*13b8cf66Sagc * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26*13b8cf66Sagc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27*13b8cf66Sagc * POSSIBILITY OF SUCH DAMAGE. 28*13b8cf66Sagc */ 29*13b8cf66Sagc #ifndef B64_H_ 30*13b8cf66Sagc #define B64_H_ 20091223 31*13b8cf66Sagc 32*13b8cf66Sagc int b64encode(const char *in, const size_t insize, void *vp, size_t outsize, int linesize); 33*13b8cf66Sagc int b64decode(const char *in, const size_t insize, void *vp, size_t outsize); 34*13b8cf66Sagc 35*13b8cf66Sagc #endif 36