OpenCoverage

eng_ctrl.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/engine/eng_ctrl.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6static const char *int_no_description = "";-
7-
8-
9-
10-
11-
12-
13-
14static int int_ctrl_cmd_is_null(const ENGINE_CMD_DEFN *defn)-
15{-
16 if ((
(defn->cmd_num == 0)Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
defn->cmd_num == 0)
(defn->cmd_num == 0)Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
|| (
(defn->cmd_nam... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
defn->cmd_name ==
(defn->cmd_nam... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-29440
17 ((void *)0)
(defn->cmd_nam... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-29440
18 )
(defn->cmd_nam... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 29440 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-29440
19 return
never executed: return 1;
1;
never executed: return 1;
0
20 return
executed 29440 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 29440 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
29440
21}-
22-
23static int int_ctrl_cmd_by_name(const ENGINE_CMD_DEFN *defn, const char *s)-
24{-
25 int idx = 0;-
26 while (!int_ctrl_cmd_is_null(defn)
!int_ctrl_cmd_is_null(defn)Description
TRUEevaluated 9200 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-9200
27 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
28 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
29 ) && __builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
30 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
31 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
32 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
33 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
34 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
35 ), (!((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
36 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
37 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
38 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
39 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
40 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
41 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
42 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
43 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
44 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
45 ,
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
46 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
47 ) : (__builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
48 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
49 ) && ((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
50 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
51 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
52 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
53 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
54 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
55 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
56 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
57 ) && ((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
58 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
59 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
60 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
61 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
62 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
63 ,
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
64 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
65 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
66 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
67 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
68 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
69 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
70 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
71 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
72 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
73 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( defn->cmd_name ))[3] - __s2[3]);
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
74 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
never executed: __result = (((const unsigned char *) (const char *) ( defn->cmd_name ))[3] - __s2[3]);
0-7360
75 ))[3] - __s2[3]);
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
never executed: __result = (((const unsigned char *) (const char *) ( defn->cmd_name ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
76 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
77 ) && ((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
78 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
79 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
80 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
81 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
82 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
83 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
84 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
85 ) && ((size_t)(const void *)((
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
86 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
87 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
88 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
89 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
90 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
91 ,
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
92 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
93 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
94 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
95 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
96 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
97 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
98 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
99 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
100 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
101 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]);
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
102 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]);
0-7360
103 ))[3] - __s2[3]);
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7360
104 defn->cmd_name
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
105 ,
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
106 s
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
107 )))); })
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1840-7360
108 != 0)
( __extension_...)))); }) != 0)Description
TRUEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1840-7360
109 idx++;-
110 defn++;-
111 }
executed 7360 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
7360
112 if (int_ctrl_cmd_is_null(defn)
int_ctrl_cmd_is_null(defn)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1840
113-
114 return
never executed: return -1;
-1;
never executed: return -1;
0
115 return
executed 1840 times by 1 test: return idx;
Executed by:
  • libcrypto.so.1.1
idx;
executed 1840 times by 1 test: return idx;
Executed by:
  • libcrypto.so.1.1
1840
116}-
117-
118static int int_ctrl_cmd_by_num(const ENGINE_CMD_DEFN *defn, unsigned int num)-
119{-
120 int idx = 0;-
121-
122-
123-
124-
125 while (!int_ctrl_cmd_is_null(defn)
!int_ctrl_cmd_is_null(defn)Description
TRUEevaluated 18400 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& (
(defn->cmd_num < num)Description
TRUEevaluated 14720 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
defn->cmd_num < num)
(defn->cmd_num < num)Description
TRUEevaluated 14720 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-18400
126 idx++;-
127 defn++;-
128 }
executed 14720 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
14720
129 if (defn->cmd_num == num
defn->cmd_num == numDescription
TRUEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
)
0-3680
130 return
executed 3680 times by 1 test: return idx;
Executed by:
  • libcrypto.so.1.1
idx;
executed 3680 times by 1 test: return idx;
Executed by:
  • libcrypto.so.1.1
3680
131-
132 return
never executed: return -1;
-1;
never executed: return -1;
0
133}-
134-
135static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p,-
136 void (*f) (void))-
137{-
138 int idx;-
139 char *s = (char *)p;-
140 const ENGINE_CMD_DEFN *cdp;-
141-
142-
143 if (cmd == 11
cmd == 11Description
TRUEnever evaluated
FALSEevaluated 5520 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-5520
144 if ((
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
e->cmd_defns ==
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
145 ((void *)0)
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
146 )
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
|| int_ctrl_cmd_is_null(e->cmd_defns)
int_ctrl_cmd_i...(e->cmd_defns)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
147 return
never executed: return 0;
0;
never executed: return 0;
0
148 return
never executed: return e->cmd_defns->cmd_num;
e->cmd_defns->cmd_num;
never executed: return e->cmd_defns->cmd_num;
0
149 }-
150-
151 if ((
(cmd == 13)Description
TRUEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
cmd == 13)
(cmd == 13)Description
TRUEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
||
1840-3680
152 (
(cmd == 15)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
cmd == 15)
(cmd == 15)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
||
0-3680
153 (
(cmd == 17)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
cmd == 17)
(cmd == 17)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-3680
154 if (s ==
s == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
155 ((void *)0)
s == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
156 ) {-
157 ERR_put_error(38,(172),((3|64)),__FILE__,79);-
158 return
never executed: return -1;
-1;
never executed: return -1;
0
159 }-
160 }
executed 1840 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1840
161-
162 if (cmd == 13
cmd == 13Description
TRUEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1840-3680
163 if ((
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
e->cmd_defns ==
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
164 ((void *)0)
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
165 )
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
166 || ((
((idx = int_ct...efns, s)) < 0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
idx = int_ctrl_cmd_by_name(e->cmd_defns, s)) < 0)
((idx = int_ct...efns, s)) < 0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1840
167 ERR_put_error(38,(172),(137),__FILE__,87);-
168 return
never executed: return -1;
-1;
never executed: return -1;
0
169 }-
170 return
executed 1840 times by 1 test: return e->cmd_defns[idx].cmd_num;
Executed by:
  • libcrypto.so.1.1
e->cmd_defns[idx].cmd_num;
executed 1840 times by 1 test: return e->cmd_defns[idx].cmd_num;
Executed by:
  • libcrypto.so.1.1
1840
171 }-
172-
173-
174-
175-
176 if ((
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
e->cmd_defns ==
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-3680
177 ((void *)0)
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-3680
178 )
(e->cmd_defns == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-3680
179 || ((
((idx = int_ct...d int)i)) < 0)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
idx = int_ctrl_cmd_by_num(e->cmd_defns, (unsigned int)i)) < 0)
((idx = int_ct...d int)i)) < 0)Description
TRUEnever evaluated
FALSEevaluated 3680 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-3680
180 ERR_put_error(38,(172),(138),__FILE__,98);-
181 return
never executed: return -1;
-1;
never executed: return -1;
0
182 }-
183-
184 cdp = &e->cmd_defns[idx];-
185 switch (cmd) {-
186 case
never executed: case 12:
12:
never executed: case 12:
0
187 cdp++;-
188 return
never executed: return int_ctrl_cmd_is_null(cdp) ? 0 : cdp->cmd_num;
int_ctrl_cmd_is_null(cdp)
int_ctrl_cmd_is_null(cdp)Description
TRUEnever evaluated
FALSEnever evaluated
? 0 : cdp->cmd_num;
never executed: return int_ctrl_cmd_is_null(cdp) ? 0 : cdp->cmd_num;
0
189 case
never executed: case 14:
14:
never executed: case 14:
0
190 return
never executed: return strlen(cdp->cmd_name);
strlen(cdp->cmd_name);
never executed: return strlen(cdp->cmd_name);
0
191 case
never executed: case 15:
15:
never executed: case 15:
0
192 return
never executed: return strlen(strcpy(s, cdp->cmd_name));
strlen(strcpy(s, cdp->cmd_name));
never executed: return strlen(strcpy(s, cdp->cmd_name));
0
193 case
never executed: case 16:
16:
never executed: case 16:
0
194 return
never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc);
strlen(cdp->cmd_desc ==
never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc);
0
195 ((void *)0)
never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc);
0
196 ? int_no_description
never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc);
0
197 : cdp->cmd_desc);
never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc);
0
198 case
never executed: case 17:
17:
never executed: case 17:
0
199 return
never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc));
strlen(strcpy(s, cdp->cmd_desc ==
never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc));
0
200 ((void *)0)
never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc));
0
201 ? int_no_description
never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc));
0
202 : cdp->cmd_desc));
never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc));
0
203 case
executed 3680 times by 1 test: case 18:
Executed by:
  • libcrypto.so.1.1
