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:
parent
6ae00b9040
commit
7039602861
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user