Remove the flags argument to passphrase_read

We don't need the full functionality of the BSD readpassphrase, the default
flags are enough. We can always add them back in later
This commit is contained in:
Shea Levy 2011-09-23 19:14:37 -04:00
parent 6ae00b9040
commit 7039602861
3 changed files with 3 additions and 11 deletions

View File

@ -164,6 +164,6 @@ void test_args(void)
void test_passphrase_read(void)
{
freerdp_passphrase_read(NULL, NULL, 0, 0);
freerdp_passphrase_read(NULL, NULL, 0);
return;
}

View File

@ -23,14 +23,6 @@
#include <stdlib.h>
#include <freerdp/api.h>
#define FREERDP_PASSPHRASE_READ_ECHO_OFF 0x00
#define FREERDP_PASSPHRASE_READ_ECHO_ON 0x01
#define FREERDP_PASSPHRASE_READ_REQUIRE_TTY 0x02
#define FREERDP_PASSPHRASE_READ_FORCELOWER 0x04
#define FREERDP_PASSPHRASE_READ_FORCEUPPER 0x08
#define FREERDP_PASSPHRASE_READ_SEVENBIT 0x10
#define FREERDP_PASSPHRASE_STDIN 0x20
FREERDP_API char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz, int flags);
FREERDP_API char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz);
#endif /* __UTILS_PASSPHRASE_H */

View File

@ -19,7 +19,7 @@
#include <freerdp/utils/passphrase.h>
char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz, int flags)
char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz)
{
return NULL;
}