mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
initial commit
This commit is contained in:
22
libpcp/getpass.h
Normal file
22
libpcp/getpass.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef _HAVE_PCP_GETPASS
|
||||
#define _HAVE_PCP_GETPASS
|
||||
|
||||
/*
|
||||
* (unportable) functions to turn on/off terminal echo
|
||||
* using termios functions. might compile however on
|
||||
* most unices, tested on FreeBSD only.
|
||||
*/
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <termios.h>
|
||||
|
||||
|
||||
void pcp_echo_off();
|
||||
void pcp_echo_on();
|
||||
char *pcp_get_stdin();
|
||||
char *pcp_get_passphrase(char *prompt);
|
||||
|
||||
#endif // _HAVE_PCP_GETPASS
|
||||
Reference in New Issue
Block a user