Skip to content

Commit

Permalink
Use Wall and use unsigned char
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennijhof committed Feb 23, 2018
1 parent c297417 commit 58d585c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS = -g
CFLAGS = -Wall -g
PREFIX = /usr
BINDIR = ${PREFIX}/bin

Expand Down
7 changes: 3 additions & 4 deletions vncpwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

static u_char obfKey[8] = {23,82,107,6,35,78,88,7};

void decryptPw( char *pPW ) {
char clrtxt[10];
void decryptPw( unsigned char *pPW ) {
unsigned char clrtxt[10];

deskey(obfKey, DE1);
des(pPW, clrtxt);
Expand All @@ -36,8 +36,7 @@ void decryptPw( char *pPW ) {

int main(int argc, char *argv[]) {
FILE *fp;
int c;
char *pwd;
unsigned char *pwd;

if (argc < 2) {
fprintf(stdout, "Usage: vncpwd <password file>\n");
Expand Down

0 comments on commit 58d585c

Please sign in to comment.