mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -13,9 +13,6 @@
|
|||
|
||||
#ifdef XP_UNIX
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#include <unistd.h> /* for isatty() */
|
||||
#endif
|
||||
|
||||
|
|
@ -28,31 +25,29 @@ static char *quiet_fgets(char *buf, int length, FILE *input);
|
|||
#define QUIET_FGETS fgets
|
||||
#endif
|
||||
|
||||
#if !defined(_WINDOWS)
|
||||
static void
|
||||
echoOff(int fd)
|
||||
{
|
||||
#if defined(XP_UNIX)
|
||||
if (isatty(fd)) {
|
||||
struct termios tio;
|
||||
tcgetattr(fd, &tio);
|
||||
tio.c_lflag &= ~ECHO;
|
||||
tcsetattr(fd, TCSAFLUSH, &tio);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
echoOn(int fd)
|
||||
{
|
||||
#if defined(XP_UNIX)
|
||||
if (isatty(fd)) {
|
||||
struct termios tio;
|
||||
tcgetattr(fd, &tio);
|
||||
tio.c_lflag |= ECHO;
|
||||
tcsetattr(fd, TCSAFLUSH, &tio);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
char *
|
||||
SEC_GetPassword(FILE *input, FILE *output, char *prompt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue