- (djm) Avoid a warning in bsd-bindresvport.c
- (djm) Try to avoid adding -I/usr/include to CPPFLAGS during SSL tests. This
can cause weird segfaults errors on Solaris
+ - (djm) Avoid warning in PAM code by making read_passphrase arguments const
20010115
- (bal) sftp-server.c change to use chmod() if fchmod() does not exist.
}
static int
-cli_write(char* buf, int size)
+cli_write(const char* buf, int size)
{
int i, len, pos, ret = 0;
char *output, *p;
* buffer is storing the response.
*/
char*
-cli_read_passphrase(char* prompt, int from_stdin, int echo_enable)
+cli_read_passphrase(const char* prompt, int from_stdin, int echo_enable)
{
char buf[BUFSIZ];
char* p;
* of response depending on arg. Tries to ensure that no other userland
* buffer is storing the response.
*/
-char* cli_read_passphrase(char* prompt, int from_stdin, int echo_enable);
+char* cli_read_passphrase(const char* prompt, int from_stdin,
+ int echo_enable);
char* cli_prompt(char* prompt, int echo_enable);
void cli_mesg(char* mesg);
* compatibility with existing code.
*/
char *
-read_passphrase(char *prompt, int from_stdin)
+read_passphrase(const char *prompt, int from_stdin)
{
return cli_read_passphrase(prompt, from_stdin, 0);
}
* passphrase (allocated with xmalloc). Exits if EOF is encountered. If
* from_stdin is true, the passphrase will be read from stdin instead.
*/
-char *read_passphrase(char *prompt, int from_stdin);
+char *read_passphrase(const char *prompt, int from_stdin);
/*------------ Definitions for logging. -----------------------*/