181 |
|
|
182 |
|
|
183 |
/* |
/* |
184 |
* Ask user to proceed, while a fingerprint mismatch in the SSL/TLS |
* Ask user to proceed, while a fingerprint mismatch in the SSL/TLS certificate |
185 |
* certificate was found. |
* was found. |
186 |
*/ |
*/ |
187 |
int |
int |
188 |
mismatch_cert(void) |
mismatch_cert(void) |
190 |
char c, buf[LINE_MAX]; |
char c, buf[LINE_MAX]; |
191 |
|
|
192 |
do { |
do { |
193 |
printf("WARNING: SSL/TLS certificate fingerprint mismatch.\n" |
printf("ATTENTION: SSL/TLS certificate fingerprint mismatch.\n" |
194 |
"Proceed with the connection (y/n)? "); |
"Proceed with the connection (y/n)? "); |
195 |
fgets(buf, LINE_MAX, stdin); |
fgets(buf, LINE_MAX, stdin); |
196 |
c = tolower(*buf); |
c = tolower(*buf); |