| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | static int is_keytype(const CONF *conf, char c, unsigned short type); | - |
| 7 | static char *eat_ws(CONF *conf, char *p); | - |
| 8 | static void trim_ws(CONF *conf, char *start); | - |
| 9 | static char *eat_alpha_numeric(CONF *conf, char *p); | - |
| 10 | static void clear_comments(CONF *conf, char *p); | - |
| 11 | static int str_copy(CONF *conf, char *section, char **to, char *from); | - |
| 12 | static char *scan_quote(CONF *conf, char *p); | - |
| 13 | static char *scan_dquote(CONF *conf, char *p); | - |
| 14 | | - |
| 15 | | - |
| 16 | static BIO *process_include(char *include, OPENSSL_DIR_CTX **dirctx, | - |
| 17 | char **dirpath); | - |
| 18 | static BIO *get_next_file(const char *path, OPENSSL_DIR_CTX **dirctx); | - |
| 19 | | - |
| 20 | | - |
| 21 | static CONF *def_create(CONF_METHOD *meth); | - |
| 22 | static int def_init_default(CONF *conf); | - |
| 23 | static int def_init_WIN32(CONF *conf); | - |
| 24 | static int def_destroy(CONF *conf); | - |
| 25 | static int def_destroy_data(CONF *conf); | - |
| 26 | static int def_load(CONF *conf, const char *name, long *eline); | - |
| 27 | static int def_load_bio(CONF *conf, BIO *bp, long *eline); | - |
| 28 | static int def_dump(const CONF *conf, BIO *bp); | - |
| 29 | static int def_is_number(const CONF *conf, char c); | - |
| 30 | static int def_to_int(const CONF *conf, char c); | - |
| 31 | | - |
| 32 | static CONF_METHOD default_method = { | - |
| 33 | "OpenSSL default", | - |
| 34 | def_create, | - |
| 35 | def_init_default, | - |
| 36 | def_destroy, | - |
| 37 | def_destroy_data, | - |
| 38 | def_load_bio, | - |
| 39 | def_dump, | - |
| 40 | def_is_number, | - |
| 41 | def_to_int, | - |
| 42 | def_load | - |
| 43 | }; | - |
| 44 | | - |
| 45 | static CONF_METHOD WIN32_method = { | - |
| 46 | "WIN32", | - |
| 47 | def_create, | - |
| 48 | def_init_WIN32, | - |
| 49 | def_destroy, | - |
| 50 | def_destroy_data, | - |
| 51 | def_load_bio, | - |
| 52 | def_dump, | - |
| 53 | def_is_number, | - |
| 54 | def_to_int, | - |
| 55 | def_load | - |
| 56 | }; | - |
| 57 | | - |
| 58 | CONF_METHOD *NCONF_default(void) | - |
| 59 | { | - |
| 60 | returnexecuted 4241 times by 1 test: return &default_method; &default_method;executed 4241 times by 1 test: return &default_method; | 4241 |
| 61 | } | - |
| 62 | | - |
| 63 | CONF_METHOD *NCONF_WIN32(void) | - |
| 64 | { | - |
| 65 | return never executed: return &WIN32_method; &WIN32_method;never executed: return &WIN32_method; | 0 |
| 66 | } | - |
| 67 | | - |
| 68 | static CONF *def_create(CONF_METHOD *meth) | - |
| 69 | { | - |
| 70 | CONF *ret; | - |
| 71 | | - |
| 72 | ret = CRYPTO_malloc(sizeof(*ret), __FILE__, 106); | - |
| 73 | if (ret != | TRUE | evaluated 4240 times by 1 test | | FALSE | never evaluated |
| 0-4240 |
| 74 | ((void *)0)| TRUE | evaluated 4240 times by 1 test | | FALSE | never evaluated |
| 0-4240 |
| 75 | ) | - |
| 76 | if (meth->init(ret) == 0| TRUE | never evaluated | | FALSE | evaluated 4240 times by 1 test |
) { | 0-4240 |
| 77 | CRYPTO_free(ret, __FILE__, 109); | - |
| 78 | ret = | - |
| 79 | ((void *)0) | - |
| 80 | ; | - |
| 81 | } never executed: end of block | 0 |
| 82 | returnexecuted 4240 times by 1 test: return ret; ret;executed 4240 times by 1 test: return ret; | 4240 |
| 83 | } | - |
| 84 | | - |
| 85 | static int def_init_default(CONF *conf) | - |
| 86 | { | - |
| 87 | if (conf == | TRUE | never evaluated | | FALSE | evaluated 4468 times by 1 test |
| 0-4468 |
| 88 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4468 times by 1 test |
| 0-4468 |
| 89 | ) | - |
| 90 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 91 | | - |
| 92 | conf->meth = &default_method; | - |
| 93 | conf->meth_data = (void *)CONF_type_default; | - |
| 94 | conf->data = | - |
| 95 | ((void *)0) | - |
| 96 | ; | - |
| 97 | | - |
| 98 | returnexecuted 4468 times by 1 test: return 1; 1;executed 4468 times by 1 test: return 1; | 4468 |
| 99 | } | - |
| 100 | | - |
| 101 | static int def_init_WIN32(CONF *conf) | - |
| 102 | { | - |
| 103 | if (conf == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 104 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 105 | ) | - |
| 106 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 107 | | - |
| 108 | conf->meth = &WIN32_method; | - |
| 109 | conf->meth_data = (void *)CONF_type_win32; | - |
| 110 | conf->data = | - |
| 111 | ((void *)0) | - |
| 112 | ; | - |
| 113 | | - |
| 114 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 115 | } | - |
| 116 | | - |
| 117 | static int def_destroy(CONF *conf) | - |
| 118 | { | - |
| 119 | if (def_destroy_data(conf)| TRUE | evaluated 4240 times by 1 test | | FALSE | never evaluated |
) { | 0-4240 |
| 120 | CRYPTO_free(conf, __FILE__, 142); | - |
| 121 | returnexecuted 4240 times by 1 test: return 1; 1;executed 4240 times by 1 test: return 1; | 4240 |
| 122 | } | - |
| 123 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 124 | } | - |
| 125 | | - |
| 126 | static int def_destroy_data(CONF *conf) | - |
| 127 | { | - |
| 128 | if (conf == | TRUE | never evaluated | | FALSE | evaluated 4468 times by 1 test |
| 0-4468 |
| 129 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4468 times by 1 test |
| 0-4468 |
| 130 | ) | - |
| 131 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 132 | _CONF_free_data(conf); | - |
| 133 | returnexecuted 4468 times by 1 test: return 1; 1;executed 4468 times by 1 test: return 1; | 4468 |
| 134 | } | - |
| 135 | | - |
| 136 | static int def_load(CONF *conf, const char *name, long *line) | - |
| 137 | { | - |
| 138 | int ret; | - |
| 139 | BIO *in = | - |
| 140 | ((void *)0) | - |
| 141 | ; | - |
| 142 | | - |
| 143 | | - |
| 144 | | - |
| 145 | | - |
| 146 | in = BIO_new_file(name, "rb"); | - |
| 147 | | - |
| 148 | if (in == | TRUE | evaluated 2090 times by 1 test | | FALSE | evaluated 1661 times by 1 test |
| 1661-2090 |
| 149 | ((void *)0)| TRUE | evaluated 2090 times by 1 test | | FALSE | evaluated 1661 times by 1 test |
| 1661-2090 |
| 150 | ) { | - |
| 151 | if ((| TRUE | evaluated 2090 times by 1 test | | FALSE | never evaluated |
int)( (ERR_peek_last_error()) & 0xFFFL) == 128| TRUE | evaluated 2090 times by 1 test | | FALSE | never evaluated |
) | 0-2090 |
| 152 | ERR_put_error(14,(120),(114),__FILE__,168);executed 2090 times by 1 test: ERR_put_error(14,(120),(114),__FILE__,168); | 2090 |
| 153 | else | - |
| 154 | ERR_put_error(14,(120),(2),__FILE__,170); never executed: ERR_put_error(14,(120),(2),__FILE__,170); | 0 |
| 155 | returnexecuted 2090 times by 1 test: return 0; 0;executed 2090 times by 1 test: return 0; | 2090 |
| 156 | } | - |
| 157 | | - |
| 158 | ret = def_load_bio(conf, in, line); | - |
| 159 | BIO_free(in); | - |
| 160 | | - |
| 161 | returnexecuted 1661 times by 1 test: return ret; ret;executed 1661 times by 1 test: return ret; | 1661 |
| 162 | } | - |
| 163 | | - |
| 164 | static int def_load_bio(CONF *conf, BIO *in, long *line) | - |
| 165 | { | - |
| 166 | | - |
| 167 | | - |
| 168 | int bufnum = 0, i, ii; | - |
| 169 | BUF_MEM *buff = | - |
| 170 | ((void *)0) | - |
| 171 | ; | - |
| 172 | char *s, *p, *end; | - |
| 173 | int again; | - |
| 174 | long eline = 0; | - |
| 175 | char btmp[((sizeof(eline)*8+2)/3+1) + 1]; | - |
| 176 | CONF_VALUE *v = | - |
| 177 | ((void *)0) | - |
| 178 | , *tv; | - |
| 179 | CONF_VALUE *sv = | - |
| 180 | ((void *)0) | - |
| 181 | ; | - |
| 182 | char *section = | - |
| 183 | ((void *)0) | - |
| 184 | , *buf; | - |
| 185 | char *start, *psection, *pname; | - |
| 186 | void *h = (void *)(conf->data); | - |
| 187 | struct stack_st_BIO *biosk = | - |
| 188 | ((void *)0) | - |
| 189 | ; | - |
| 190 | | - |
| 191 | char *dirpath = | - |
| 192 | ((void *)0) | - |
| 193 | ; | - |
| 194 | OPENSSL_DIR_CTX *dirctx = | - |
| 195 | ((void *)0) | - |
| 196 | ; | - |
| 197 | | - |
| 198 | | - |
| 199 | if ((| TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
buff = BUF_MEM_new()) == | TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 200 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 201 | ) { | - |
| 202 | ERR_put_error(14,(121),(7),__FILE__,202); | - |
| 203 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 204 | } | - |
| 205 | | - |
| 206 | section = CRYPTO_strdup("default", __FILE__, 206); | - |
| 207 | if (section == | TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 208 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 209 | ) { | - |
| 210 | ERR_put_error(14,(121),((1|64)),__FILE__,208); | - |
| 211 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 212 | } | - |
| 213 | | - |
| 214 | if (_CONF_new_data(conf) == 0| TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
) { | 0-2150 |
| 215 | ERR_put_error(14,(121),((1|64)),__FILE__,213); | - |
| 216 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 217 | } | - |
| 218 | | - |
| 219 | sv = _CONF_new_section(conf, section); | - |
| 220 | if (sv == | TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 221 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2150 times by 1 test |
| 0-2150 |
| 222 | ) { | - |
| 223 | ERR_put_error(14,(121),(103),__FILE__,219); | - |
| 224 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 225 | } | - |
| 226 | | - |
| 227 | bufnum = 0; | - |
| 228 | again = 0; | - |
| 229 | for (;;) { | - |
| 230 | if (!BUF_MEM_grow(buff, bufnum + 512)| TRUE | never evaluated | | FALSE | evaluated 170269 times by 1 test |
) { | 0-170269 |
| 231 | ERR_put_error(14,(121),(7),__FILE__,227); | - |
| 232 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 233 | } | - |
| 234 | p = &(buff->data[bufnum]); | - |
| 235 | *p = '\0'; | - |
| 236 | read_retry:code before this statement executed 170269 times by 1 test: read_retry: | 170269 |
| 237 | BIO_gets(in, p, 512 - 1); | - |
| 238 | p[512 - 1] = '\0'; | - |
| 239 | ii = i = strlen(p); | - |
| 240 | if (i == 0| TRUE | evaluated 2987 times by 1 test | | FALSE | evaluated 167792 times by 1 test |
&& !again| TRUE | evaluated 2432 times by 1 test | | FALSE | evaluated 555 times by 1 test |
) { | 555-167792 |
| 241 | | - |
| 242 | BIO *parent; | - |
| 243 | | - |
| 244 | | - |
| 245 | | - |
| 246 | if (dirctx != | TRUE | evaluated 510 times by 1 test | | FALSE | evaluated 1922 times by 1 test |
| 510-1922 |
| 247 | ((void *)0)| TRUE | evaluated 510 times by 1 test | | FALSE | evaluated 1922 times by 1 test |
| 510-1922 |
| 248 | ) { | - |
| 249 | BIO *next; | - |
| 250 | | - |
| 251 | if ((| TRUE | evaluated 510 times by 1 test | | FALSE | never evaluated |
next = get_next_file(dirpath, &dirctx)) != | TRUE | evaluated 510 times by 1 test | | FALSE | never evaluated |
| 0-510 |
| 252 | ((void *)0)| TRUE | evaluated 510 times by 1 test | | FALSE | never evaluated |
| 0-510 |
| 253 | ) { | - |
| 254 | BIO_vfree(in); | - |
| 255 | in = next; | - |
| 256 | gotoexecuted 510 times by 1 test: goto read_retry; read_retry;executed 510 times by 1 test: goto read_retry; | 510 |
| 257 | } else { | - |
| 258 | CRYPTO_free(dirpath, __FILE__, 250); | - |
| 259 | dirpath = | - |
| 260 | ((void *)0) | - |
| 261 | ; | - |
| 262 | } never executed: end of block | 0 |
| 263 | } | - |
| 264 | | - |
| 265 | | - |
| 266 | if ((| TRUE | evaluated 1922 times by 1 test | | FALSE | never evaluated |
parent = sk_BIO_pop(biosk)) == | TRUE | evaluated 1922 times by 1 test | | FALSE | never evaluated |
| 0-1922 |
| 267 | ((void *)0)| TRUE | evaluated 1922 times by 1 test | | FALSE | never evaluated |
| 0-1922 |
| 268 | ) { | - |
| 269 | | - |
| 270 | break;executed 1922 times by 1 test: break; | 1922 |
| 271 | } else { | - |
| 272 | BIO_vfree(in); | - |
| 273 | in = parent; | - |
| 274 | goto never executed: goto read_retry; read_retry;never executed: goto read_retry; | 0 |
| 275 | } | - |
| 276 | } | - |
| 277 | again = 0; | - |
| 278 | while (i > 0| TRUE | evaluated 290842 times by 1 test | | FALSE | evaluated 44157 times by 1 test |
) { | 44157-290842 |
| 279 | if ((| TRUE | evaluated 290622 times by 1 test | | FALSE | evaluated 220 times by 1 test |
p[i - 1] != '\r')| TRUE | evaluated 290622 times by 1 test | | FALSE | evaluated 220 times by 1 test |
&& (| TRUE | evaluated 124190 times by 1 test | | FALSE | evaluated 166432 times by 1 test |
p[i - 1] != '\n')| TRUE | evaluated 124190 times by 1 test | | FALSE | evaluated 166432 times by 1 test |
) | 220-290622 |
| 280 | break;executed 124190 times by 1 test: break; | 124190 |
| 281 | else | - |
| 282 | i--;executed 166652 times by 1 test: i--; | 166652 |
| 283 | } | - |
| 284 | | - |
| 285 | | - |
| 286 | | - |
| 287 | if (ii| TRUE | evaluated 167792 times by 1 test | | FALSE | evaluated 555 times by 1 test |
&& i == ii| TRUE | evaluated 1351 times by 1 test | | FALSE | evaluated 166441 times by 1 test |
) | 555-167792 |
| 288 | again = 1;executed 1351 times by 1 test: again = 1; | 1351 |
| 289 | else { | - |
| 290 | p[i] = '\0'; | - |
| 291 | eline++; | - |
| 292 | }executed 166996 times by 1 test: end of block | 166996 |
| 293 | | - |
| 294 | | - |
| 295 | | - |
| 296 | | - |
| 297 | bufnum += i; | - |
| 298 | | - |
| 299 | v = | - |
| 300 | ((void *)0) | - |
| 301 | ; | - |
| 302 | | - |
| 303 | if (bufnum >= 1| TRUE | evaluated 124589 times by 1 test | | FALSE | evaluated 43758 times by 1 test |
) { | 43758-124589 |
| 304 | | - |
| 305 | | - |
| 306 | | - |
| 307 | | - |
| 308 | p = &(buff->data[bufnum - 1]); | - |
| 309 | if (is_keytype(conf, p[0], 32)| TRUE | evaluated 1139 times by 1 test | | FALSE | evaluated 123450 times by 1 test |
&& ((| TRUE | evaluated 232 times by 1 test | | FALSE | evaluated 907 times by 1 test |
bufnum <= 1)| TRUE | evaluated 232 times by 1 test | | FALSE | evaluated 907 times by 1 test |
|| !is_keytype(conf, p[-1], 32)| TRUE | evaluated 441 times by 1 test | | FALSE | evaluated 466 times by 1 test |
)) { | 232-123450 |
| 310 | bufnum--; | - |
| 311 | again = 1; | - |
| 312 | }executed 673 times by 1 test: end of block | 673 |
| 313 | }executed 124589 times by 1 test: end of block | 124589 |
| 314 | if (again| TRUE | evaluated 1964 times by 1 test | | FALSE | evaluated 166383 times by 1 test |
) | 1964-166383 |
| 315 | continue;executed 1964 times by 1 test: continue; | 1964 |
| 316 | bufnum = 0; | - |
| 317 | buf = buff->data; | - |
| 318 | | - |
| 319 | clear_comments(conf, buf); | - |
| 320 | s = eat_ws(conf, buf); | - |
| 321 | if (is_keytype(conf, *s, 8)| TRUE | evaluated 51443 times by 1 test | | FALSE | evaluated 114940 times by 1 test |
) | 51443-114940 |
| 322 | continue;executed 51443 times by 1 test: continue; | 51443 |
| 323 | if (*| TRUE | evaluated 25908 times by 1 test | | FALSE | evaluated 89032 times by 1 test |
s == '['| TRUE | evaluated 25908 times by 1 test | | FALSE | evaluated 89032 times by 1 test |
) { | 25908-89032 |
| 324 | char *ss; | - |
| 325 | | - |
| 326 | s++; | - |
| 327 | start = eat_ws(conf, s); | - |
| 328 | ss = start; | - |
| 329 | again:code before this statement executed 25908 times by 1 test: again: | 25908 |
| 330 | end = eat_alpha_numeric(conf, ss); | - |
| 331 | p = eat_ws(conf, end); | - |
| 332 | if (*| TRUE | evaluated 1478 times by 1 test | | FALSE | evaluated 25881 times by 1 test |
p != ']'| TRUE | evaluated 1478 times by 1 test | | FALSE | evaluated 25881 times by 1 test |
) { | 1478-25881 |
| 333 | if (*| TRUE | evaluated 1462 times by 1 test | | FALSE | evaluated 16 times by 1 test |
p != '\0'| TRUE | evaluated 1462 times by 1 test | | FALSE | evaluated 16 times by 1 test |
&& ss != p| TRUE | evaluated 1451 times by 1 test | | FALSE | evaluated 11 times by 1 test |
) { | 11-1462 |
| 334 | ss = p; | - |
| 335 | gotoexecuted 1451 times by 1 test: goto again; again;executed 1451 times by 1 test: goto again; | 1451 |
| 336 | } | - |
| 337 | ERR_put_error(14,(121),(100),__FILE__,324) | - |
| 338 | ; | - |
| 339 | gotoexecuted 27 times by 1 test: goto err; err;executed 27 times by 1 test: goto err; | 27 |
| 340 | } | - |
| 341 | *end = '\0'; | - |
| 342 | if (!str_copy(conf, | TRUE | never evaluated | | FALSE | evaluated 25881 times by 1 test |
| 0-25881 |
| 343 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 25881 times by 1 test |
| 0-25881 |
| 344 | , §ion, start)| TRUE | never evaluated | | FALSE | evaluated 25881 times by 1 test |
) | 0-25881 |
| 345 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 346 | if ((| TRUE | evaluated 24074 times by 1 test | | FALSE | evaluated 1807 times by 1 test |
sv = _CONF_get_section(conf, section)) == | TRUE | evaluated 24074 times by 1 test | | FALSE | evaluated 1807 times by 1 test |
| 1807-24074 |
| 347 | ((void *)0)| TRUE | evaluated 24074 times by 1 test | | FALSE | evaluated 1807 times by 1 test |
| 1807-24074 |
| 348 | ) | - |
| 349 | sv = _CONF_new_section(conf, section);executed 24074 times by 1 test: sv = _CONF_new_section(conf, section); | 24074 |
| 350 | if (sv == | TRUE | never evaluated | | FALSE | evaluated 25881 times by 1 test |
| 0-25881 |
| 351 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 25881 times by 1 test |
| 0-25881 |
| 352 | ) { | - |
| 353 | ERR_put_error(14,(121),(103),__FILE__,334) | - |
| 354 | ; | - |
| 355 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 356 | } | - |
| 357 | continue;executed 25881 times by 1 test: continue; | 25881 |
| 358 | } else { | - |
| 359 | pname = s; | - |
| 360 | end = eat_alpha_numeric(conf, s); | - |
| 361 | if ((| TRUE | evaluated 8585 times by 1 test | | FALSE | evaluated 80447 times by 1 test |
end[0] == ':')| TRUE | evaluated 8585 times by 1 test | | FALSE | evaluated 80447 times by 1 test |
&& (| TRUE | evaluated 8291 times by 1 test | | FALSE | evaluated 294 times by 1 test |
end[1] == ':')| TRUE | evaluated 8291 times by 1 test | | FALSE | evaluated 294 times by 1 test |
) { | 294-80447 |
| 362 | *end = '\0'; | - |
| 363 | end += 2; | - |
| 364 | psection = pname; | - |
| 365 | pname = end; | - |
| 366 | end = eat_alpha_numeric(conf, end); | - |
| 367 | }executed 8291 times by 1 test: end of block else { | 8291 |
| 368 | psection = section; | - |
| 369 | }executed 80741 times by 1 test: end of block | 80741 |
| 370 | p = eat_ws(conf, end); | - |
| 371 | if ( | - |
| 372 | (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
__extension__ (__builtin_constant_p (| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 373 | 8| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 374 | )| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 375 | pname| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 376 | )| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 377 | pname| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 378 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 379 | 8| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 380 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 381 | ".include"| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 382 | )| TRUE | evaluated 89032 times by 1 test | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 383 | ".include"| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 384 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 385 | 8| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 386 | ))| TRUE | never evaluated | | FALSE | evaluated 89032 times by 1 test |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-89032 |
| 387 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 388 | ) && __builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 389 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 390 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 391 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 392 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 393 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 394 | ), (!((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 395 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 396 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 397 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 398 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 399 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 400 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 401 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 402 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 403 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 404 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 405 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 406 | ) : (__builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 407 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 408 | ) && ((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 409 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 410 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 411 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 412 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 413 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 414 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 415 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 416 | ) && ((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 417 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 418 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 419 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 420 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 421 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 422 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 423 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 424 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 425 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 426 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 427 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 428 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 429 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 430 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 431 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 432 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( pname ))[3] - __s2[3]); | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 433 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( pname ))[3] - __s2[3]); | 0-86988 |
| 434 | ))[3] - __s2[3]);| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( pname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 435 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 436 | ) && ((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 437 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 438 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 439 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 440 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 441 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 442 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 443 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 444 | ) && ((size_t)(const void *)((| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 445 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 446 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 447 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 448 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 449 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 450 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 451 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 452 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 453 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 454 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 455 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 456 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 457 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 458 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 459 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 460 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ".include" ))[3] - __s2[3]); | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 461 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ".include" ))[3] - __s2[3]); | 0-86988 |
| 462 | ))[3] - __s2[3]);| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ".include" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 0-86988 |
| 463 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 464 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 465 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 466 | )))); }) : strncmp (| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 467 | pname| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 468 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 469 | ".include"| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 470 | , | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 471 | 8| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 472 | ))) | TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
| 2044-86988 |
| 473 | == 0| TRUE | evaluated 2044 times by 1 test | | FALSE | evaluated 86988 times by 1 test |
&& p != pname + 8| TRUE | evaluated 1851 times by 1 test | | FALSE | evaluated 193 times by 1 test |
) { | 193-86988 |
| 474 | char *include = | - |
| 475 | ((void *)0) | - |
| 476 | ; | - |
| 477 | BIO *next; | - |
| 478 | | - |
| 479 | trim_ws(conf, p); | - |
| 480 | if (!str_copy(conf, psection, &include, p)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1850 times by 1 test |
) | 1-1850 |
| 481 | gotoexecuted 1 time by 1 test: goto err; err;executed 1 time by 1 test: goto err; | 1 |
| 482 | | - |
| 483 | | - |
| 484 | next = process_include(include, &dirctx, &dirpath); | - |
| 485 | if (include != dirpath| TRUE | evaluated 1799 times by 1 test | | FALSE | evaluated 51 times by 1 test |
) { | 51-1799 |
| 486 | | - |
| 487 | CRYPTO_free(include, __FILE__, 363); | - |
| 488 | }executed 1799 times by 1 test: end of block | 1799 |
| 489 | | - |
| 490 | | - |
| 491 | | - |
| 492 | | - |
| 493 | if (next != | TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 1799 times by 1 test |
| 51-1799 |
| 494 | ((void *)0)| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 1799 times by 1 test |
| 51-1799 |
| 495 | ) { | - |
| 496 | | - |
| 497 | if (biosk == | TRUE | evaluated 51 times by 1 test | | FALSE | never evaluated |
| 0-51 |
| 498 | ((void *)0)| TRUE | evaluated 51 times by 1 test | | FALSE | never evaluated |
| 0-51 |
| 499 | ) { | - |
| 500 | if ((| TRUE | never evaluated | | FALSE | evaluated 51 times by 1 test |
biosk = sk_BIO_new_null()) == | TRUE | never evaluated | | FALSE | evaluated 51 times by 1 test |
| 0-51 |
| 501 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 51 times by 1 test |
| 0-51 |
| 502 | ) { | - |
| 503 | ERR_put_error(14,(121),((1|64)),__FILE__,373); | - |
| 504 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 505 | } | - |
| 506 | }executed 51 times by 1 test: end of block | 51 |
| 507 | if (!sk_BIO_push(biosk, in)| TRUE | never evaluated | | FALSE | evaluated 51 times by 1 test |
) { | 0-51 |
| 508 | ERR_put_error(14,(121),((1|64)),__FILE__,378); | - |
| 509 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 510 | } | - |
| 511 | | - |
| 512 | in = next; | - |
| 513 | }executed 51 times by 1 test: end of block | 51 |
| 514 | continue;executed 1850 times by 1 test: continue; | 1850 |
| 515 | } else if (*| TRUE | evaluated 117 times by 1 test | | FALSE | evaluated 87064 times by 1 test |
p != '='| TRUE | evaluated 117 times by 1 test | | FALSE | evaluated 87064 times by 1 test |
) { | 117-87064 |
| 516 | ERR_put_error(14,(121),(101),__FILE__,386); | - |
| 517 | gotoexecuted 117 times by 1 test: goto err; err;executed 117 times by 1 test: goto err; | 117 |
| 518 | } | - |
| 519 | *end = '\0'; | - |
| 520 | p++; | - |
| 521 | start = eat_ws(conf, p); | - |
| 522 | trim_ws(conf, start); | - |
| 523 | | - |
| 524 | if ((| TRUE | never evaluated | | FALSE | evaluated 87064 times by 1 test |
v = CRYPTO_malloc(sizeof(*v), __FILE__, 394)) == | TRUE | never evaluated | | FALSE | evaluated 87064 times by 1 test |
| 0-87064 |
| 525 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 87064 times by 1 test |
| 0-87064 |
| 526 | ) { | - |
| 527 | ERR_put_error(14,(121),((1|64)),__FILE__,395); | - |
| 528 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 529 | } | - |
| 530 | v->name = CRYPTO_strdup(pname, __FILE__, 398); | - |
| 531 | v->value = | - |
| 532 | ((void *)0) | - |
| 533 | ; | - |
| 534 | if (v->name == | TRUE | never evaluated | | FALSE | evaluated 87064 times by 1 test |
| 0-87064 |
| 535 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 87064 times by 1 test |
| 0-87064 |
| 536 | ) { | - |
| 537 | ERR_put_error(14,(121),((1|64)),__FILE__,401); | - |
| 538 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 539 | } | - |
| 540 | if (!str_copy(conf, psection, &(v->value), start)| TRUE | evaluated 83 times by 1 test | | FALSE | evaluated 86981 times by 1 test |
) | 83-86981 |
| 541 | gotoexecuted 83 times by 1 test: goto err; err;executed 83 times by 1 test: goto err; | 83 |
| 542 | | - |
| 543 | if ( | - |
| 544 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 545 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 546 | ) && __builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 547 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 548 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 549 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 550 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 551 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 552 | ), (!((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 553 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 554 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 555 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 556 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 557 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 558 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 559 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 560 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 561 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 562 | , | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 563 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 564 | ) : (__builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 565 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 566 | ) && ((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 567 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 568 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 569 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 570 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 571 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 572 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 573 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 574 | ) && ((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 575 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 576 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 577 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 578 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 579 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 580 | , | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 581 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 582 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 583 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 584 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 585 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 586 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 587 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 588 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 589 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 590 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 591 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); | 0-78770 |
| 592 | ))[3] - __s2[3]);| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 593 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 594 | ) && ((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 595 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 596 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 597 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 598 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 599 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 600 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 601 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 602 | ) && ((size_t)(const void *)((| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 603 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 604 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 605 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 606 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 607 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 608 | , | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 609 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 610 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 611 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 612 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 613 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 614 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 615 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 616 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 617 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 618 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 619 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); | 0-78770 |
| 620 | ))[3] - __s2[3]);| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 0-78770 |
| 621 | psection| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 622 | , | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 623 | section| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 624 | )))); }) | TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
| 8211-78770 |
| 625 | != 0| TRUE | evaluated 8211 times by 1 test | | FALSE | evaluated 78770 times by 1 test |
) { | 8211-78770 |
| 626 | if ((| TRUE | evaluated 6992 times by 1 test | | FALSE | evaluated 1219 times by 1 test |
tv = _CONF_get_section(conf, psection))| TRUE | evaluated 6992 times by 1 test | | FALSE | evaluated 1219 times by 1 test |
| 1219-6992 |
| 627 | == | TRUE | evaluated 6992 times by 1 test | | FALSE | evaluated 1219 times by 1 test |
| 1219-6992 |
| 628 | ((void *)0)| TRUE | evaluated 6992 times by 1 test | | FALSE | evaluated 1219 times by 1 test |
| 1219-6992 |
| 629 | ) | - |
| 630 | tv = _CONF_new_section(conf, psection);executed 6992 times by 1 test: tv = _CONF_new_section(conf, psection); | 6992 |
| 631 | if (tv == | TRUE | never evaluated | | FALSE | evaluated 8211 times by 1 test |
| 0-8211 |
| 632 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8211 times by 1 test |
| 0-8211 |
| 633 | ) { | - |
| 634 | ERR_put_error(14,(121),(103),__FILE__,413) | - |
| 635 | ; | - |
| 636 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 637 | } | - |
| 638 | }executed 8211 times by 1 test: end of block else | 8211 |
| 639 | tv = sv;executed 78770 times by 1 test: tv = sv; | 78770 |
| 640 | if (_CONF_add_string(conf, tv, v) == 0| TRUE | never evaluated | | FALSE | evaluated 86981 times by 1 test |
) { | 0-86981 |
| 641 | ERR_put_error(14,(121),((1|64)),__FILE__,419); | - |
| 642 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 643 | } | - |
| 644 | v = | - |
| 645 | ((void *)0) | - |
| 646 | ; | - |
| 647 | }executed 86981 times by 1 test: end of block | 86981 |
| 648 | } | - |
| 649 | BUF_MEM_free(buff); | - |
| 650 | CRYPTO_free(section, __FILE__, 426); | - |
| 651 | | - |
| 652 | | - |
| 653 | | - |
| 654 | | - |
| 655 | sk_BIO_free(biosk); | - |
| 656 | returnexecuted 1922 times by 1 test: return 1; 1;executed 1922 times by 1 test: return 1; | 1922 |
| 657 | err: | - |
| 658 | BUF_MEM_free(buff); | - |
| 659 | CRYPTO_free(section, __FILE__, 435); | - |
| 660 | | - |
| 661 | | - |
| 662 | | - |
| 663 | | - |
| 664 | | - |
| 665 | while (sk_BIO_num(biosk) > 0| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 228 times by 1 test |
) { | 51-228 |
| 666 | BIO *popped = sk_BIO_pop(biosk); | - |
| 667 | BIO_vfree(in); | - |
| 668 | in = popped; | - |
| 669 | }executed 51 times by 1 test: end of block | 51 |
| 670 | sk_BIO_free(biosk); | - |
| 671 | | - |
| 672 | CRYPTO_free(dirpath, __FILE__, 448); | - |
| 673 | if (dirctx != | TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 177 times by 1 test |
| 51-177 |
| 674 | ((void *)0)| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 177 times by 1 test |
| 51-177 |
| 675 | ) | - |
| 676 | OPENSSL_DIR_end(&dirctx);executed 51 times by 1 test: OPENSSL_DIR_end(&dirctx); | 51 |
| 677 | | - |
| 678 | if (line != | TRUE | evaluated 228 times by 1 test | | FALSE | never evaluated |
| 0-228 |
| 679 | ((void *)0)| TRUE | evaluated 228 times by 1 test | | FALSE | never evaluated |
| 0-228 |
| 680 | ) | - |
| 681 | *executed 228 times by 1 test: *line = eline; line = eline;executed 228 times by 1 test: *line = eline; | 228 |
| 682 | BIO_snprintf(btmp, sizeof(btmp), "%ld", eline); | - |
| 683 | ERR_add_error_data(2, "line ", btmp); | - |
| 684 | if (h != conf->data| TRUE | evaluated 228 times by 1 test | | FALSE | never evaluated |
) { | 0-228 |
| 685 | CONF_free(conf->data); | - |
| 686 | conf->data = | - |
| 687 | ((void *)0) | - |
| 688 | ; | - |
| 689 | }executed 228 times by 1 test: end of block | 228 |
| 690 | if (v != | TRUE | evaluated 83 times by 1 test | | FALSE | evaluated 145 times by 1 test |
| 83-145 |
| 691 | ((void *)0)| TRUE | evaluated 83 times by 1 test | | FALSE | evaluated 145 times by 1 test |
| 83-145 |
| 692 | ) { | - |
| 693 | CRYPTO_free(v->name, __FILE__, 461); | - |
| 694 | CRYPTO_free(v->value, __FILE__, 462); | - |
| 695 | CRYPTO_free(v, __FILE__, 463); | - |
| 696 | }executed 83 times by 1 test: end of block | 83 |
| 697 | returnexecuted 228 times by 1 test: return 0; 0;executed 228 times by 1 test: return 0; | 228 |
| 698 | } | - |
| 699 | | - |
| 700 | static void clear_comments(CONF *conf, char *p) | - |
| 701 | { | - |
| 702 | for (;;) { | - |
| 703 | if (is_keytype(conf, *p, 2048)| TRUE | never evaluated | | FALSE | evaluated 168202 times by 1 test |
) { | 0-168202 |
| 704 | *p = '\0'; | - |
| 705 | return; never executed: return; | 0 |
| 706 | } | - |
| 707 | if (!is_keytype(conf, *p, 16)| TRUE | evaluated 166383 times by 1 test | | FALSE | evaluated 1819 times by 1 test |
) { | 1819-166383 |
| 708 | break;executed 166383 times by 1 test: break; | 166383 |
| 709 | } | - |
| 710 | p++; | - |
| 711 | }executed 1819 times by 1 test: end of block | 1819 |
| 712 | | - |
| 713 | for (;;) { | - |
| 714 | if (is_keytype(conf, *p, 128)| TRUE | evaluated 10086 times by 1 test | | FALSE | evaluated 4784102 times by 1 test |
) { | 10086-4784102 |
| 715 | *p = '\0'; | - |
| 716 | return;executed 10086 times by 1 test: return; | 10086 |
| 717 | } | - |
| 718 | if (is_keytype(conf, *p, 1024)| TRUE | never evaluated | | FALSE | evaluated 4784102 times by 1 test |
) { | 0-4784102 |
| 719 | p = scan_dquote(conf, p); | - |
| 720 | continue; never executed: continue; | 0 |
| 721 | } | - |
| 722 | if (is_keytype(conf, *p, 64)| TRUE | evaluated 1632 times by 1 test | | FALSE | evaluated 4782470 times by 1 test |
) { | 1632-4782470 |
| 723 | p = scan_quote(conf, p); | - |
| 724 | continue;executed 1632 times by 1 test: continue; | 1632 |
| 725 | } | - |
| 726 | if (is_keytype(conf, *p, 32)| TRUE | evaluated 3027 times by 1 test | | FALSE | evaluated 4779443 times by 1 test |
) { | 3027-4779443 |
| 727 | p = (((| TRUE | evaluated 221 times by 1 test | | FALSE | evaluated 2806 times by 1 test |
is_keytype((conf), (p)[1], 8))| TRUE | evaluated 221 times by 1 test | | FALSE | evaluated 2806 times by 1 test |
?((p)+1):((p)+2))); | 221-2806 |
| 728 | continue;executed 3027 times by 1 test: continue; | 3027 |
| 729 | } | - |
| 730 | if (is_keytype(conf, *p, 8)| TRUE | evaluated 156297 times by 1 test | | FALSE | evaluated 4623146 times by 1 test |
) | 156297-4623146 |
| 731 | return;executed 156297 times by 1 test: return; | 156297 |
| 732 | else | - |
| 733 | p++;executed 4623146 times by 1 test: p++; | 4623146 |
| 734 | } | - |
| 735 | } never executed: end of block | 0 |
| 736 | | - |
| 737 | static int str_copy(CONF *conf, char *section, char **pto, char *from) | - |
| 738 | { | - |
| 739 | int q, r, rr = 0, to = 0, len = 0; | - |
| 740 | char *s, *e, *rp, *p, *rrp, *np, *cp, v; | - |
| 741 | BUF_MEM *buf; | - |
| 742 | | - |
| 743 | if ((| TRUE | never evaluated | | FALSE | evaluated 114796 times by 1 test |
buf = BUF_MEM_new()) == | TRUE | never evaluated | | FALSE | evaluated 114796 times by 1 test |
| 0-114796 |
| 744 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 114796 times by 1 test |
| 0-114796 |
| 745 | ) | - |
| 746 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 747 | | - |
| 748 | len = strlen(from) + 1; | - |
| 749 | if (!BUF_MEM_grow(buf, len)| TRUE | never evaluated | | FALSE | evaluated 114796 times by 1 test |
) | 0-114796 |
| 750 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 751 | | - |
| 752 | for (;;) { | - |
| 753 | if (is_keytype(conf, *from, 64)| TRUE | evaluated 1597 times by 1 test | | FALSE | evaluated 3639463 times by 1 test |
) { | 1597-3639463 |
| 754 | q = *from; | - |
| 755 | from++; | - |
| 756 | while (!is_keytype(conf, *from, 8)| TRUE | evaluated 4235 times by 1 test | | FALSE | evaluated 544 times by 1 test |
&& (*| TRUE | evaluated 3527 times by 1 test | | FALSE | evaluated 708 times by 1 test |
from != q)| TRUE | evaluated 3527 times by 1 test | | FALSE | evaluated 708 times by 1 test |
) { | 544-4235 |
| 757 | if (is_keytype(conf, *from, 32)| TRUE | evaluated 1040 times by 1 test | | FALSE | evaluated 2487 times by 1 test |
) { | 1040-2487 |
| 758 | from++; | - |
| 759 | if (is_keytype(conf, *from, 8)| TRUE | evaluated 345 times by 1 test | | FALSE | evaluated 695 times by 1 test |
) | 345-695 |
| 760 | break;executed 345 times by 1 test: break; | 345 |
| 761 | }executed 695 times by 1 test: end of block | 695 |
| 762 | buf->data[to++] = *(from++); | - |
| 763 | }executed 3182 times by 1 test: end of block | 3182 |
| 764 | if (*| TRUE | evaluated 708 times by 1 test | | FALSE | evaluated 889 times by 1 test |
from == q| TRUE | evaluated 708 times by 1 test | | FALSE | evaluated 889 times by 1 test |
) | 708-889 |
| 765 | from++;executed 708 times by 1 test: from++; | 708 |
| 766 | }executed 1597 times by 1 test: end of block else if (is_keytype(conf, *from, 1024)| TRUE | never evaluated | | FALSE | evaluated 3639463 times by 1 test |
) { | 0-3639463 |
| 767 | q = *from; | - |
| 768 | from++; | - |
| 769 | while (!is_keytype(conf, *from, 8)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 770 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
from == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 771 | if (*(| TRUE | never evaluated | | FALSE | never evaluated |
from + 1) == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 772 | from++; | - |
| 773 | } never executed: end of block else { | 0 |
| 774 | break; never executed: break; | 0 |
| 775 | } | - |
| 776 | } | - |
| 777 | buf->data[to++] = *(from++); | - |
| 778 | } never executed: end of block | 0 |
| 779 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
from == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 780 | from++; never executed: from++; | 0 |
| 781 | } never executed: end of block else if (is_keytype(conf, *from, 32)| TRUE | evaluated 1801 times by 1 test | | FALSE | evaluated 3637662 times by 1 test |
) { | 0-3637662 |
| 782 | from++; | - |
| 783 | v = *(from++); | - |
| 784 | if (is_keytype(conf, v, 8)| TRUE | evaluated 218 times by 1 test | | FALSE | evaluated 1583 times by 1 test |
) | 218-1583 |
| 785 | break;executed 218 times by 1 test: break; | 218 |
| 786 | else if (v == 'r'| TRUE | evaluated 230 times by 1 test | | FALSE | evaluated 1353 times by 1 test |
) | 230-1353 |
| 787 | v = '\r';executed 230 times by 1 test: v = '\r'; | 230 |
| 788 | else if (v == 'n'| TRUE | evaluated 211 times by 1 test | | FALSE | evaluated 1142 times by 1 test |
) | 211-1142 |
| 789 | v = '\n';executed 211 times by 1 test: v = '\n'; | 211 |
| 790 | else if (v == 'b'| TRUE | evaluated 216 times by 1 test | | FALSE | evaluated 926 times by 1 test |
) | 216-926 |
| 791 | v = '\b';executed 216 times by 1 test: v = '\b'; | 216 |
| 792 | else if (v == 't'| TRUE | evaluated 198 times by 1 test | | FALSE | evaluated 728 times by 1 test |
) | 198-728 |
| 793 | v = '\t';executed 198 times by 1 test: v = '\t'; | 198 |
| 794 | buf->data[to++] = v; | - |
| 795 | }executed 1583 times by 1 test: end of block else if (is_keytype(conf, *from, 8)| TRUE | evaluated 114494 times by 1 test | | FALSE | evaluated 3523168 times by 1 test |
) | 1583-3523168 |
| 796 | break;executed 114494 times by 1 test: break; | 114494 |
| 797 | else if (*| TRUE | evaluated 12778 times by 1 test | | FALSE | evaluated 3510390 times by 1 test |
from == '$'| TRUE | evaluated 12778 times by 1 test | | FALSE | evaluated 3510390 times by 1 test |
) { | 12778-3510390 |
| 798 | size_t newsize; | - |
| 799 | | - |
| 800 | | - |
| 801 | rrp = | - |
| 802 | ((void *)0) | - |
| 803 | ; | - |
| 804 | s = &(from[1]); | - |
| 805 | if (*| TRUE | evaluated 4020 times by 1 test | | FALSE | evaluated 8758 times by 1 test |
s == '{'| TRUE | evaluated 4020 times by 1 test | | FALSE | evaluated 8758 times by 1 test |
) | 4020-8758 |
| 806 | q = '}';executed 4020 times by 1 test: q = '}'; | 4020 |
| 807 | else if (*| TRUE | evaluated 194 times by 1 test | | FALSE | evaluated 8564 times by 1 test |
s == '('| TRUE | evaluated 194 times by 1 test | | FALSE | evaluated 8564 times by 1 test |
) | 194-8564 |
| 808 | q = ')';executed 194 times by 1 test: q = ')'; | 194 |
| 809 | else | - |
| 810 | q = 0;executed 8564 times by 1 test: q = 0; | 8564 |
| 811 | | - |
| 812 | if (q| TRUE | evaluated 4214 times by 1 test | | FALSE | evaluated 8564 times by 1 test |
) | 4214-8564 |
| 813 | s++;executed 4214 times by 1 test: s++; | 4214 |
| 814 | cp = section; | - |
| 815 | e = np = s; | - |
| 816 | while (is_keytype(conf, *e, ((2|4)|1|256))| TRUE | evaluated 16525 times by 1 test | | FALSE | evaluated 12778 times by 1 test |
) | 12778-16525 |
| 817 | e++;executed 16525 times by 1 test: e++; | 16525 |
| 818 | if ((| TRUE | evaluated 4822 times by 1 test | | FALSE | evaluated 7956 times by 1 test |
e[0] == ':')| TRUE | evaluated 4822 times by 1 test | | FALSE | evaluated 7956 times by 1 test |
&& (| TRUE | evaluated 4361 times by 1 test | | FALSE | evaluated 461 times by 1 test |
e[1] == ':')| TRUE | evaluated 4361 times by 1 test | | FALSE | evaluated 461 times by 1 test |
) { | 461-7956 |
| 819 | cp = np; | - |
| 820 | rrp = e; | - |
| 821 | rr = *e; | - |
| 822 | *rrp = '\0'; | - |
| 823 | e += 2; | - |
| 824 | np = e; | - |
| 825 | while (is_keytype(conf, *e, ((2|4)|1|256))| TRUE | evaluated 53936 times by 1 test | | FALSE | evaluated 4361 times by 1 test |
) | 4361-53936 |
| 826 | e++;executed 53936 times by 1 test: e++; | 53936 |
| 827 | }executed 4361 times by 1 test: end of block | 4361 |
| 828 | r = *e; | - |
| 829 | *e = '\0'; | - |
| 830 | rp = e; | - |
| 831 | if (q| TRUE | evaluated 4214 times by 1 test | | FALSE | evaluated 8564 times by 1 test |
) { | 4214-8564 |
| 832 | if (r != q| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 4206 times by 1 test |
) { | 8-4206 |
| 833 | ERR_put_error(14,(101),(102),__FILE__,597); | - |
| 834 | gotoexecuted 8 times by 1 test: goto err; err;executed 8 times by 1 test: goto err; | 8 |
| 835 | } | - |
| 836 | e++; | - |
| 837 | }executed 4206 times by 1 test: end of block | 4206 |
| 838 | p = _CONF_get_string(conf, cp, np); | - |
| 839 | if (rrp != | TRUE | evaluated 4361 times by 1 test | | FALSE | evaluated 8409 times by 1 test |
| 4361-8409 |
| 840 | ((void *)0)| TRUE | evaluated 4361 times by 1 test | | FALSE | evaluated 8409 times by 1 test |
| 4361-8409 |
| 841 | ) | - |
| 842 | *executed 4361 times by 1 test: *rrp = rr; rrp = rr;executed 4361 times by 1 test: *rrp = rr; | 4361 |
| 843 | *rp = r; | - |
| 844 | if (p == | TRUE | evaluated 74 times by 1 test | | FALSE | evaluated 12696 times by 1 test |
| 74-12696 |
| 845 | ((void *)0)| TRUE | evaluated 74 times by 1 test | | FALSE | evaluated 12696 times by 1 test |
| 74-12696 |
| 846 | ) { | - |
| 847 | ERR_put_error(14,(101),(104),__FILE__,617); | - |
| 848 | gotoexecuted 74 times by 1 test: goto err; err;executed 74 times by 1 test: goto err; | 74 |
| 849 | } | - |
| 850 | newsize = strlen(p) + buf->length - (e - from); | - |
| 851 | if (newsize > 65536| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 12694 times by 1 test |
) { | 2-12694 |
| 852 | ERR_put_error(14,(101),(116),__FILE__,622); | - |
| 853 | gotoexecuted 2 times by 1 test: goto err; err;executed 2 times by 1 test: goto err; | 2 |
| 854 | } | - |
| 855 | if (!BUF_MEM_grow_clean(buf, newsize)| TRUE | never evaluated | | FALSE | evaluated 12694 times by 1 test |
) { | 0-12694 |
| 856 | ERR_put_error(14,(101),((1|64)),__FILE__,626); | - |
| 857 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 858 | } | - |
| 859 | while (*| TRUE | evaluated 546253 times by 1 test | | FALSE | evaluated 12694 times by 1 test |
p| TRUE | evaluated 546253 times by 1 test | | FALSE | evaluated 12694 times by 1 test |
) | 12694-546253 |
| 860 | buf->data[to++] = *(p++);executed 546253 times by 1 test: buf->data[to++] = *(p++); | 546253 |
| 861 | | - |
| 862 | | - |
| 863 | | - |
| 864 | | - |
| 865 | | - |
| 866 | len -= e - from; | - |
| 867 | from = e; | - |
| 868 | | - |
| 869 | | - |
| 870 | | - |
| 871 | | - |
| 872 | | - |
| 873 | | - |
| 874 | *rp = r; | - |
| 875 | }executed 12694 times by 1 test: end of block else | 12694 |
| 876 | buf->data[to++] = *(from++);executed 3510390 times by 1 test: buf->data[to++] = *(from++); | 3510390 |
| 877 | } | - |
| 878 | buf->data[to] = '\0'; | - |
| 879 | CRYPTO_free(*pto, __FILE__, 649); | - |
| 880 | *pto = buf->data; | - |
| 881 | CRYPTO_free(buf, __FILE__, 651); | - |
| 882 | returnexecuted 114712 times by 1 test: return 1; 1;executed 114712 times by 1 test: return 1; | 114712 |
| 883 | err: | - |
| 884 | BUF_MEM_free(buf); | - |
| 885 | returnexecuted 84 times by 1 test: return 0; 0;executed 84 times by 1 test: return 0; | 84 |
| 886 | } | - |
| 887 | | - |
| 888 | | - |
| 889 | | - |
| 890 | | - |
| 891 | | - |
| 892 | | - |
| 893 | | - |
| 894 | static BIO *process_include(char *include, OPENSSL_DIR_CTX **dirctx, | - |
| 895 | char **dirpath) | - |
| 896 | { | - |
| 897 | struct stat st = { 0 }; | - |
| 898 | BIO *next; | - |
| 899 | | - |
| 900 | if (stat(include, &st) < 0| TRUE | evaluated 1668 times by 1 test | | FALSE | evaluated 182 times by 1 test |
) { | 182-1668 |
| 901 | ERR_put_error(2,(22),( | - |
| 902 | (*__errno_location ()) | - |
| 903 | ),__FILE__,671); | - |
| 904 | ERR_add_error_data(1, include); | - |
| 905 | | - |
| 906 | returnexecuted 1668 times by 1 test: return ((void *)0) ; executed 1668 times by 1 test: return ((void *)0) ; | 1668 |
| 907 | ((void *)0)executed 1668 times by 1 test: return ((void *)0) ; | 1668 |
| 908 | ;executed 1668 times by 1 test: return ((void *)0) ; | 1668 |
| 909 | } | - |
| 910 | | - |
| 911 | if ( | - |
| 912 | ((((| TRUE | evaluated 182 times by 1 test | | FALSE | never evaluated |
| 0-182 |
| 913 | st.st_mode| TRUE | evaluated 182 times by 1 test | | FALSE | never evaluated |
| 0-182 |
| 914 | )) & 0170000) == (0040000))| TRUE | evaluated 182 times by 1 test | | FALSE | never evaluated |
| 0-182 |
| 915 | ) { | - |
| 916 | if (*| TRUE | never evaluated | | FALSE | evaluated 182 times by 1 test |
dirctx != | TRUE | never evaluated | | FALSE | evaluated 182 times by 1 test |
| 0-182 |
| 917 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 182 times by 1 test |
| 0-182 |
| 918 | ) { | - |
| 919 | ERR_put_error(14,(116),(111),__FILE__,680) | - |
| 920 | ; | - |
| 921 | ERR_add_error_data(1, include); | - |
| 922 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 923 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 924 | ; never executed: return ((void *)0) ; | 0 |
| 925 | } | - |
| 926 | | - |
| 927 | if ((| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 131 times by 1 test |
next = get_next_file(include, dirctx)) != | TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 131 times by 1 test |
| 51-131 |
| 928 | ((void *)0)| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 131 times by 1 test |
| 51-131 |
| 929 | ) | - |
| 930 | *executed 51 times by 1 test: *dirpath = include; dirpath = include;executed 51 times by 1 test: *dirpath = include; | 51 |
| 931 | returnexecuted 182 times by 1 test: return next; next;executed 182 times by 1 test: return next; | 182 |
| 932 | } | - |
| 933 | | - |
| 934 | next = BIO_new_file(include, "r"); | - |
| 935 | return never executed: return next; next;never executed: return next; | 0 |
| 936 | } | - |
| 937 | | - |
| 938 | | - |
| 939 | | - |
| 940 | | - |
| 941 | | - |
| 942 | static BIO *get_next_file(const char *path, OPENSSL_DIR_CTX **dirctx) | - |
| 943 | { | - |
| 944 | const char *filename; | - |
| 945 | | - |
| 946 | while ((| TRUE | evaluated 65371 times by 1 test | | FALSE | evaluated 131 times by 1 test |
filename = OPENSSL_DIR_read(dirctx, path)) != | TRUE | evaluated 65371 times by 1 test | | FALSE | evaluated 131 times by 1 test |
| 131-65371 |
| 947 | ((void *)0)| TRUE | evaluated 65371 times by 1 test | | FALSE | evaluated 131 times by 1 test |
| 131-65371 |
| 948 | ) { | - |
| 949 | size_t namelen; | - |
| 950 | | - |
| 951 | namelen = strlen(filename); | - |
| 952 | | - |
| 953 | | - |
| 954 | if ((namelen > 5| TRUE | evaluated 64507 times by 1 test | | FALSE | evaluated 864 times by 1 test |
&& strcasecmp(filename + namelen - 5, ".conf") == 0| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 64456 times by 1 test |
) | 51-64507 |
| 955 | || (namelen > 4| TRUE | evaluated 64582 times by 1 test | | FALSE | evaluated 738 times by 1 test |
&& strcasecmp(filename + namelen - 4, ".cnf") == 0| TRUE | evaluated 510 times by 1 test | | FALSE | evaluated 64072 times by 1 test |
)) { | 510-64582 |
| 956 | size_t newlen; | - |
| 957 | char *newpath; | - |
| 958 | BIO *bio; | - |
| 959 | | - |
| 960 | newlen = strlen(path) + namelen + 2; | - |
| 961 | newpath = CRYPTO_zalloc(newlen, __FILE__, 715); | - |
| 962 | if (newpath == | TRUE | never evaluated | | FALSE | evaluated 561 times by 1 test |
| 0-561 |
| 963 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 561 times by 1 test |
| 0-561 |
| 964 | ) { | - |
| 965 | ERR_put_error(14,(107),((1|64)),__FILE__,717); | - |
| 966 | break; never executed: break; | 0 |
| 967 | } | - |
| 968 | if (newpath[0] == '\0'| TRUE | evaluated 561 times by 1 test | | FALSE | never evaluated |
) { | 0-561 |
| 969 | OPENSSL_strlcpy(newpath, path, newlen); | - |
| 970 | OPENSSL_strlcat(newpath, "/", newlen); | - |
| 971 | }executed 561 times by 1 test: end of block | 561 |
| 972 | OPENSSL_strlcat(newpath, filename, newlen); | - |
| 973 | | - |
| 974 | bio = BIO_new_file(newpath, "r"); | - |
| 975 | CRYPTO_free(newpath, __FILE__, 742); | - |
| 976 | | - |
| 977 | if (bio != | TRUE | evaluated 561 times by 1 test | | FALSE | never evaluated |
| 0-561 |
| 978 | ((void *)0)| TRUE | evaluated 561 times by 1 test | | FALSE | never evaluated |
| 0-561 |
| 979 | ) | - |
| 980 | returnexecuted 561 times by 1 test: return bio; bio;executed 561 times by 1 test: return bio; | 561 |
| 981 | } never executed: end of block | 0 |
| 982 | }executed 64810 times by 1 test: end of block | 64810 |
| 983 | OPENSSL_DIR_end(dirctx); | - |
| 984 | *dirctx = | - |
| 985 | ((void *)0) | - |
| 986 | ; | - |
| 987 | returnexecuted 131 times by 1 test: return ((void *)0) ; executed 131 times by 1 test: return ((void *)0) ; | 131 |
| 988 | ((void *)0)executed 131 times by 1 test: return ((void *)0) ; | 131 |
| 989 | ;executed 131 times by 1 test: return ((void *)0) ; | 131 |
| 990 | } | - |
| 991 | | - |
| 992 | | - |
| 993 | static int is_keytype(const CONF *conf, char c, unsigned short type) | - |
| 994 | { | - |
| 995 | const unsigned short * keytypes = (const unsigned short *) conf->meth_data; | - |
| 996 | unsigned char key = (unsigned char)c; | - |
| 997 | if (key > 127| TRUE | evaluated 49145 times by 1 test | | FALSE | evaluated 45625782 times by 1 test |
) { | 49145-45625782 |
| 998 | | - |
| 999 | returnexecuted 49145 times by 1 test: return 0; 0;executed 49145 times by 1 test: return 0; | 49145 |
| 1000 | } | - |
| 1001 | | - |
| 1002 | returnexecuted 45625782 times by 1 test: return (keytypes[key] & type) ? 1 : 0; (| TRUE | evaluated 1675579 times by 1 test | | FALSE | evaluated 43950203 times by 1 test |
keytypes[key] & type)| TRUE | evaluated 1675579 times by 1 test | | FALSE | evaluated 43950203 times by 1 test |
? 1 : 0;executed 45625782 times by 1 test: return (keytypes[key] & type) ? 1 : 0; | 1675579-45625782 |
| 1003 | } | - |
| 1004 | | - |
| 1005 | static char *eat_ws(CONF *conf, char *p) | - |
| 1006 | { | - |
| 1007 | while (is_keytype(conf, *p, 16)| TRUE | evaluated 177588 times by 1 test | | FALSE | evaluated 395746 times by 1 test |
&& (| TRUE | evaluated 177588 times by 1 test | | FALSE | never evaluated |
!is_keytype(conf, *p, 8))| TRUE | evaluated 177588 times by 1 test | | FALSE | never evaluated |
) | 0-395746 |
| 1008 | p++;executed 177588 times by 1 test: p++; | 177588 |
| 1009 | returnexecuted 395746 times by 1 test: return p; p;executed 395746 times by 1 test: return p; | 395746 |
| 1010 | } | - |
| 1011 | | - |
| 1012 | static void trim_ws(CONF *conf, char *start) | - |
| 1013 | { | - |
| 1014 | char *p = start; | - |
| 1015 | | - |
| 1016 | while (!is_keytype(conf, *p, 8)| TRUE | evaluated 3316756 times by 1 test | | FALSE | evaluated 88915 times by 1 test |
) | 88915-3316756 |
| 1017 | p++;executed 3316756 times by 1 test: p++; | 3316756 |
| 1018 | p--; | - |
| 1019 | while ((| TRUE | evaluated 78297 times by 1 test | | FALSE | evaluated 16545 times by 1 test |
p >= start)| TRUE | evaluated 78297 times by 1 test | | FALSE | evaluated 16545 times by 1 test |
&& is_keytype(conf, *p, 16)| TRUE | evaluated 5927 times by 1 test | | FALSE | evaluated 72370 times by 1 test |
) | 5927-78297 |
| 1020 | p--;executed 5927 times by 1 test: p--; | 5927 |
| 1021 | p++; | - |
| 1022 | *p = '\0'; | - |
| 1023 | }executed 88915 times by 1 test: end of block | 88915 |
| 1024 | | - |
| 1025 | static char *eat_alpha_numeric(CONF *conf, char *p) | - |
| 1026 | { | - |
| 1027 | for (;;) { | - |
| 1028 | if (is_keytype(conf, *p, 32)| TRUE | evaluated 1343 times by 1 test | | FALSE | evaluated 1107593 times by 1 test |
) { | 1343-1107593 |
| 1029 | p = (((| TRUE | evaluated 215 times by 1 test | | FALSE | evaluated 1128 times by 1 test |
is_keytype((conf), (p)[1], 8))| TRUE | evaluated 215 times by 1 test | | FALSE | evaluated 1128 times by 1 test |
?((p)+1):((p)+2))); | 215-1128 |
| 1030 | continue;executed 1343 times by 1 test: continue; | 1343 |
| 1031 | } | - |
| 1032 | if (!is_keytype(conf, *p, ((2|4)|1|256|512))| TRUE | evaluated 124682 times by 1 test | | FALSE | evaluated 982911 times by 1 test |
) | 124682-982911 |
| 1033 | returnexecuted 124682 times by 1 test: return p; p;executed 124682 times by 1 test: return p; | 124682 |
| 1034 | p++; | - |
| 1035 | }executed 982911 times by 1 test: end of block | 982911 |
| 1036 | } never executed: end of block | 0 |
| 1037 | | - |
| 1038 | static char *scan_quote(CONF *conf, char *p) | - |
| 1039 | { | - |
| 1040 | int q = *p; | - |
| 1041 | | - |
| 1042 | p++; | - |
| 1043 | while (!(is_keytype(conf, *p, 8))| TRUE | evaluated 4492 times by 1 test | | FALSE | evaluated 716 times by 1 test |
&& (*| TRUE | evaluated 3771 times by 1 test | | FALSE | evaluated 721 times by 1 test |
p != q)| TRUE | evaluated 3771 times by 1 test | | FALSE | evaluated 721 times by 1 test |
) { | 716-4492 |
| 1044 | if (is_keytype(conf, *p, 32)| TRUE | evaluated 1056 times by 1 test | | FALSE | evaluated 2715 times by 1 test |
) { | 1056-2715 |
| 1045 | p++; | - |
| 1046 | if (is_keytype(conf, *p, 8)| TRUE | evaluated 195 times by 1 test | | FALSE | evaluated 861 times by 1 test |
) | 195-861 |
| 1047 | returnexecuted 195 times by 1 test: return p; p;executed 195 times by 1 test: return p; | 195 |
| 1048 | }executed 861 times by 1 test: end of block | 861 |
| 1049 | p++; | - |
| 1050 | }executed 3576 times by 1 test: end of block | 3576 |
| 1051 | if (*| TRUE | evaluated 721 times by 1 test | | FALSE | evaluated 716 times by 1 test |
p == q| TRUE | evaluated 721 times by 1 test | | FALSE | evaluated 716 times by 1 test |
) | 716-721 |
| 1052 | p++;executed 721 times by 1 test: p++; | 721 |
| 1053 | returnexecuted 1437 times by 1 test: return p; p;executed 1437 times by 1 test: return p; | 1437 |
| 1054 | } | - |
| 1055 | | - |
| 1056 | static char *scan_dquote(CONF *conf, char *p) | - |
| 1057 | { | - |
| 1058 | int q = *p; | - |
| 1059 | | - |
| 1060 | p++; | - |
| 1061 | while (!(is_keytype(conf, *p, 8))| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 1062 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 1063 | if (*(| TRUE | never evaluated | | FALSE | never evaluated |
p + 1) == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 1064 | p++; | - |
| 1065 | } never executed: end of block else { | 0 |
| 1066 | break; never executed: break; | 0 |
| 1067 | } | - |
| 1068 | } | - |
| 1069 | p++; | - |
| 1070 | } never executed: end of block | 0 |
| 1071 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1072 | p++; never executed: p++; | 0 |
| 1073 | return never executed: return p; p;never executed: return p; | 0 |
| 1074 | } | - |
| 1075 | | - |
| 1076 | static void dump_value_doall_arg(const CONF_VALUE *a, BIO *out) | - |
| 1077 | { | - |
| 1078 | if (a->name| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1079 | BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); never executed: BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); | 0 |
| 1080 | else | - |
| 1081 | BIO_printf(out, "[[%s]]\n", a->section); never executed: BIO_printf(out, "[[%s]]\n", a->section); | 0 |
| 1082 | } | - |
| 1083 | | - |
| 1084 | static inline void lh_CONF_VALUE_doall_BIO(struct lhash_st_CONF_VALUE *lh, void (*fn)(const CONF_VALUE *, BIO *), BIO *arg) { OPENSSL_LH_doall_arg((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNCARG)fn, (void *)arg); } never executed: end of block struct lhash_st_CONF_VALUE; | 0 |
| 1085 | | - |
| 1086 | static int def_dump(const CONF *conf, BIO *out) | - |
| 1087 | { | - |
| 1088 | lh_CONF_VALUE_doall_BIO(conf->data, dump_value_doall_arg, out); | - |
| 1089 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 1090 | } | - |
| 1091 | | - |
| 1092 | static int def_is_number(const CONF *conf, char c) | - |
| 1093 | { | - |
| 1094 | returnexecuted 120 times by 1 test: return is_keytype(conf, c, 1); is_keytype(conf, c, 1);executed 120 times by 1 test: return is_keytype(conf, c, 1); | 120 |
| 1095 | } | - |
| 1096 | | - |
| 1097 | static int def_to_int(const CONF *conf, char c) | - |
| 1098 | { | - |
| 1099 | returnexecuted 83 times by 1 test: return c - '0'; c - '0';executed 83 times by 1 test: return c - '0'; | 83 |
| 1100 | } | - |
| | |