Mercurial > dropbear
comparison cli-kex.c @ 398:59c7938af2bd
merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
and '7f8670ac3bb975f40967f3979d09d2199b7e90c8'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:20:30 +0000 |
parents | 454a34b2dfd1 |
children | ab57ba0cb667 |
comparison
equal
deleted
inserted
replaced
396:e7c1a77d2921 | 398:59c7938af2bd |
---|---|
120 | 120 |
121 fp = sign_key_fingerprint(keyblob, keybloblen); | 121 fp = sign_key_fingerprint(keyblob, keybloblen); |
122 fprintf(stderr, "\nHost '%s' is not in the trusted hosts file.\n(fingerprint %s)\nDo you want to continue connecting? (y/n)\n", | 122 fprintf(stderr, "\nHost '%s' is not in the trusted hosts file.\n(fingerprint %s)\nDo you want to continue connecting? (y/n)\n", |
123 cli_opts.remotehost, | 123 cli_opts.remotehost, |
124 fp); | 124 fp); |
125 m_free(fp); | |
125 | 126 |
126 tty = fopen(_PATH_TTY, "r"); | 127 tty = fopen(_PATH_TTY, "r"); |
127 if (tty) { | 128 if (tty) { |
128 response = getc(tty); | 129 response = getc(tty); |
129 fclose(tty); | 130 fclose(tty); |
130 } else { | 131 } else { |
131 response = getc(stdin); | 132 response = getc(stdin); |
132 } | 133 } |
133 | 134 |
134 if (response == 'y') { | 135 if (response == 'y') { |
135 m_free(fp); | |
136 return; | 136 return; |
137 } | 137 } |
138 | 138 |
139 dropbear_exit("Didn't validate host key"); | 139 dropbear_exit("Didn't validate host key"); |
140 } | 140 } |