Fix some encryption typos

This commit is contained in:
Con Kolivas 2011-09-13 14:40:35 +10:00
parent f8661d4356
commit 9f5498b6d3
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ typedef enum {
typedef void (*Lrzip_Info_Cb)(void *data, int pct, int chunk_pct);
typedef void (*Lrzip_Log_Cb)(void *data, unsigned int level, unsigned int line, const char *file, const char *format, va_list args);
typedef void (*Lrzip_Password_Cb)(void *, char **, size_t);
typedef void (*Lrzip_Password_Cb)(void *, char *, size_t);
bool lrzip_init(void);
void lrzip_config_env(Lrzip *lr);

View file

@ -91,7 +91,7 @@ static int get_pass(char *s, size_t slen)
return len;
}
static void pass_cb(void *data __UNUSED__, char **pass_string, size_t pass_len)
static void pass_cb(void *data __UNUSED__, char *pass_string, size_t pass_len)
{
int len;
struct termios termios_p;
@ -101,7 +101,7 @@ static void pass_cb(void *data __UNUSED__, char **pass_string, size_t pass_len)
tcsetattr(fileno(stdin), 0, &termios_p);
printf("Enter passphrase: ");
len = get_pass(*pass_string, pass_len);
len = get_pass(pass_string, pass_len);
printf("\n");
if (len < 1) exit(1);