| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | static SRTP_PROTECTION_PROFILE srtp_known_profiles[] = { | - |
| 9 | { | - |
| 10 | "SRTP_AES128_CM_SHA1_80", | - |
| 11 | 0x0001, | - |
| 12 | }, | - |
| 13 | { | - |
| 14 | "SRTP_AES128_CM_SHA1_32", | - |
| 15 | 0x0002, | - |
| 16 | }, | - |
| 17 | {0} | - |
| 18 | }; | - |
| 19 | | - |
| 20 | int | - |
| 21 | srtp_find_profile_by_name(char *profile_name, SRTP_PROTECTION_PROFILE **pptr, | - |
| 22 | unsigned len) | - |
| 23 | { | - |
| 24 | SRTP_PROTECTION_PROFILE *p; | - |
| 25 | | - |
| 26 | p = srtp_known_profiles; | - |
| 27 | while (p->name| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-8 |
| 28 | if ((| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
len == strlen(p->name))| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& | 0-8 |
| 29 | !| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 30 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-8 |
| 31 | len| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-8 |
| 32 | )| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-8 |
| 33 | p->name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 34 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 35 | p->name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 36 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 37 | len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 38 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 39 | profile_name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 40 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 41 | profile_name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 42 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 43 | len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 44 | ))| TRUE | never evaluated | | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 45 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 46 | ) && __builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 47 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 48 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 49 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 50 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 51 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 52 | ), (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 53 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 54 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 55 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 56 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 57 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 58 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 59 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 60 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 61 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 62 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 63 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 64 | ) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 65 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 66 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 67 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 68 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 69 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 70 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 71 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 72 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 73 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 74 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 75 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 76 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 77 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 78 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 79 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 80 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 81 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 82 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 83 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 84 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 85 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 86 | ))[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 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 87 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 88 | ))[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 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 89 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 90 | ))[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 *) ( p->name ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 91 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( p->name ))[3] - __s2[3]); | 0-6 |
| 92 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( p->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 93 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 94 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 95 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 96 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 97 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 98 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 99 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 100 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 101 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 102 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 103 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 104 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 105 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 106 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 107 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 108 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 109 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 110 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 111 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 112 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 113 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 114 | ))[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 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 115 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 116 | ))[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 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 117 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 118 | ))[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 *) ( profile_name ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 119 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( profile_name ))[3] - __s2[3]); | 0-6 |
| 120 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( profile_name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-6 |
| 121 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 122 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 123 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 124 | )))); }) : strncmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 125 | p->name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 126 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 127 | profile_name| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 128 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 129 | len| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 130 | )))| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-6 |
| 131 | ) { | - |
| 132 | *pptr = p; | - |
| 133 | returnexecuted 6 times by 1 test: return 0; 0;executed 6 times by 1 test: return 0; | 6 |
| 134 | } | - |
| 135 | | - |
| 136 | p++; | - |
| 137 | }executed 2 times by 1 test: end of block | 2 |
| 138 | | - |
| 139 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 140 | } | - |
| 141 | | - |
| 142 | int | - |
| 143 | srtp_find_profile_by_num(unsigned profile_num, SRTP_PROTECTION_PROFILE **pptr) | - |
| 144 | { | - |
| 145 | SRTP_PROTECTION_PROFILE *p; | - |
| 146 | | - |
| 147 | p = srtp_known_profiles; | - |
| 148 | while (p->name| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) { | 3-12 |
| 149 | if (p->id == profile_num| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 8 times by 1 test |
) { | 4-8 |
| 150 | *pptr = p; | - |
| 151 | returnexecuted 4 times by 1 test: return 0; 0;executed 4 times by 1 test: return 0; | 4 |
| 152 | } | - |
| 153 | p++; | - |
| 154 | }executed 8 times by 1 test: end of block | 8 |
| 155 | | - |
| 156 | returnexecuted 3 times by 1 test: return 1; 1;executed 3 times by 1 test: return 1; | 3 |
| 157 | } | - |
| 158 | | - |
| 159 | static int | - |
| 160 | ssl_ctx_make_profiles(const char *profiles_string, | - |
| 161 | struct stack_st_SRTP_PROTECTION_PROFILE **out) | - |
| 162 | { | - |
| 163 | struct stack_st_SRTP_PROTECTION_PROFILE *profiles; | - |
| 164 | | - |
| 165 | char *col; | - |
| 166 | char *ptr = (char *)profiles_string; | - |
| 167 | | - |
| 168 | SRTP_PROTECTION_PROFILE *p; | - |
| 169 | | - |
| 170 | if (!(profiles = ((struct stack_st_SRTP_PROTECTION_PROFILE *)sk_new_null()))| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) { | 0-3 |
| 171 | ERR_put_error(20,(0xfff),(362),__FILE__,190); | - |
| 172 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 173 | } | - |
| 174 | | - |
| 175 | do { | - |
| 176 | col = | - |
| 177 | (__extension__ (__builtin_constant_p (| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
| 0-5 |
| 178 | ':'| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
| 0-5 |
| 179 | )| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
| 0-5 |
| 180 | ptr| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
| 0-5 |
| 181 | )| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
| 0-5 |
| 182 | ':'| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
| 0-5 |
| 183 | ) == '\0'| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
? (char *) __rawmemchr ( | 0-5 |
| 184 | ptr | - |
| 185 | , | - |
| 186 | ':' | - |
| 187 | ) : __builtin_strchr ( | - |
| 188 | ptr | - |
| 189 | , | - |
| 190 | ':' | - |
| 191 | ))) | - |
| 192 | ; | - |
| 193 | | - |
| 194 | if (!srtp_find_profile_by_name(ptr, &p,| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
| 0-5 |
| 195 | col ? col - ptr : (int)strlen(ptr))| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
) { | 0-5 |
| 196 | sk_push(((_STACK*) (1 ? (profiles) : (struct stack_st_SRTP_PROTECTION_PROFILE*)0)), ((void*) (1 ? (p) : (SRTP_PROTECTION_PROFILE*)0))); | - |
| 197 | }executed 5 times by 1 test: end of block else { | 5 |
| 198 | ERR_put_error(20,(0xfff),(364),__FILE__,201); | - |
| 199 | sk_free(((_STACK*) (1 ? (profiles) : (struct stack_st_SRTP_PROTECTION_PROFILE*)0))); | - |
| 200 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 201 | } | - |
| 202 | | - |
| 203 | if (col| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 2-3 |
| 204 | ptr = col + 1;executed 2 times by 1 test: ptr = col + 1; | 2 |
| 205 | }executed 5 times by 1 test: end of block while (col| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3 times by 1 test |
); | 2-5 |
| 206 | | - |
| 207 | *out = profiles; | - |
| 208 | | - |
| 209 | returnexecuted 3 times by 1 test: return 0; 0;executed 3 times by 1 test: return 0; | 3 |
| 210 | } | - |
| 211 | | - |
| 212 | int | - |
| 213 | SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles) | - |
| 214 | { | - |
| 215 | return never executed: return ssl_ctx_make_profiles(profiles, &ctx->internal->srtp_profiles); ssl_ctx_make_profiles(profiles, &ctx->internal->srtp_profiles);never executed: return ssl_ctx_make_profiles(profiles, &ctx->internal->srtp_profiles); | 0 |
| 216 | } | - |
| 217 | | - |
| 218 | int | - |
| 219 | SSL_set_tlsext_use_srtp(SSL *s, const char *profiles) | - |
| 220 | { | - |
| 221 | returnexecuted 3 times by 1 test: return ssl_ctx_make_profiles(profiles, &s->internal->srtp_profiles); ssl_ctx_make_profiles(profiles, &s->internal->srtp_profiles);executed 3 times by 1 test: return ssl_ctx_make_profiles(profiles, &s->internal->srtp_profiles); | 3 |
| 222 | } | - |
| 223 | | - |
| 224 | | - |
| 225 | struct stack_st_SRTP_PROTECTION_PROFILE * | - |
| 226 | SSL_get_srtp_profiles(SSL *s) | - |
| 227 | { | - |
| 228 | if (s != | TRUE | evaluated 23 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
| 0-23 |
| 229 | ((void *)0)| TRUE | evaluated 23 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
| 0-23 |
| 230 | ) { | - |
| 231 | if (s->internal->srtp_profiles != | TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
| 10-13 |
| 232 | ((void *)0)| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
| 10-13 |
| 233 | ) { | - |
| 234 | returnexecuted 10 times by 1 test: return s->internal->srtp_profiles; s->internal->srtp_profiles;executed 10 times by 1 test: return s->internal->srtp_profiles; | 10 |
| 235 | } else if ((| TRUE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
s->ctx != | TRUE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
| 0-13 |
| 236 | ((void *)0)| TRUE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
| 0-13 |
| 237 | )| TRUE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
| | FALSE | never evaluated |
&& | 0-13 |
| 238 | (| TRUE | never evaluated | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
s->ctx->internal->srtp_profiles != | TRUE | never evaluated | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
| 0-13 |
| 239 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
| 0-13 |
| 240 | )| TRUE | never evaluated | | FALSE | evaluated 13 times by 3 testsEvaluated by:- clienttest
- ssltest
- tlsexttest
|
) { | 0-13 |
| 241 | return never executed: return s->ctx->internal->srtp_profiles; s->ctx->internal->srtp_profiles;never executed: return s->ctx->internal->srtp_profiles; | 0 |
| 242 | } | - |
| 243 | }executed 13 times by 3 tests: end of blockExecuted by:- clienttest
- ssltest
- tlsexttest
| 13 |
| 244 | | - |
| 245 | returnexecuted 13 times by 3 tests: return ((void *)0) ;Executed by:- clienttest
- ssltest
- tlsexttest
executed 13 times by 3 tests: return ((void *)0) ;Executed by:- clienttest
- ssltest
- tlsexttest
| 13 |
| 246 | ((void *)0)executed 13 times by 3 tests: return ((void *)0) ;Executed by:- clienttest
- ssltest
- tlsexttest
| 13 |
| 247 | ;executed 13 times by 3 tests: return ((void *)0) ;Executed by:- clienttest
- ssltest
- tlsexttest
| 13 |
| 248 | } | - |
| 249 | | - |
| 250 | SRTP_PROTECTION_PROFILE * | - |
| 251 | SSL_get_selected_srtp_profile(SSL *s) | - |
| 252 | { | - |
| 253 | returnexecuted 25 times by 2 tests: return s->internal->srtp_profile; s->internal->srtp_profile;executed 25 times by 2 tests: return s->internal->srtp_profile; | 25 |
| 254 | } | - |
| | |