FreeRDP
passphrase.c File Reference
#include <freerdp/config.h>
#include <freerdp/freerdp.h>
#include <errno.h>
#include <freerdp/utils/passphrase.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <termios.h>
#include <unistd.h>
#include <freerdp/utils/signal.h>
#include <time.h>
#include <sys/select.h>

Functions

static int wait_for_fd (int fd, int timeout)
 
static void replace_char (char *buffer, size_t buffer_len, const char *toreplace)
 
char * freerdp_passphrase_read (rdpContext *context, const char *prompt, char *buf, size_t bufsiz, int from_stdin)
 
int freerdp_interruptible_getc (rdpContext *context, FILE *f)
 
SSIZE_T freerdp_interruptible_get_line (rdpContext *context, char **plineptr, size_t *psize, FILE *stream)
 

Function Documentation

◆ freerdp_interruptible_get_line()

SSIZE_T freerdp_interruptible_get_line ( rdpContext *  context,
char **  plineptr,
size_t *  psize,
FILE *  stream 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_interruptible_getc()

int freerdp_interruptible_getc ( rdpContext *  context,
FILE *  file 
)

FreeRDP: A Remote Desktop Protocol Implementation Passphrase Handling Utils

Copyright 2011 Shea Levy shea@.nosp@m.shea.nosp@m.levy..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_passphrase_read()

char* freerdp_passphrase_read ( rdpContext *  context,
const char *  prompt,
char *  buf,
size_t  bufsiz,
int  from_stdin 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace_char()

static void replace_char ( char *  buffer,
size_t  buffer_len,
const char *  toreplace 
)
static
Here is the caller graph for this function:

◆ wait_for_fd()

static int wait_for_fd ( int  fd,
int  timeout 
)
static

FreeRDP: A Remote Desktop Protocol Implementation Passphrase Handling Utils

Copyright 2011 Shea Levy shea@.nosp@m.shea.nosp@m.levy..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the caller graph for this function: