1*65a6eb62Schristos /* $NetBSD: ui.h,v 1.2 2023/06/20 17:22:01 christos Exp $ */ 29b6abc87Schristos 39b6abc87Schristos /* 49b6abc87Schristos * Copyright (c) 2005 Kungliga Tekniska Högskolan 59b6abc87Schristos * (Royal Institute of Technology, Stockholm, Sweden). 69b6abc87Schristos * All rights reserved. 79b6abc87Schristos * 89b6abc87Schristos * Redistribution and use in source and binary forms, with or without 99b6abc87Schristos * modification, are permitted provided that the following conditions 109b6abc87Schristos * are met: 119b6abc87Schristos * 129b6abc87Schristos * 1. Redistributions of source code must retain the above copyright 139b6abc87Schristos * notice, this list of conditions and the following disclaimer. 149b6abc87Schristos * 159b6abc87Schristos * 2. Redistributions in binary form must reproduce the above copyright 169b6abc87Schristos * notice, this list of conditions and the following disclaimer in the 179b6abc87Schristos * documentation and/or other materials provided with the distribution. 189b6abc87Schristos * 199b6abc87Schristos * 3. Neither the name of the Institute nor the names of its contributors 209b6abc87Schristos * may be used to endorse or promote products derived from this software 219b6abc87Schristos * without specific prior written permission. 229b6abc87Schristos * 239b6abc87Schristos * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 249b6abc87Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 259b6abc87Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 269b6abc87Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 279b6abc87Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 289b6abc87Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 299b6abc87Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 309b6abc87Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 319b6abc87Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 329b6abc87Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 339b6abc87Schristos * SUCH DAMAGE. 349b6abc87Schristos */ 359b6abc87Schristos 369b6abc87Schristos /* Id */ 379b6abc87Schristos 389b6abc87Schristos #ifndef _HEIM_UI_H 399b6abc87Schristos #define _HEIM_UI_H 1 409b6abc87Schristos 419b6abc87Schristos /* symbol renaming */ 42*65a6eb62Schristos #if 0 43*65a6eb62Schristos /* use the OpenSSL symbol, not worth it for a "Verify failed" printf */ 449b6abc87Schristos #define UI_UTIL_read_pw_string hc_UI_UTIL_read_pw_string 45*65a6eb62Schristos #endif 469b6abc87Schristos 479b6abc87Schristos /* OpenSSL API extensions */ 489b6abc87Schristos #define UI_UTIL_FLAG_VERIFY 0x1 /* ask to verify password */ 499b6abc87Schristos #define UI_UTIL_FLAG_VERIFY_SILENT 0x2 /* silence on verify failure */ 509b6abc87Schristos 519b6abc87Schristos int UI_UTIL_read_pw_string(char *, int, const char *, int); /* XXX */ 529b6abc87Schristos 539b6abc87Schristos #endif /* _HEIM_UI_H */ 549b6abc87Schristos 55