| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | static int | - |
| 14 | sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename) | - |
| 15 | { | - |
| 16 | int fd, oerrno; | - |
| 17 | | - |
| 18 | if ((| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
fd = open(filename, | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 19 | 01 | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 20 | | | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 21 | 0100 | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 22 | | | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 23 | 01000| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 24 | , 0600)) < 0| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
| 25 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 26 | if (atomicio((ssize_t (*)(int, void *, size_t))write, fd, sshbuf_mutable_ptr(keybuf),| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 27 | sshbuf_len(keybuf)) != sshbuf_len(keybuf)| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
) { | 0-7 |
| 28 | oerrno = | - |
| 29 | (*__errno_location ()) | - |
| 30 | ; | - |
| 31 | close(fd); | - |
| 32 | unlink(filename); | - |
| 33 | | - |
| 34 | (*__errno_location ()) | - |
| 35 | = oerrno; | - |
| 36 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 37 | } | - |
| 38 | close(fd); | - |
| 39 | returnexecuted 7 times by 1 test: return 0; 0;executed 7 times by 1 test: return 0; | 7 |
| 40 | } | - |
| 41 | | - |
| 42 | int | - |
| 43 | sshkey_save_private(struct sshkey *key, const char *filename, | - |
| 44 | const char *passphrase, const char *comment, | - |
| 45 | int force_new_format, const char *new_format_cipher, int new_format_rounds) | - |
| 46 | { | - |
| 47 | struct sshbuf *keyblob = | - |
| 48 | ((void *)0) | - |
| 49 | ; | - |
| 50 | int r; | - |
| 51 | | - |
| 52 | if ((| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
keyblob = sshbuf_new()) == | TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 53 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 54 | ) | - |
| 55 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 56 | if ((| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
r = sshkey_private_to_fileblob(key, keyblob, passphrase, comment,| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
| 0-7 |
| 57 | force_new_format, new_format_cipher, new_format_rounds)) != 0| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
| 58 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 59 | if ((| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
r = sshkey_save_private_blob(keyblob, filename)) != 0| TRUE | never evaluated | | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
| 60 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 61 | r = 0; | - |
| 62 | out:code before this statement executed 7 times by 1 test: out: | 7 |
| 63 | sshbuf_free(keyblob); | - |
| 64 | returnexecuted 7 times by 1 test: return r; r;executed 7 times by 1 test: return r; | 7 |
| 65 | } | - |
| 66 | | - |
| 67 | | - |
| 68 | int | - |
| 69 | sshkey_load_file(int fd, struct sshbuf *blob) | - |
| 70 | { | - |
| 71 | u_char buf[1024]; | - |
| 72 | size_t len; | - |
| 73 | struct stat st; | - |
| 74 | int r; | - |
| 75 | | - |
| 76 | if (fstat(fd, &st) < 0| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) | 0-67 |
| 77 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 78 | if ((| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
st.st_mode & (| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 79 | 0140000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 80 | || TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 81 | 0020000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 82 | || TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 83 | 0010000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 84 | )) == 0| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
&& | 0-67 |
| 85 | st.st_size > (1024 * 1024)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 86 | return never executed: return -4; -4;never executed: return -4; | 0 |
| 87 | for (;;) { | - |
| 88 | if ((| TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | evaluated 71 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
len = atomicio(read, fd, buf, sizeof(buf))) == 0| TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | evaluated 71 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) { | 67-71 |
| 89 | if ( | - |
| 90 | (*| TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | never evaluated |
__errno_location ()) | TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | never evaluated |
| 0-67 |
| 91 | == | TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | never evaluated |
| 0-67 |
| 92 | 32| TRUE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
| | FALSE | never evaluated |
| 0-67 |
| 93 | ) | - |
| 94 | break;executed 67 times by 3 tests: break;Executed by:- ssh-keygen
- sshd
- test_sshkey
| 67 |
| 95 | r = -24; | - |
| 96 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 97 | } | - |
| 98 | if ((| TRUE | never evaluated | | FALSE | evaluated 71 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
r = sshbuf_put(blob, buf, len)) != 0| TRUE | never evaluated | | FALSE | evaluated 71 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) | 0-71 |
| 99 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 100 | if (sshbuf_len(blob) > (1024 * 1024)| TRUE | never evaluated | | FALSE | evaluated 71 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) { | 0-71 |
| 101 | r = -4; | - |
| 102 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 103 | } | - |
| 104 | }executed 71 times by 3 tests: end of blockExecuted by:- ssh-keygen
- sshd
- test_sshkey
| 71 |
| 105 | if ((| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
st.st_mode & (| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 106 | 0140000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 107 | || TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 108 | 0020000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 109 | || TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 110 | 0010000| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
| 0-67 |
| 111 | )) == 0| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
&& | 0-67 |
| 112 | st.st_size != (off_t)sshbuf_len(blob)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 113 | r = -41; | - |
| 114 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 115 | } | - |
| 116 | r = 0; | - |
| 117 | | - |
| 118 | out:code before this statement executed 67 times by 3 tests: out:Executed by:- ssh-keygen
- sshd
- test_sshkey
| 67 |
| 119 | explicit_bzero(buf, sizeof(buf)); | - |
| 120 | if (r != 0| TRUE | never evaluated | | FALSE | evaluated 67 times by 3 testsEvaluated by:- ssh-keygen
- sshd
- test_sshkey
|
) | 0-67 |
| 121 | sshbuf_reset(blob); never executed: sshbuf_reset(blob); | 0 |
| 122 | returnexecuted 67 times by 3 tests: return r;Executed by:- ssh-keygen
- sshd
- test_sshkey
r;executed 67 times by 3 tests: return r;Executed by:- ssh-keygen
- sshd
- test_sshkey
| 67 |
| 123 | } | - |
| 124 | | - |
| 125 | | - |
| 126 | | - |
| 127 | int | - |
| 128 | sshkey_perm_ok(int fd, const char *filename) | - |
| 129 | { | - |
| 130 | struct stat st; | - |
| 131 | | - |
| 132 | if (fstat(fd, &st) < 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
| 133 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 134 | if ((| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
st.st_uid == getuid())| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
st.st_mode & 077) != 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) { | 0-6 |
| 135 | error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); | - |
| 136 | error("@ WARNING: UNPROTECTED PRIVATE KEY FILE! @"); | - |
| 137 | error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); | - |
| 138 | error("Permissions 0%3.3o for '%s' are too open.", | - |
| 139 | (u_int)st.st_mode & 0777, filename); | - |
| 140 | error("It is required that your private key files are NOT accessible by others."); | - |
| 141 | error("This private key will be ignored."); | - |
| 142 | return never executed: return -44; -44;never executed: return -44; | 0 |
| 143 | } | - |
| 144 | returnexecuted 6 times by 2 tests: return 0; 0;executed 6 times by 2 tests: return 0; | 6 |
| 145 | } | - |
| 146 | | - |
| 147 | | - |
| 148 | int | - |
| 149 | sshkey_load_private_type(int type, const char *filename, const char *passphrase, | - |
| 150 | struct sshkey **keyp, char **commentp, int *perm_ok) | - |
| 151 | { | - |
| 152 | int fd, r; | - |
| 153 | | - |
| 154 | if (keyp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 155 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 156 | ) | - |
| 157 | * never executed: *keyp = ((void *)0) ; keyp = never executed: *keyp = ((void *)0) ; | 0 |
| 158 | ((void *)0) never executed: *keyp = ((void *)0) ; | 0 |
| 159 | ; never executed: *keyp = ((void *)0) ; | 0 |
| 160 | if (commentp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 161 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 162 | ) | - |
| 163 | * never executed: *commentp = ((void *)0) ; commentp = never executed: *commentp = ((void *)0) ; | 0 |
| 164 | ((void *)0) never executed: *commentp = ((void *)0) ; | 0 |
| 165 | ; never executed: *commentp = ((void *)0) ; | 0 |
| 166 | | - |
| 167 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
fd = open(filename, | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 168 | 00| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 169 | )) < 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 170 | if (perm_ok != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 171 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 172 | ) | - |
| 173 | * never executed: *perm_ok = 0; perm_ok = 0;never executed: *perm_ok = 0; | 0 |
| 174 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 175 | } | - |
| 176 | if (sshkey_perm_ok(fd, filename) != 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 177 | if (perm_ok != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 178 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 179 | ) | - |
| 180 | * never executed: *perm_ok = 0; perm_ok = 0;never executed: *perm_ok = 0; | 0 |
| 181 | r = -44; | - |
| 182 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 183 | } | - |
| 184 | if (perm_ok != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 185 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 186 | ) | - |
| 187 | * never executed: *perm_ok = 1; perm_ok = 1;never executed: *perm_ok = 1; | 0 |
| 188 | | - |
| 189 | r = sshkey_load_private_type_fd(fd, type, passphrase, keyp, commentp); | - |
| 190 | if (r == 0| TRUE | never evaluated | | FALSE | never evaluated |
&& keyp| TRUE | never evaluated | | FALSE | never evaluated |
&& *| TRUE | never evaluated | | FALSE | never evaluated |
keyp| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 191 | r = sshkey_set_filename(*keyp, filename); never executed: r = sshkey_set_filename(*keyp, filename); | 0 |
| 192 | out: code before this statement never executed: out: | 0 |
| 193 | close(fd); | - |
| 194 | return never executed: return r; r;never executed: return r; | 0 |
| 195 | } | - |
| 196 | | - |
| 197 | int | - |
| 198 | sshkey_load_private_type_fd(int fd, int type, const char *passphrase, | - |
| 199 | struct sshkey **keyp, char **commentp) | - |
| 200 | { | - |
| 201 | struct sshbuf *buffer = | - |
| 202 | ((void *)0) | - |
| 203 | ; | - |
| 204 | int r; | - |
| 205 | | - |
| 206 | if (keyp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 207 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 208 | ) | - |
| 209 | * never executed: *keyp = ((void *)0) ; keyp = never executed: *keyp = ((void *)0) ; | 0 |
| 210 | ((void *)0) never executed: *keyp = ((void *)0) ; | 0 |
| 211 | ; never executed: *keyp = ((void *)0) ; | 0 |
| 212 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
buffer = sshbuf_new()) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 213 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 214 | ) { | - |
| 215 | r = -2; | - |
| 216 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 217 | } | - |
| 218 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_load_file(fd, buffer)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 219 | (| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_parse_private_fileblob_type(buffer, type,| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 220 | passphrase, keyp, commentp)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 221 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 222 | | - |
| 223 | | - |
| 224 | r = 0; | - |
| 225 | out: code before this statement never executed: out: | 0 |
| 226 | sshbuf_free(buffer); | - |
| 227 | return never executed: return r; r;never executed: return r; | 0 |
| 228 | } | - |
| 229 | | - |
| 230 | | - |
| 231 | int | - |
| 232 | sshkey_load_private(const char *filename, const char *passphrase, | - |
| 233 | struct sshkey **keyp, char **commentp) | - |
| 234 | { | - |
| 235 | struct sshbuf *buffer = | - |
| 236 | ((void *)0) | - |
| 237 | ; | - |
| 238 | int r, fd; | - |
| 239 | | - |
| 240 | if (keyp != | TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
| 0-6 |
| 241 | ((void *)0)| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
| 0-6 |
| 242 | ) | - |
| 243 | *executed 6 times by 2 tests: *keyp = ((void *)0) ; keyp = executed 6 times by 2 tests: *keyp = ((void *)0) ; | 6 |
| 244 | ((void *)0)executed 6 times by 2 tests: *keyp = ((void *)0) ; | 6 |
| 245 | ;executed 6 times by 2 tests: *keyp = ((void *)0) ; | 6 |
| 246 | if (commentp != | TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 247 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 248 | ) | - |
| 249 | * never executed: *commentp = ((void *)0) ; commentp = never executed: *commentp = ((void *)0) ; | 0 |
| 250 | ((void *)0) never executed: *commentp = ((void *)0) ; | 0 |
| 251 | ; never executed: *commentp = ((void *)0) ; | 0 |
| 252 | | - |
| 253 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
fd = open(filename, | TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 254 | 00| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 255 | )) < 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
| 256 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 257 | if (sshkey_perm_ok(fd, filename) != 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) { | 0-6 |
| 258 | r = -44; | - |
| 259 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 260 | } | - |
| 261 | | - |
| 262 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
buffer = sshbuf_new()) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 263 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 264 | ) { | - |
| 265 | r = -2; | - |
| 266 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 267 | } | - |
| 268 | if ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
r = sshkey_load_file(fd, buffer)) != 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
|| | 0-6 |
| 269 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
r = sshkey_parse_private_fileblob(buffer, passphrase, keyp,| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
| 270 | commentp)) != 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
| 271 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 272 | if (keyp| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
&& *| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
keyp| TRUE | evaluated 6 times by 2 tests | | FALSE | never evaluated |
&& | 0-6 |
| 273 | (| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
r = sshkey_set_filename(*keyp, filename)) != 0| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
| 274 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 275 | r = 0; | - |
| 276 | out:code before this statement executed 6 times by 2 tests: out: | 6 |
| 277 | close(fd); | - |
| 278 | sshbuf_free(buffer); | - |
| 279 | returnexecuted 6 times by 2 tests: return r; r;executed 6 times by 2 tests: return r; | 6 |
| 280 | } | - |
| 281 | | - |
| 282 | static int | - |
| 283 | sshkey_try_load_public(struct sshkey *k, const char *filename, char **commentp) | - |
| 284 | { | - |
| 285 | FILE *f; | - |
| 286 | char *line = | - |
| 287 | ((void *)0) | - |
| 288 | , *cp; | - |
| 289 | size_t linesize = 0; | - |
| 290 | int r; | - |
| 291 | | - |
| 292 | if (commentp != | TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 590 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 16-590 |
| 293 | ((void *)0)| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 590 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 16-590 |
| 294 | ) | - |
| 295 | *executed 16 times by 1 test: *commentp = ((void *)0) ; commentp = executed 16 times by 1 test: *commentp = ((void *)0) ; | 16 |
| 296 | ((void *)0)executed 16 times by 1 test: *commentp = ((void *)0) ; | 16 |
| 297 | ;executed 16 times by 1 test: *commentp = ((void *)0) ; | 16 |
| 298 | if ((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
f = fopen(filename, "r")) == | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 2-604 |
| 299 | ((void *)0)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 2-604 |
| 300 | ) | - |
| 301 | returnexecuted 2 times by 1 test: return -24; -24;executed 2 times by 1 test: return -24; | 2 |
| 302 | while (getline(&line, &linesize, f) != -1| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
) { | 0-604 |
| 303 | cp = line; | - |
| 304 | switch (*cp) { | - |
| 305 | case never executed: case '#': '#':never executed: case '#': | 0 |
| 306 | case never executed: case '\n': '\n':never executed: case '\n': | 0 |
| 307 | case never executed: case '\0': '\0':never executed: case '\0': | 0 |
| 308 | continue; never executed: continue; | 0 |
| 309 | } | - |
| 310 | | - |
| 311 | if ( | - |
| 312 | (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
__extension__ (__builtin_constant_p (| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 313 | 10| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 314 | )| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 315 | cp| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 316 | )| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 317 | cp| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 318 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 319 | 10| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 320 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 321 | "-----BEGIN"| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 322 | )| TRUE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 323 | "-----BEGIN"| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 324 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 325 | 10| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 326 | ))| TRUE | never evaluated | | FALSE | evaluated 604 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-604 |
| 327 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 328 | ) && __builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 329 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 330 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 331 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 332 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 333 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 334 | ), (!((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 335 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 336 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 337 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 338 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 339 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 340 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 341 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 342 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 343 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 344 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 345 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 346 | ) : (__builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 347 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 348 | ) && ((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 349 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 350 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 351 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 352 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 353 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 354 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 355 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 356 | ) && ((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 357 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 358 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 359 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 360 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 361 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 362 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 363 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 364 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 365 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 366 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 367 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 368 | ))[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 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 369 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 370 | ))[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 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 371 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 372 | ))[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 *) ( cp ))[3] - __s2[3]); | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 373 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); | 0-592 |
| 374 | ))[3] - __s2[3]);| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 375 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 376 | ) && ((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 377 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 378 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 379 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 380 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 381 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 382 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 383 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 384 | ) && ((size_t)(const void *)((| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 385 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 386 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 387 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 388 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 389 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 390 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 391 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 392 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 393 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 394 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 395 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 396 | ))[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 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 397 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 398 | ))[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 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 399 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 400 | ))[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 *) ( "-----BEGIN" ))[3] - __s2[3]); | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 401 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( "-----BEGIN" ))[3] - __s2[3]); | 0-592 |
| 402 | ))[3] - __s2[3]);| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( "-----BEGIN" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 403 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 404 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 405 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 406 | )))); }) : strncmp (| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 407 | cp| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 408 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 409 | "-----BEGIN"| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 410 | , | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 411 | 10| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 412 | ))) | TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 12-592 |
| 413 | == 0| TRUE | evaluated 12 times by 2 tests | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
|| | 12-592 |
| 414 | | - |
| 415 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 416 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 417 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 418 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 419 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 420 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 421 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 422 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 423 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 424 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 425 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 426 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 427 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 428 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 429 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 430 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 431 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 432 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 433 | , | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 434 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 435 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 436 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 437 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 438 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 439 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 440 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 441 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 442 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 443 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 444 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 445 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 446 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 447 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 448 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 449 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 450 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 451 | , | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 452 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 453 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 454 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 455 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 456 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 457 | ))[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 | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 458 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 459 | ))[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 | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 460 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 461 | ))[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 *) ( cp ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 462 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); | 0-592 |
| 463 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( cp ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 464 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 465 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 466 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 467 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 468 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 469 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 470 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 471 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 472 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 473 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 474 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 475 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 476 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 477 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 478 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 479 | , | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 480 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 481 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 482 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 483 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 484 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 485 | ))[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 | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 486 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 487 | ))[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 | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 488 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 489 | ))[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 *) ( "SSH PRIVATE KEY FILE" ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 490 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( "SSH PRIVATE KEY FILE" ))[3] - __s2[3]); | 0-592 |
| 491 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
never executed: __result = (((const unsigned char *) (const char *) ( "SSH PRIVATE KEY FILE" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 492 | cp| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 493 | , | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 494 | "SSH PRIVATE KEY FILE"| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 495 | )))); }) | TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-592 |
| 496 | == 0| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) | 0-592 |
| 497 | break;executed 12 times by 2 tests: break; | 12 |
| 498 | | - |
| 499 | for (; *| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
cp| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
cp == ' '| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
|| *| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
cp == '\t'| TRUE | never evaluated | | FALSE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
); cp++) | 0-592 |
| 500 | ; never executed: ; | 0 |
| 501 | if (*| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
cp| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
) { | 0-592 |
| 502 | if ((| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
r = sshkey_read(k, &cp)) == 0| TRUE | evaluated 592 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
) { | 0-592 |
| 503 | cp[ | - |
| 504 | __builtin_strcspn ( | - |
| 505 | cp | - |
| 506 | , | - |
| 507 | "\r\n" | - |
| 508 | ) | - |
| 509 | ] = '\0'; | - |
| 510 | if (commentp| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 584 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) { | 8-584 |
| 511 | *commentp = | - |
| 512 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| 0-8 |
| 513 | *cp ? cp : filename| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| 0-8 |
| 514 | )| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0-8 |
| 515 | *cp ? cp : filename| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 516 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 517 | *cp ? cp : filename| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 518 | ) == 1)| TRUE | never evaluated | | FALSE | never evaluated |
? (((const| TRUE | never evaluated | | FALSE | never evaluated |
char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 519 | *| TRUE | never evaluated | | FALSE | never evaluated |
cp| TRUE | never evaluated | | FALSE | never evaluated |
? cp : filename| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 520 | ))[0] == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( | 0 |
| 521 | *cp ? cp : filename | - |
| 522 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, never executed: __retval = (char *) memcpy (__retval, *cp ? cp : filename , __len); | 0 |
| 523 | *cp ? cp : filename never executed: __retval = (char *) memcpy (__retval, *cp ? cp : filename , __len); | 0 |
| 524 | , __len); never executed: __retval = (char *) memcpy (__retval, *cp ? cp : filename , __len); __retval; })) : __strdup ( | 0 |
| 525 | *cp ? cp : filename | - |
| 526 | ))) | - |
| 527 | | - |
| 528 | ; | - |
| 529 | if (*| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
commentp == | TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| 0-8 |
| 530 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
| 0-8 |
| 531 | ) | - |
| 532 | r = -2; never executed: r = -2; | 0 |
| 533 | }executed 8 times by 1 test: end of block | 8 |
| 534 | free(line); | - |
| 535 | fclose(f); | - |
| 536 | returnexecuted 592 times by 4 tests: return r;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
r;executed 592 times by 4 tests: return r;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 592 |
| 537 | } | - |
| 538 | } never executed: end of block | 0 |
| 539 | } never executed: end of block | 0 |
| 540 | free(line); | - |
| 541 | fclose(f); | - |
| 542 | returnexecuted 12 times by 2 tests: return -4; -4;executed 12 times by 2 tests: return -4; | 12 |
| 543 | } | - |
| 544 | | - |
| 545 | | - |
| 546 | int | - |
| 547 | sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp) | - |
| 548 | { | - |
| 549 | struct sshkey *pub = | - |
| 550 | ((void *)0) | - |
| 551 | ; | - |
| 552 | char *file = | - |
| 553 | ((void *)0) | - |
| 554 | ; | - |
| 555 | int r; | - |
| 556 | | - |
| 557 | if (keyp != | TRUE | evaluated 583 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| 0-583 |
| 558 | ((void *)0)| TRUE | evaluated 583 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| 0-583 |
| 559 | ) | - |
| 560 | *executed 583 times by 4 tests: *keyp = ((void *)0) ;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
keyp = executed 583 times by 4 tests: *keyp = ((void *)0) ;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 583 |
| 561 | ((void *)0)executed 583 times by 4 tests: *keyp = ((void *)0) ;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 583 |
| 562 | ;executed 583 times by 4 tests: *keyp = ((void *)0) ;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 583 |
| 563 | if (commentp != | TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 575 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 8-575 |
| 564 | ((void *)0)| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 575 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 8-575 |
| 565 | ) | - |
| 566 | *executed 8 times by 1 test: *commentp = ((void *)0) ; commentp = executed 8 times by 1 test: *commentp = ((void *)0) ; | 8 |
| 567 | ((void *)0)executed 8 times by 1 test: *commentp = ((void *)0) ; | 8 |
| 568 | ;executed 8 times by 1 test: *commentp = ((void *)0) ; | 8 |
| 569 | | - |
| 570 | if ((| TRUE | never evaluated | | FALSE | evaluated 583 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
pub = sshkey_new(KEY_UNSPEC)) == | TRUE | never evaluated | | FALSE | evaluated 583 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-583 |
| 571 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 583 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-583 |
| 572 | ) | - |
| 573 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 574 | if ((| TRUE | evaluated 571 times by 3 testsEvaluated by:- ssh-keygen
- test_hostkeys
- test_sshkey
| | FALSE | evaluated 12 times by 2 tests |
r = sshkey_try_load_public(pub, filename, commentp)) == 0| TRUE | evaluated 571 times by 3 testsEvaluated by:- ssh-keygen
- test_hostkeys
- test_sshkey
| | FALSE | evaluated 12 times by 2 tests |
) { | 12-571 |
| 575 | if (keyp != | TRUE | evaluated 571 times by 3 testsEvaluated by:- ssh-keygen
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| 0-571 |
| 576 | ((void *)0)| TRUE | evaluated 571 times by 3 testsEvaluated by:- ssh-keygen
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
| 0-571 |
| 577 | ) { | - |
| 578 | *keyp = pub; | - |
| 579 | pub = | - |
| 580 | ((void *)0) | - |
| 581 | ; | - |
| 582 | }executed 571 times by 3 tests: end of blockExecuted by:- ssh-keygen
- test_hostkeys
- test_sshkey
| 571 |
| 583 | r = 0; | - |
| 584 | gotoexecuted 571 times by 3 tests: goto out;Executed by:- ssh-keygen
- test_hostkeys
- test_sshkey
out;executed 571 times by 3 tests: goto out;Executed by:- ssh-keygen
- test_hostkeys
- test_sshkey
| 571 |
| 585 | } | - |
| 586 | sshkey_free(pub); | - |
| 587 | | - |
| 588 | | - |
| 589 | if (asprintf(&file, "%s.pub", filename) == -1| TRUE | never evaluated | | FALSE | evaluated 12 times by 2 tests |
) | 0-12 |
| 590 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 591 | if ((| TRUE | never evaluated | | FALSE | evaluated 12 times by 2 tests |
pub = sshkey_new(KEY_UNSPEC)) == | TRUE | never evaluated | | FALSE | evaluated 12 times by 2 tests |
| 0-12 |
| 592 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 12 times by 2 tests |
| 0-12 |
| 593 | ) { | - |
| 594 | r = -2; | - |
| 595 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 596 | } | - |
| 597 | if ((| TRUE | evaluated 10 times by 2 tests | | FALSE | evaluated 2 times by 1 test |
r = sshkey_try_load_public(pub, file, commentp)) == 0| TRUE | evaluated 10 times by 2 tests | | FALSE | evaluated 2 times by 1 test |
) { | 2-10 |
| 598 | if (keyp != | TRUE | evaluated 10 times by 2 tests | | FALSE | never evaluated |
| 0-10 |
| 599 | ((void *)0)| TRUE | evaluated 10 times by 2 tests | | FALSE | never evaluated |
| 0-10 |
| 600 | ) { | - |
| 601 | *keyp = pub; | - |
| 602 | pub = | - |
| 603 | ((void *)0) | - |
| 604 | ; | - |
| 605 | }executed 10 times by 2 tests: end of block | 10 |
| 606 | r = 0; | - |
| 607 | }executed 10 times by 2 tests: end of block | 10 |
| 608 | out:code before this statement executed 12 times by 2 tests: out: | 12 |
| 609 | free(file); | - |
| 610 | sshkey_free(pub); | - |
| 611 | returnexecuted 583 times by 4 tests: return r;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
r;executed 583 times by 4 tests: return r;Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 583 |
| 612 | } | - |
| 613 | | - |
| 614 | | - |
| 615 | int | - |
| 616 | sshkey_load_cert(const char *filename, struct sshkey **keyp) | - |
| 617 | { | - |
| 618 | struct sshkey *pub = | - |
| 619 | ((void *)0) | - |
| 620 | ; | - |
| 621 | char *file = | - |
| 622 | ((void *)0) | - |
| 623 | ; | - |
| 624 | int r = -1; | - |
| 625 | | - |
| 626 | if (keyp != | TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-11 |
| 627 | ((void *)0)| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-11 |
| 628 | ) | - |
| 629 | *executed 11 times by 1 test: *keyp = ((void *)0) ; keyp = executed 11 times by 1 test: *keyp = ((void *)0) ; | 11 |
| 630 | ((void *)0)executed 11 times by 1 test: *keyp = ((void *)0) ; | 11 |
| 631 | ;executed 11 times by 1 test: *keyp = ((void *)0) ; | 11 |
| 632 | | - |
| 633 | if (asprintf(&file, "%s-cert.pub", filename) == -1| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
) | 0-11 |
| 634 | return never executed: return -2; -2;never executed: return -2; | 0 |
| 635 | | - |
| 636 | if ((| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
pub = sshkey_new(KEY_UNSPEC)) == | TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 637 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 638 | ) { | - |
| 639 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 640 | } | - |
| 641 | if ((| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
r = sshkey_try_load_public(pub, file, | TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 642 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 643 | )) != 0| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
) | 0-11 |
| 644 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 645 | | - |
| 646 | if (keyp != | TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-11 |
| 647 | ((void *)0)| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-11 |
| 648 | ) { | - |
| 649 | *keyp = pub; | - |
| 650 | pub = | - |
| 651 | ((void *)0) | - |
| 652 | ; | - |
| 653 | }executed 11 times by 1 test: end of block | 11 |
| 654 | r = 0; | - |
| 655 | out:code before this statement executed 11 times by 1 test: out: | 11 |
| 656 | free(file); | - |
| 657 | sshkey_free(pub); | - |
| 658 | returnexecuted 11 times by 1 test: return r; r;executed 11 times by 1 test: return r; | 11 |
| 659 | } | - |
| 660 | | - |
| 661 | | - |
| 662 | int | - |
| 663 | sshkey_load_private_cert(int type, const char *filename, const char *passphrase, | - |
| 664 | struct sshkey **keyp, int *perm_ok) | - |
| 665 | { | - |
| 666 | struct sshkey *key = | - |
| 667 | ((void *)0) | - |
| 668 | , *cert = | - |
| 669 | ((void *)0) | - |
| 670 | ; | - |
| 671 | int r; | - |
| 672 | | - |
| 673 | if (keyp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 674 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 675 | ) | - |
| 676 | * never executed: *keyp = ((void *)0) ; keyp = never executed: *keyp = ((void *)0) ; | 0 |
| 677 | ((void *)0) never executed: *keyp = ((void *)0) ; | 0 |
| 678 | ; never executed: *keyp = ((void *)0) ; | 0 |
| 679 | | - |
| 680 | switch (type) { | - |
| 681 | | - |
| 682 | case never executed: case KEY_RSA: KEY_RSA:never executed: case KEY_RSA: | 0 |
| 683 | case never executed: case KEY_DSA: KEY_DSA:never executed: case KEY_DSA: | 0 |
| 684 | case never executed: case KEY_ECDSA: KEY_ECDSA:never executed: case KEY_ECDSA: | 0 |
| 685 | | - |
| 686 | case never executed: case KEY_ED25519: KEY_ED25519:never executed: case KEY_ED25519: | 0 |
| 687 | case never executed: case KEY_XMSS: KEY_XMSS:never executed: case KEY_XMSS: | 0 |
| 688 | case never executed: case KEY_UNSPEC: KEY_UNSPEC:never executed: case KEY_UNSPEC: | 0 |
| 689 | break; never executed: break; | 0 |
| 690 | default never executed: default: :never executed: default: | 0 |
| 691 | return never executed: return -14; -14;never executed: return -14; | 0 |
| 692 | } | - |
| 693 | | - |
| 694 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_load_private_type(type, filename,| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 695 | passphrase, &key, | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 696 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 697 | , perm_ok)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 698 | (| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_load_cert(filename, &cert)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 699 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 700 | | - |
| 701 | | - |
| 702 | if (sshkey_equal_public(key, cert) == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 703 | r = -45; | - |
| 704 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 705 | } | - |
| 706 | | - |
| 707 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_to_certified(key)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 708 | (| TRUE | never evaluated | | FALSE | never evaluated |
r = sshkey_cert_copy(cert, key)) != 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 709 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 710 | r = 0; | - |
| 711 | if (keyp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 712 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 713 | ) { | - |
| 714 | *keyp = key; | - |
| 715 | key = | - |
| 716 | ((void *)0) | - |
| 717 | ; | - |
| 718 | } never executed: end of block | 0 |
| 719 | out: code before this statement never executed: out: | 0 |
| 720 | sshkey_free(key); | - |
| 721 | sshkey_free(cert); | - |
| 722 | return never executed: return r; r;never executed: return r; | 0 |
| 723 | } | - |
| 724 | int | - |
| 725 | sshkey_in_file(struct sshkey *key, const char *filename, int strict_type, | - |
| 726 | int check_ca) | - |
| 727 | { | - |
| 728 | FILE *f; | - |
| 729 | char *line = | - |
| 730 | ((void *)0) | - |
| 731 | , *cp; | - |
| 732 | size_t linesize = 0; | - |
| 733 | int r = 0; | - |
| 734 | struct sshkey *pub = | - |
| 735 | ((void *)0) | - |
| 736 | ; | - |
| 737 | | - |
| 738 | int (*sshkey_compare)(const struct sshkey *, const struct sshkey *) = | - |
| 739 | strict_type| TRUE | never evaluated | | FALSE | never evaluated |
? sshkey_equal : sshkey_equal_public; | 0 |
| 740 | | - |
| 741 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
f = fopen(filename, "r")) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 742 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 743 | ) | - |
| 744 | return never executed: return -24; -24;never executed: return -24; | 0 |
| 745 | | - |
| 746 | while (getline(&line, &linesize, f) != -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 747 | sshkey_free(pub); | - |
| 748 | pub = | - |
| 749 | ((void *)0) | - |
| 750 | ; | - |
| 751 | cp = line; | - |
| 752 | | - |
| 753 | | - |
| 754 | for (; *| TRUE | never evaluated | | FALSE | never evaluated |
cp| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
cp == ' '| TRUE | never evaluated | | FALSE | never evaluated |
|| *| TRUE | never evaluated | | FALSE | never evaluated |
cp == '\t'| TRUE | never evaluated | | FALSE | never evaluated |
); cp++) | 0 |
| 755 | ; never executed: ; | 0 |
| 756 | | - |
| 757 | | - |
| 758 | switch (*cp) { | - |
| 759 | case never executed: case '#': '#':never executed: case '#': | 0 |
| 760 | case never executed: case '\n': '\n':never executed: case '\n': | 0 |
| 761 | case never executed: case '\0': '\0':never executed: case '\0': | 0 |
| 762 | continue; never executed: continue; | 0 |
| 763 | } | - |
| 764 | | - |
| 765 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
pub = sshkey_new(KEY_UNSPEC)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 766 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 767 | ) { | - |
| 768 | r = -2; | - |
| 769 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 770 | } | - |
| 771 | switch (r = sshkey_read(pub, &cp)) { | - |
| 772 | case never executed: case 0: 0:never executed: case 0: | 0 |
| 773 | break; never executed: break; | 0 |
| 774 | case never executed: case -56: -56:never executed: case -56: | 0 |
| 775 | continue; never executed: continue; | 0 |
| 776 | default never executed: default: :never executed: default: | 0 |
| 777 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 778 | } | - |
| 779 | if (sshkey_compare(key, pub)| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 780 | (check_ca| TRUE | never evaluated | | FALSE | never evaluated |
&& sshkey_is_cert(key)| TRUE | never evaluated | | FALSE | never evaluated |
&& | 0 |
| 781 | sshkey_compare(key->cert->signature_key, pub)| TRUE | never evaluated | | FALSE | never evaluated |
)) { | 0 |
| 782 | r = 0; | - |
| 783 | goto never executed: goto out; out;never executed: goto out; | 0 |
| 784 | } | - |
| 785 | } never executed: end of block | 0 |
| 786 | r = -46; | - |
| 787 | out: code before this statement never executed: out: | 0 |
| 788 | free(line); | - |
| 789 | sshkey_free(pub); | - |
| 790 | fclose(f); | - |
| 791 | return never executed: return r; r;never executed: return r; | 0 |
| 792 | } | - |
| 793 | int | - |
| 794 | sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file) | - |
| 795 | { | - |
| 796 | int r; | - |
| 797 | | - |
| 798 | r = ssh_krl_file_contains_key(revoked_keys_file, key); | - |
| 799 | | - |
| 800 | if (r != -50| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 801 | return never executed: return r; r;never executed: return r; | 0 |
| 802 | | - |
| 803 | | - |
| 804 | | - |
| 805 | | - |
| 806 | | - |
| 807 | switch ((r = sshkey_in_file(key, revoked_keys_file, 0, 1))) { | - |
| 808 | case never executed: case 0: 0:never executed: case 0: | 0 |
| 809 | | - |
| 810 | return never executed: return -51; -51;never executed: return -51; | 0 |
| 811 | case never executed: case -46: -46:never executed: case -46: | 0 |
| 812 | | - |
| 813 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 814 | default never executed: default: :never executed: default: | 0 |
| 815 | | - |
| 816 | return never executed: return r; r;never executed: return r; | 0 |
| 817 | } | - |
| 818 | } | - |
| | |