| skipped 183 lines |
184 | 184 | | * tls_check_stored_hostname - Does the hostname match a stored certificate? |
185 | 185 | | * @param cert Certificate |
186 | 186 | | * @param hostname Hostname |
187 | | - | * @retval 1 Hostname match found |
188 | | - | * @retval 0 Error, or no match |
| 187 | + | * @retval true Hostname match found |
| 188 | + | * @retval false Error, or no match |
189 | 189 | | */ |
190 | | - | static int tls_check_stored_hostname(const gnutls_datum_t *cert, const char *hostname) |
| 190 | + | static bool tls_check_stored_hostname(const gnutls_datum_t *cert, const char *hostname) |
191 | 191 | | { |
192 | 192 | | char *linestr = NULL; |
193 | 193 | | size_t linestrsize = 0; |
| skipped 2 lines |
196 | 196 | | const char *const c_certificate_file = cs_subset_path(NeoMutt->sub, "certificate_file"); |
197 | 197 | | FILE *fp = mutt_file_fopen(c_certificate_file, "r"); |
198 | 198 | | if (!fp) |
199 | | - | return 0; |
| 199 | + | return false; |
200 | 200 | | |
201 | 201 | | char buf[80] = { 0 }; |
202 | 202 | | buf[0] = '\0'; |
| skipped 12 lines |
215 | 215 | | { |
216 | 216 | | FREE(&linestr); |
217 | 217 | | mutt_file_fclose(&fp); |
218 | | - | return 1; |
| 218 | + | return true; |
219 | 219 | | } |
220 | 220 | | } |
221 | 221 | | } |
| skipped 1 lines |
223 | 223 | | mutt_file_fclose(&fp); |
224 | 224 | | |
225 | 225 | | /* not found a matching name */ |
226 | | - | return 0; |
| 226 | + | return false; |
227 | 227 | | } |
228 | 228 | | |
229 | 229 | | /** |
| skipped 929 lines |