2020-10-29 13:48:59 +01:00
|
|
|
#ifndef GET_PASSWORD_H
|
|
|
|
|
#define GET_PASSWORD_H
|
|
|
|
|
/*
|
2021-11-03 23:08:24 +01:00
|
|
|
Copyright (c) 2012-2021 Roger Light <roger@atchoo.org>
|
2020-10-29 13:48:59 +01:00
|
|
|
|
|
|
|
|
All rights reserved. This program and the accompanying materials
|
2020-11-25 18:34:21 +01:00
|
|
|
are made available under the terms of the Eclipse Public License 2.0
|
2020-10-29 13:48:59 +01:00
|
|
|
and Eclipse Distribution License v1.0 which accompany this distribution.
|
2021-10-05 16:20:37 +02:00
|
|
|
|
2020-10-29 13:48:59 +01:00
|
|
|
The Eclipse Public License is available at
|
2020-11-25 18:34:21 +01:00
|
|
|
https://www.eclipse.org/legal/epl-2.0/
|
2020-10-29 13:48:59 +01:00
|
|
|
and the Eclipse Distribution License is available at
|
|
|
|
|
http://www.eclipse.org/org/documents/edl-v10.php.
|
2021-10-05 16:20:37 +02:00
|
|
|
|
2021-01-20 12:46:18 +01:00
|
|
|
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
|
2020-12-01 19:21:59 +01:00
|
|
|
|
2020-10-29 13:48:59 +01:00
|
|
|
Contributors:
|
|
|
|
|
Roger Light - initial implementation and documentation.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-10-29 15:35:50 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2020-10-29 13:48:59 +01:00
|
|
|
void get_password__reset_term(void);
|
2020-10-29 15:35:50 +01:00
|
|
|
int get_password(const char *prompt, const char *verify_prompt, bool quiet, char *password, size_t len);
|
2020-10-29 13:48:59 +01:00
|
|
|
|
|
|
|
|
#endif
|