1*40b1a6e6Sjoerg /*- 2*40b1a6e6Sjoerg * Copyright (c) 2014 Michihiro NAKAJIMA 3*40b1a6e6Sjoerg * All rights reserved. 4*40b1a6e6Sjoerg * 5*40b1a6e6Sjoerg * Redistribution and use in source and binary forms, with or without 6*40b1a6e6Sjoerg * modification, are permitted provided that the following conditions 7*40b1a6e6Sjoerg * are met: 8*40b1a6e6Sjoerg * 1. Redistributions of source code must retain the above copyright 9*40b1a6e6Sjoerg * notice, this list of conditions and the following disclaimer. 10*40b1a6e6Sjoerg * 2. Redistributions in binary form must reproduce the above copyright 11*40b1a6e6Sjoerg * notice, this list of conditions and the following disclaimer in the 12*40b1a6e6Sjoerg * documentation and/or other materials provided with the distribution. 13*40b1a6e6Sjoerg * 14*40b1a6e6Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 15*40b1a6e6Sjoerg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*40b1a6e6Sjoerg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*40b1a6e6Sjoerg * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18*40b1a6e6Sjoerg * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*40b1a6e6Sjoerg * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*40b1a6e6Sjoerg * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*40b1a6e6Sjoerg * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*40b1a6e6Sjoerg * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*40b1a6e6Sjoerg * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*40b1a6e6Sjoerg */ 25*40b1a6e6Sjoerg 26*40b1a6e6Sjoerg #ifndef LAFE_PASSPHRASE_H 27*40b1a6e6Sjoerg #define LAFE_PASSPHRASE_H 28*40b1a6e6Sjoerg 29*40b1a6e6Sjoerg char *lafe_readpassphrase(const char *prompt, char *buf, size_t bufsiz); 30*40b1a6e6Sjoerg 31*40b1a6e6Sjoerg #endif 32