get_password.h 803 B

1234567891011121314151617181920212223242526
  1. #ifndef GET_PASSWORD_H
  2. #define GET_PASSWORD_H
  3. /*
  4. Copyright (c) 2012-2020 Roger Light <roger@atchoo.org>
  5. All rights reserved. This program and the accompanying materials
  6. are made available under the terms of the Eclipse Public License 2.0
  7. and Eclipse Distribution License v1.0 which accompany this distribution.
  8. The Eclipse Public License is available at
  9. https://www.eclipse.org/legal/epl-2.0/
  10. and the Eclipse Distribution License is available at
  11. http://www.eclipse.org/org/documents/edl-v10.php.
  12. SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
  13. Contributors:
  14. Roger Light - initial implementation and documentation.
  15. */
  16. #include <stdbool.h>
  17. void get_password__reset_term(void);
  18. int get_password(const char *prompt, const char *verify_prompt, bool quiet, char *password, size_t len);
  19. #endif