comparison cli-authinteract.c @ 299:740e782679be ucc-axis-hack

Various changes to compile+kind of run on UCC's axis board. Note that fprintf(stdin -> printf( accounts for many of the changes
author Matt Johnston <matt@ucc.asn.au>
date Sat, 25 Mar 2006 12:57:09 +0000
parents d059b0bb57dd
children 973fccb59ea4
comparison
equal deleted inserted replaced
266:e37b160c414c 299:740e782679be
37 unsigned char* response = NULL; 37 unsigned char* response = NULL;
38 /* not a password, but a reasonable limit */ 38 /* not a password, but a reasonable limit */
39 char buf[DROPBEAR_MAX_CLI_PASS]; 39 char buf[DROPBEAR_MAX_CLI_PASS];
40 char* ret = NULL; 40 char* ret = NULL;
41 41
42 fprintf(stderr, "%s", prompt); 42 printf( "%s", prompt);
43 43
44 tty = fopen(_PATH_TTY, "r"); 44 tty = fopen(_PATH_TTY, "r");
45 if (tty) { 45 if (tty) {
46 ret = fgets(buf, sizeof(buf), tty); 46 ret = fgets(buf, sizeof(buf), tty);
47 fclose(tty); 47 fclose(tty);
96 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_INFO_RESPONSE); 96 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_INFO_RESPONSE);
97 buf_putint(ses.writepayload, num_prompts); 97 buf_putint(ses.writepayload, num_prompts);
98 98
99 if (strlen(name) > 0) { 99 if (strlen(name) > 0) {
100 cleantext(name); 100 cleantext(name);
101 fprintf(stderr, "%s", name); 101 printf( "%s", name);
102 m_free(name); 102 m_free(name);
103 } 103 }
104 if (strlen(instruction) > 0) { 104 if (strlen(instruction) > 0) {
105 cleantext(instruction); 105 cleantext(instruction);
106 fprintf(stderr, "%s", instruction); 106 printf( "%s", instruction);
107 m_free(instruction); 107 m_free(instruction);
108 } 108 }
109 109
110 for (i = 0; i < num_prompts; i++) { 110 for (i = 0; i < num_prompts; i++) {
111 unsigned int response_len = 0; 111 unsigned int response_len = 0;