OpenCoverage

x509_d2.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509/x509_d2.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3int X509_STORE_set_default_paths(X509_STORE *ctx)-
4{-
5 X509_LOOKUP *lookup;-
6-
7 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file());-
8 if (lookup ==
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 67 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-67
9 ((void *)0)
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 67 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-67
10 )-
11 return
never executed: return 0;
0;
never executed: return 0;
0
12 X509_LOOKUP_ctrl((lookup),1,(-
13 ((void *)0)-
14 ),(long)(3),-
15 ((void *)0)-
16 );-
17-
18 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_hash_dir());-
19 if (lookup ==
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 67 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-67
20 ((void *)0)
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 67 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-67
21 )-
22 return
never executed: return 0;
0;
never executed: return 0;
0
23 X509_LOOKUP_ctrl((lookup),2,(-
24 ((void *)0)-
25 ),(long)(3),-
26 ((void *)0)-
27 );-
28-
29-
30 ERR_clear_error();-
31-
32 return
executed 67 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 67 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
67
33}-
34-
35int X509_STORE_load_locations(X509_STORE *ctx, const char *file,-
36 const char *path)-
37{-
38 X509_LOOKUP *lookup;-
39-
40 if (file !=
file != ((void *)0)Description
TRUEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
115-1252
41 ((void *)0)
file != ((void *)0)Description
TRUEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
115-1252
42 ) {-
43 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file());-
44 if (lookup ==
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1252
45 ((void *)0)
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1252
46 )-
47 return
never executed: return 0;
0;
never executed: return 0;
0
48 if (X509_LOOKUP_ctrl((lookup),1,(file),(long)(1),
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1252
49 ((void *)0)
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1252
50 ) != 1
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1252
51 return
never executed: return 0;
0;
never executed: return 0;
0
52 }
executed 1252 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1252
53 if (path !=
path != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1367
54 ((void *)0)
path != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1367
55 ) {-
56 lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_hash_dir());-
57 if (lookup ==
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
58 ((void *)0)
lookup == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
59 )-
60 return
never executed: return 0;
0;
never executed: return 0;
0
61 if (X509_LOOKUP_ctrl((lookup),2,(path),(long)(1),
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
62 ((void *)0)
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
63 ) != 1
X509_LOOKUP_ct...id *)0) ) != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
64 return
never executed: return 0;
0;
never executed: return 0;
0
65 }
never executed: end of block
0
66 if ((
(path == ((void *)0) )Description
TRUEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
path ==
(path == ((void *)0) )Description
TRUEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-1367
67 ((void *)0)
(path == ((void *)0) )Description
TRUEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-1367
68 )
(path == ((void *)0) )Description
TRUEevaluated 1367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& (
(file == ((void *)0) )Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
file ==
(file == ((void *)0) )Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1367
69 ((void *)0)
(file == ((void *)0) )Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
115-1252
70 )
(file == ((void *)0) )Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1252 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
115-1252
71 return
executed 115 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 115 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
115
72 return
executed 1252 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 1252 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1252
73}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2