18:
executed 3680 times by 1 test: case 18:
Executed by:
  • libcrypto.so.1.1
3680
204 return
executed 3680 times by 1 test: return cdp->cmd_flags;
Executed by:
  • libcrypto.so.1.1
cdp->cmd_flags;
executed 3680 times by 1 test: return cdp->cmd_flags;
Executed by:
  • libcrypto.so.1.1
3680
205 }-
206-
207 ERR_put_error(38,(172),(110),__FILE__,121);-
208 return
never executed: return -1;
-1;
never executed: return -1;
0
209}-
210-
211int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void))-
212{-
213 int ctrl_exists, ref_exists;-
214 if (e ==
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 7727 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7727
215 ((void *)0)
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 7727 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-7727
216 ) {-
217 ERR_put_error(38,(142),((3|64)),__FILE__,129);-
218 return
never executed: return 0;
0;
never executed: return 0;
0
219 }-
220 CRYPTO_THREAD_write_lock(global_engine_lock);-
221 ref_exists = ((
(e->struct_ref > 0)Description
TRUEevaluated 7727 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
e->struct_ref > 0)
(e->struct_ref > 0)Description
TRUEevaluated 7727 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
? 1 : 0);
0-7727
222 CRYPTO_THREAD_unlock(global_engine_lock);-
223 ctrl_exists = ((
(e->ctrl == ((void *)0) )Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
e->ctrl ==
(e->ctrl == ((void *)0) )Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
367-7360
224 ((void *)0)
(e->ctrl == ((void *)0) )Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
367-7360
225 )
(e->ctrl == ((void *)0) )Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7360 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 0 : 1);
367-7360
226 if (!ref_exists
!ref_existsDescription
TRUEnever evaluated
FALSEevaluated 7727 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-7727
227 ERR_put_error(38,(142),(130),__FILE__,137);-
228 return
never executed: return 0;
0;
never executed: return 0;
0
229 }-
230-
231-
232-
233-
234 switch (cmd) {-
235 case
never executed: case 10:
10:
never executed: case 10:
0
236 return
never executed: return ctrl_exists;
ctrl_exists;
never executed: return ctrl_exists;
0
237 case
never executed: case 11:
11:
never executed: case 11:
0
238 case
never executed: case 12:
12:
never executed: case 12:
0
239 case
executed 1840 times by 1 test: case 13:
Executed by:
  • libcrypto.so.1.1
13:
executed 1840 times by 1 test: case 13:
Executed by:
  • libcrypto.so.1.1
1840
240 case
never executed: case 14:
14:
never executed: case 14:
0
241 case
never executed: case 15:
15:
never executed: case 15:
0
242 case
never executed: case 16:
16:
never executed: case 16:
0
243 case
never executed: case 17:
17:
never executed: case 17:
0
244 case
executed 3680 times by 1 test: case 18:
Executed by:
  • libcrypto.so.1.1
18:
executed 3680 times by 1 test: case 18:
Executed by:
  • libcrypto.so.1.1
3680
245 if (ctrl_exists
ctrl_existsDescription
TRUEevaluated 5520 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& !(e->flags & (int)0x0002)
!(e->flags & (int)0x0002)Description
TRUEevaluated 5520 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
)
0-5520
246 return
executed 5520 times by 1 test: return int_ctrl_helper(e, cmd, i, p, f);
Executed by:
  • libcrypto.so.1.1
int_ctrl_helper(e, cmd, i, p, f);
executed 5520 times by 1 test: return int_ctrl_helper(e, cmd, i, p, f);
Executed by:
  • libcrypto.so.1.1
5520
247 if (!ctrl_exists
!ctrl_existsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
248 ERR_put_error(38,(142),(120),__FILE__,158);-
249-
250-
251-
252-
253-
254 return
never executed: return -1;
-1;
never executed: return -1;
0
255 }-
256 default
executed 2207 times by 1 test: default:
Executed by:
  • libcrypto.so.1.1
code before this statement never executed: default:
executed 2207 times by 1 test: default:
Executed by:
  • libcrypto.so.1.1
:
code before this statement never executed: default:
executed 2207 times by 1 test: default:
Executed by:
  • libcrypto.so.1.1
0-2207
257 break;
executed 2207 times by 1 test: break;
Executed by:
  • libcrypto.so.1.1
2207
258 }-
259-
260 if (!ctrl_exists
!ctrl_existsDescription
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
367-1840
261 ERR_put_error(38,(142),(120),__FILE__,171);-
262 return
executed 367 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 367 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
367
263 }-
264 return
executed 1840 times by 1 test: return e->ctrl(e, cmd, i, p, f);
Executed by:
  • libcrypto.so.1.1
e->ctrl(e, cmd, i, p, f);
executed 1840 times by 1 test: return e->ctrl(e, cmd, i, p, f);
Executed by:
  • libcrypto.so.1.1
1840
265}-
266-
267int ENGINE_cmd_is_executable(ENGINE *e, int cmd)-
268{-
269 int flags;-
270 if ((
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
flags =
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
271 ENGINE_ctrl(e, 18, cmd,
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
272 ((void *)0)
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
273 ,
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
274 ((void *)0)
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
275 )) < 0
(flags = ENGIN...id *)0) )) < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1840
276 ERR_put_error(38,(170),(138),__FILE__,183)-
277 ;-
278 return
never executed: return 0;
0;
never executed: return 0;
0
279 }-
280 if (!(flags & (unsigned int)0x0004)
!(flags & (uns...ed int)0x0004)Description
TRUEevaluated 1472 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&&
368-1472
281 !(flags & (unsigned int)0x0001)
!(flags & (uns...ed int)0x0001)Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&&
736
282 !(flags & (unsigned int)0x0002)
!(flags & (uns...ed int)0x0002)Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-736
283 return
never executed: return 0;
0;
never executed: return 0;
0
284 return
executed 1840 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 1840 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1840
285}-
286-
287int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,-
288 long i, void *p, void (*f) (void), int cmd_optional)-
289{-
290 int num;-
291-
292 if (e ==
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-367
293 ((void *)0)
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-367
294 || cmd_name ==
cmd_name == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-367
295 ((void *)0)
cmd_name == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-367
296 ) {-
297 ERR_put_error(38,(178),((3|64)),__FILE__,199);-
298 return
never executed: return 0;
0;
never executed: return 0;
0
299 }-
300 if (e->ctrl ==
e->ctrl == ((void *)0)Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-367
301 ((void *)0)
e->ctrl == ((void *)0)Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-367
302 -
303 || (
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
num = ENGINE_ctrl(e, 13,
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
304 0, (void *)cmd_name,
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
305 ((void *)0)
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
306 )) <= 0
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
307 if (cmd_optional
cmd_optionalDescription
TRUEevaluated 367 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
) {
0-367
308 ERR_clear_error();-
309 return
executed 367 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 367 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
367
310 }-
311 ERR_put_error(38,(178),(137),__FILE__,217);-
312 return
never executed: return 0;
0;
never executed: return 0;
0
313 }-
314-
315-
316-
317-
318 if (ENGINE_ctrl(e, num, i, p, f) > 0
ENGINE_ctrl(e,..., i, p, f) > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
319 return
never executed: return 1;
1;
never executed: return 1;
0
320 return
never executed: return 0;
0;
never executed: return 0;
0
321}-
322-
323int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,-
324 int cmd_optional)-
325{-
326 int num, flags;-
327 long l;-
328 char *ptr;-
329-
330 if (e ==
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
331 ((void *)0)
e == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
332 || cmd_name ==
cmd_name == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
333 ((void *)0)
cmd_name == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
334 ) {-
335 ERR_put_error(38,(171),((3|64)),__FILE__,237);-
336 return
never executed: return 0;
0;
never executed: return 0;
0
337 }-
338 if (e->ctrl ==
e->ctrl == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
339 ((void *)0)
e->ctrl == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
340 -
341 || (
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
num = ENGINE_ctrl(e, 13,
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
342 0, (void *)cmd_name,
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
343 ((void *)0)
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1840
344 )) <= 0
(num = ENGINE_...d *)0) )) <= 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1840
345 if (cmd_optional
cmd_optionalDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
346 ERR_clear_error();-
347 return
never executed: return 1;
1;
never executed: return 1;
0
348 }-
349 ERR_put_error(38,(171),(137),__FILE__,255);-
350 return
never executed: return 0;
0;
never executed: return 0;
0
351 }-
352 if (!ENGINE_cmd_is_executable(e, num)
!ENGINE_cmd_is...utable(e, num)Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1840
353 ERR_put_error(38,(171),(134),__FILE__,260)-
354 ;-
355 return
never executed: return 0;
0;
never executed: return 0;
0
356 }-
357-
358 flags = ENGINE_ctrl(e, 18, num, -
359 ((void *)0)-
360 , -
361 ((void *)0)-
362 );-
363 if (flags < 0
flags < 0Description
TRUEnever evaluated
FALSEevaluated 1840 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1840
364-
365-
366-
367-
368 ERR_put_error(38,(171),(110),__FILE__,271)-
369 ;-
370 return
never executed: return 0;
0;
never executed: return 0;
0
371 }-
372-
373-
374-
375 if (flags & (unsigned int)0x0004
flags & (unsigned int)0x0004Description
TRUEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1472 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
368-1472
376 if (arg !=
arg != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-368
377 ((void *)0)
arg != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-368
378 ) {-
379 ERR_put_error(38,(171),(136),__FILE__,280)-
380 ;-
381 return
never executed: return 0;
0;
never executed: return 0;
0
382 }-
383-
384-
385-
386-
387-
388-
389 if (ENGINE_ctrl(e, num, 0, (void *)arg,
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-368
390 ((void *)0)
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-368
391 ) > 0
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 368 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
)
0-368
392 return
executed 368 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 368 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
368
393 return
never executed: return 0;
0;
never executed: return 0;
0
394 }-
395-
396 if (arg ==
arg == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1472 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1472
397 ((void *)0)
arg == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1472 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-1472
398 ) {-
399 ERR_put_error(38,(171),(135),__FILE__,296)-
400 ;-
401 return
never executed: return 0;
0;
never executed: return 0;
0
402 }-
403-
404 if (flags & (unsigned int)0x0002
flags & (unsigned int)0x0002Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
736
405-
406 if (ENGINE_ctrl(e, num, 0, (void *)arg,
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
407 ((void *)0)
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
408 ) > 0
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
)
0-736
409 return
executed 736 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 736 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
736
410 return
never executed: return 0;
0;
never executed: return 0;
0
411 }-
412-
413-
414-
415-
416-
417-
418 if (!(flags & (unsigned int)0x0001)
!(flags & (uns...ed int)0x0001)Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-736
419 ERR_put_error(38,(171),(110),__FILE__,314)-
420 ;-
421 return
never executed: return 0;
0;
never executed: return 0;
0
422 }-
423 l = strtol(arg, &ptr, 10);-
424 if ((
(arg == ptr)Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
arg == ptr)
(arg == ptr)Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
|| (*
(*ptr != '\0')Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
ptr != '\0')
(*ptr != '\0')Description
TRUEnever evaluated
FALSEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-736
425 ERR_put_error(38,(171),(133),__FILE__,320)-
426 ;-
427 return
never executed: return 0;
0;
never executed: return 0;
0
428 }-
429-
430-
431-
432-
433 if (ENGINE_ctrl(e, num, l,
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
434 ((void *)0)
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
435 ,
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
436 ((void *)0)
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-736
437 ) > 0
ENGINE_ctrl(e,...oid *)0) ) > 0Description
TRUEevaluated 736 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
)
0-736
438 return
executed 736 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 736 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
736
439 return
never executed: return 0;
0;
never executed: return 0;
0
440}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2