OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>12
eLOC - Effective Lines of Code: 237
3
eLOC - Effective Lines of Code: 159
4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
...10
eLOC - Effective Lines of Code: 22
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
process_server_config_line
Name: process_server_config_line
Prototype: int process_server_config_line(ServerOptions *options, char *line, const char *filename, int linenum, int *activep, struct connection_info *connectinfo)
Coverage:  8.960% (112/1250)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 1199-2171
  8.960% (112/1250)
3096331
process_config_line_depth
Name: process_config_line_depth
Prototype: static int process_config_line_depth(Options *options, struct passwd *pw, const char *host, const char *original_host, char *line, const char *filename, int linenum, int *activep, int flags, int depth)
Coverage:  0.000% (0/1004)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 831-1725
  0.000% (0/1004)
2330285
do_init
Name: do_init
Prototype: struct sftp_conn * do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, u_int64_t limit_kbps)
Coverage:  0.000% (0/363)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 392-492
  0.000% (0/363)
171576
channel_fwd_bind_addr
Name: channel_fwd_bind_addr
Prototype: static const char * channel_fwd_bind_addr(const char *listen_addr, int *wildcardp, int is_client, struct ForwardOptions *fwd_opts)
Coverage:  0.000% (0/319)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3266-3312
  0.000% (0/319)
150763
session_input_channel_req
Name: session_input_channel_req
Prototype: int session_input_channel_req(struct ssh *ssh, Channel *c, const char *rtype)
Coverage:  0.000% (0/304)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2123-2163
  0.000% (0/304)
148666
parse_server_match_testspec
Name: parse_server_match_testspec
Prototype: int parse_server_match_testspec(struct connection_info *ci, char *spec)
Coverage:  0.000% (0/267)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 2220-2249
  0.000% (0/267)
131045
cert_option_list
Name: cert_option_list
Prototype: static int cert_option_list(struct sshauthopt *opts, struct sshbuf *oblob, u_int which, int crit)
Coverage:  0.000% (0/276)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 140-252
  0.000% (0/276)
126164
sshkey_parse_private2
Name: sshkey_parse_private2
Prototype: static int sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase, struct sshkey **keyp, char **commentp)
Coverage:  34.012% (117/344)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3551-3768
 34.012% (117/344)
124478
show_options
Name: show_options
Prototype: static void show_options(struct sshbuf *optbuf, int in_critical)
Coverage:  0.000% (0/249)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1946-1988
  0.000% (0/249)
120150
server_input_global_request
Name: server_input_global_request
Prototype: static int server_input_global_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/248)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 754-861
  0.000% (0/248)
109050
main
Name: main
Prototype: int main(int ac, char **av)
Coverage:  16.190% (68/420)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 1466-2235
 16.190% (68/420)
1019127
dangerous_locale
Name: dangerous_locale
Prototype: static int dangerous_locale(void)
Coverage:  2.591% (5/193)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/utf8.c
Lines: 60-71
  2.591% (5/193)
99637
auth_log
Name: auth_log
Prototype: void auth_log(Authctxt *authctxt, int authenticated, int partial, const char *method, const char *submethod)
Coverage:  0.000% (0/173)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 310-372
  0.000% (0/173)
75632
monitor_valid_hostbasedblob
Name: monitor_valid_hostbasedblob
Prototype: static int monitor_valid_hostbasedblob(u_char *data, u_int datalen, char *cuser, char *chost)
Coverage:  0.000% (0/181)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 1287-1355
  0.000% (0/181)
74941
sink
Name: sink
Prototype: void sink(int argc, char **argv)
Coverage:  0.000% (0/372)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 969-1274
  0.000% (0/372)
74685
client_input_channel_open
Name: client_input_channel_open
Prototype: static int client_input_channel_open(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/145)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1664-1717
  0.000% (0/145)
70132
server_input_channel_open
Name: server_input_channel_open
Prototype: static int server_input_channel_open(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/140)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 623-674
  0.000% (0/140)
69931
port_open_helper
Name: port_open_helper
Prototype: static void port_open_helper(struct ssh *ssh, Channel *c, char *rtype)
Coverage:  0.000% (0/167)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 1653-1722
  0.000% (0/167)
69337
parse_uri
Name: parse_uri
Prototype: int parse_uri(const char *scheme, const char *uri, char **userp, char **hostp, int *portp, char **pathp)
Coverage:  0.000% (0/173)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 765-854
  0.000% (0/173)
64335
check_rhosts_file
Name: check_rhosts_file
Prototype: static int check_rhosts_file(const char *filename, const char *hostname, const char *ipaddr, const char *client_user, const char *server_user)
Coverage:  0.000% (0/183)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-rhosts.c
Lines: 55-182
  0.000% (0/183)
64144
input_userauth_request
Name: input_userauth_request
Prototype: static int input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/135)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 253-338
  0.000% (0/135)
61228
valid_request
Name: valid_request
Prototype: static int valid_request(struct passwd *pw, char *host, struct sshkey **ret, u_char *data, size_t datalen)
Coverage:  0.000% (0/169)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keysign.c
Lines: 65-162
  0.000% (0/169)
59743
_ssh_compat_realpath
Name: _ssh_compat_realpath
Prototype: char * _ssh_compat_realpath(const char *path, char *resolved)
Coverage:  0.000% (0/172)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/realpath.c
Lines: 60-228
  0.000% (0/172)
58845
update_krl_from_file
Name: update_krl_from_file
Prototype: static void update_krl_from_file(struct passwd *pw, const char *file, int wild_ca, const struct sshkey *ca, struct ssh_krl *krl)
Coverage:  0.000% (0/185)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 2148-2297
  0.000% (0/185)
58748
add_file
Name: add_file
Prototype: static int add_file(int agent_fd, const char *filename, int key_only, int qflag)
Coverage:  0.000% (0/182)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-add.c
Lines: 191-390
  0.000% (0/182)
57150
safe_path
Name: safe_path
Prototype: int safe_path(const char *name, struct stat *stp, const char *pw_dir, uid_t uid, char *err, size_t errlen)
Coverage:  0.000% (0/132)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1764-1820
  0.000% (0/132)
55428
parse_prime
Name: parse_prime
Prototype: static int parse_prime(int linenum, char *line, struct dhgroup *dhg)
Coverage:  0.000% (0/88)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 48-144
  0.000% (0/88)
54021
check_host_key
Name: check_host_key
Prototype: static int check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, struct sshkey *host_key, int readonly, char **user_hostfiles, u_int num_user_hostfiles, char **system_hostfiles, u_int num_system_hostfiles)
Coverage:  0.000% (0/276)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 842-1281
  0.000% (0/276)
52072
sys_auth_passwd
Name: sys_auth_passwd
Prototype: int sys_auth_passwd(struct ssh *ssh, const char *password)
Coverage:  0.000% (0/109)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-passwd.c
Lines: 191-219
  0.000% (0/109)
50921
auth_root_allowed
Name: auth_root_allowed
Prototype: int auth_root_allowed(struct ssh *ssh, const char *method)
Coverage:  0.000% (0/107)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 393-415
  0.000% (0/107)
50624
sshkey_curve_name_to_nid
Name: sshkey_curve_name_to_nid
Prototype: int sshkey_curve_name_to_nid(const char *name)
Coverage:  10.000% (10/100)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 370-383
 10.000% (10/100)
50522
choose_comp
Name: choose_comp
Prototype: static int choose_comp(struct sshcomp *comp, char *client, char *server)
Coverage:  5.769% (6/104)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 736-755
  5.769% (6/104)
50523
rsa_hash_id_from_keyname
Name: rsa_hash_id_from_keyname
Prototype: static int rsa_hash_id_from_keyname(const char *alg)
Coverage:  1.942% (2/103)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 77-91
  1.942% (2/103)
49623
rsa_hash_id_from_ident
Name: rsa_hash_id_from_ident
Prototype: static int rsa_hash_id_from_ident(const char *ident)
Coverage:  10.000% (10/100)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 60-70
 10.000% (10/100)
49322
sshkey_certify_custom
Name: sshkey_certify_custom
Prototype: int sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, sshkey_certify_signer *signer, void *signer_ctx)
Coverage:  21.469% (38/177)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2517-2663
 21.469% (38/177)
48742
sshkey_private_to_blob2
Name: sshkey_private_to_blob2
Prototype: static int sshkey_private_to_blob2(const struct sshkey *prv, struct sshbuf *blob, const char *passphrase, const char *comment, const char *ciphername, int rounds)
Coverage:  28.814% (51/177)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3403-3549
 28.814% (51/177)
48643
do_exec
Name: do_exec
Prototype: int do_exec(struct ssh *ssh, Session *s, const char *command)
Coverage:  0.000% (0/121)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 692-767
  0.000% (0/121)
47523
match_list
Name: match_list
Prototype: char * match_list(const char *client, const char *server, u_int *next)
Coverage:  31.034% (18/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 256-294
 31.034% (18/58)
47314
sshkey_try_load_public
Name: sshkey_try_load_public
Prototype: static int sshkey_try_load_public(struct sshkey *k, const char *filename, char **commentp)
Coverage:  21.951% (27/123)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 264-309
 21.951% (27/123)
45426
sshauthopt_merge
Name: sshauthopt_merge
Prototype: struct sshauthopt * sshauthopt_merge(const struct sshauthopt *primary, const struct sshauthopt *additional, const char **errstrp)
Coverage:  0.000% (0/196)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 569-687
  0.000% (0/196)
45344
remote_hostname
Name: remote_hostname
Prototype: static char * remote_hostname(struct ssh *ssh)
Coverage:  0.000% (0/111)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 750-831
  0.000% (0/111)
45321
do_fingerprint
Name: do_fingerprint
Prototype: static void do_fingerprint(struct passwd *pw)
Coverage:  20.000% (27/135)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 900-994
 20.000% (27/135)
44329
upload_dir_internal
Name: upload_dir_internal
Prototype: static int upload_dir_internal(struct sftp_conn *conn, const char *src, const char *dst, int depth, int preserve_flag, int print_flag, int resume, int fsync_flag)
Coverage:  0.000% (0/116)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 1791-1885
  0.000% (0/116)
44030
download_dir_internal
Name: download_dir_internal
Prototype: static int download_dir_internal(struct sftp_conn *conn, const char *src, const char *dst, int depth, Attrib *dirattrib, int preserve_flag, int print_flag, int resume_flag, int fsync_flag)
Coverage:  0.000% (0/118)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 1457-1549
  0.000% (0/118)
43529
sshkey_private_deserialize
Name: sshkey_private_deserialize
Prototype: int sshkey_private_deserialize(struct sshbuf *buf, struct sshkey **kp)
Coverage:  33.032% (73/221)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2923-3229
 33.032% (73/221)
42955
parse_cert_times
Name: parse_cert_times
Prototype: static void parse_cert_times(char *timespec)
Coverage:  0.000% (0/113)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1836-1884
  0.000% (0/113)
42723
do_convert_private_ssh2_from_blob
Name: do_convert_private_ssh2_from_blob
Prototype: static struct sshkey * do_convert_private_ssh2_from_blob(u_char *blob, u_int blen)
Coverage:  35.556% (48/135)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 442-578
 35.556% (48/135)
42630
monitor_valid_userblob
Name: monitor_valid_userblob
Prototype: static int monitor_valid_userblob(u_char *data, u_int datalen)
Coverage:  0.000% (0/125)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 1220-1285
  0.000% (0/125)
42330
list_starts_with
Name: list_starts_with
Prototype: static int list_starts_with(const char *methods, const char *method, const char *submethod)
Coverage:  0.000% (0/98)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 587-612
  0.000% (0/98)
42118
check_markers
Name: check_markers
Prototype: static HostkeyMarker check_markers(char **cpp)
Coverage:  21.782% (22/101)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 186-219
 21.782% (22/101)
41520
do_show_cert
Name: do_show_cert
Prototype: static void do_show_cert(struct passwd *pw)
Coverage:  0.000% (0/98)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 2036-2091
  0.000% (0/98)
40823
fill_default_server_options
Name: fill_default_server_options
Prototype: void fill_default_server_options(ServerOptions *options)
Coverage:  53.160% (143/269)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 258-460
 53.160% (143/269)
40485
do_ca_sign
Name: do_ca_sign
Prototype: static void do_ca_sign(struct passwd *pw, int argc, char **argv)
Coverage:  0.000% (0/128)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1674-1820
  0.000% (0/128)
40034
rsource
Name: rsource
Prototype: void rsource(char *name, struct stat *statp)
Coverage:  0.000% (0/94)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 915-962
  0.000% (0/94)
39823
client_input_channel_req
Name: client_input_channel_req
Prototype: static int client_input_channel_req(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/99)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1719-1771
  0.000% (0/99)
37824
fill_default_options
Name: fill_default_options
Prototype: void fill_default_options(Options * options)
Coverage:  0.000% (0/254)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 1930-2129
  0.000% (0/254)
37278
dump_cfg_forwards
Name: dump_cfg_forwards
Prototype: static void dump_cfg_forwards(OpCodes code, u_int count, const struct Forward *fwds)
Coverage:  0.000% (0/94)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 2510-2546
  0.000% (0/94)
36521
sshkey_names_valid2
Name: sshkey_names_valid2
Prototype: int sshkey_names_valid2(const char *names, int allow_wildcard)
Coverage:  0.000% (0/68)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 254-289
  0.000% (0/68)
36016
server_input_channel_req
Name: server_input_channel_req
Prototype: static int server_input_channel_req(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/85)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 863-897
  0.000% (0/85)
35919
process_permitopen_list
Name: process_permitopen_list
Prototype: static void process_permitopen_list(struct ssh *ssh, ServerOpCodes opcode, char **opens, u_int num_opens)
Coverage:  0.000% (0/87)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 861-896
  0.000% (0/87)
35819
readpassphrase
Name: readpassphrase
Prototype: char * readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags)
Coverage:  0.000% (0/106)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/readpassphrase.c
Lines: 53-193
  0.000% (0/106)
35730
ciphers_valid
Name: ciphers_valid
Prototype: int ciphers_valid(const char *names)
Coverage:  0.000% (0/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 203-224
  0.000% (0/58)
35712
session_subsystem_req
Name: session_subsystem_req
Prototype: static int session_subsystem_req(struct ssh *ssh, Session *s)
Coverage:  0.000% (0/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1966-2004
  0.000% (0/80)
35519
mac_valid
Name: mac_valid
Prototype: int mac_valid(const char *names)
Coverage:  0.000% (0/56)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 247-265
  0.000% (0/56)
35412
kex_names_valid
Name: kex_names_valid
Prototype: int kex_names_valid(const char *names)
Coverage:  0.000% (0/56)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 144-164
  0.000% (0/56)
35412
client_x11_get_proto
Name: client_x11_get_proto
Prototype: int client_x11_get_proto(struct ssh *ssh, const char *display, const char *xauth_path, u_int trusted, u_int timeout, char **_proto, char **_data)
Coverage:  0.000% (0/123)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 277-441
  0.000% (0/123)
35128
id_filename_matches
Name: id_filename_matches
Prototype: static int id_filename_matches(Identity *id, Identity *private_id)
Coverage:  0.000% (0/76)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1162-1179
  0.000% (0/76)
34216
allowed_user
Name: allowed_user
Prototype: int allowed_user(struct passwd * pw)
Coverage:  0.000% (0/139)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 98-267
  0.000% (0/139)
34233
open_match
Name: open_match
Prototype: static int open_match(struct permission *allowed_open, const char *requestedhost, int requestedport)
Coverage:  0.000% (0/74)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3854-3867
  0.000% (0/74)
33716
agent_encode_alg
Name: agent_encode_alg
Prototype: static u_int agent_encode_alg(const struct sshkey *key, const char *alg)
Coverage:  0.000% (0/72)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 327-337
  0.000% (0/72)
33416
channel_proxy_downstream
Name: channel_proxy_downstream
Prototype: int channel_proxy_downstream(struct ssh *ssh, Channel *downstream)
Coverage:  0.000% (0/129)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2677-2823
  0.000% (0/129)
33132
x11_connect_display
Name: x11_connect_display
Prototype: int x11_connect_display(struct ssh *ssh)
Coverage:  0.000% (0/82)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4659-4775
  0.000% (0/82)
31118
parse_long_options
Name: parse_long_options
Prototype: static int parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too)
Coverage:  0.000% (0/134)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getopt_long.c
Lines: 175-287
  0.000% (0/134)
30728
sshkey_from_blob_internal
Name: sshkey_from_blob_internal
Prototype: static int sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp, int allow_cert)
Coverage:  74.101% (103/139)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2016-2269
 74.101% (103/139)
30344
auth2_methods_valid
Name: auth2_methods_valid
Prototype: int auth2_methods_valid(const char *_methods, int need_enable)
Coverage:  0.000% (0/66)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 507-547
  0.000% (0/66)
30216
do_download
Name: do_download
Prototype: int do_download(struct sftp_conn *conn, const char *remote_path, const char *local_path, Attrib *a, int preserve_flag, int resume_flag, int fsync_flag)
Coverage:  0.000% (0/206)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 1161-1455
  0.000% (0/206)
29853
kex_names_cat
Name: kex_names_cat
Prototype: char * kex_names_cat(const char *a, const char *b)
Coverage:  0.000% (0/59)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 170-203
  0.000% (0/59)
29711
client_loop
Name: client_loop
Prototype: int client_loop(struct ssh *ssh, int have_pty, int escape_char_arg, int ssh2_chan_id)
Coverage:  0.000% (0/145)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1235-1480
  0.000% (0/145)
29443
ssh_dss_verify
Name: ssh_dss_verify
Prototype: int ssh_dss_verify(const struct sshkey *key, const u_char *signature, size_t signaturelen, const u_char *data, size_t datalen, u_int compat)
Coverage:  38.889% (35/90)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-dss.c
Lines: 119-208
 38.889% (35/90)
28923
_ssh_read_banner
Name: _ssh_read_banner
Prototype: int _ssh_read_banner(struct ssh *ssh, char **bannerp)
Coverage:  26.374% (24/91)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 314-379
 26.374% (24/91)
28921
handle_permit
Name: handle_permit
Prototype: static int handle_permit(const char **optsp, int allow_bare_port, char ***permitsp, size_t *npermitsp, const char **errstrp)
Coverage:  0.000% (0/78)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 315-381
  0.000% (0/78)
28716
ssh_exchange_identification
Name: ssh_exchange_identification
Prototype: void ssh_exchange_identification(int timeout_ms)
Coverage:  0.000% (0/94)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 624-709
  0.000% (0/94)
28325
ssh_ecdsa_verify
Name: ssh_ecdsa_verify
Prototype: int ssh_ecdsa_verify(const struct sshkey *key, const u_char *signature, size_t signaturelen, const u_char *data, size_t datalen, u_int compat)
Coverage:  42.697% (38/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ecdsa.c
Lines: 113-200
 42.697% (38/89)
27922
congreet
Name: congreet
Prototype: static void congreet(int s)
Coverage:  0.000% (0/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 443-517
  0.000% (0/89)
27821
sshd_exchange_identification
Name: sshd_exchange_identification
Prototype: static void sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out)
Coverage:  0.000% (0/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 366-466
  0.000% (0/80)
27618
x11_request_forwarding_with_spoofing
Name: x11_request_forwarding_with_spoofing
Prototype: void x11_request_forwarding_with_spoofing(struct ssh *ssh, int client_session_id, const char *disp, const char *proto, const char *data, int want_reply)
Coverage:  0.000% (0/78)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4782-4842
  0.000% (0/78)
27415
child_set_env
Name: child_set_env
Prototype: void child_set_env(char ***envp, u_int *envsizep, const char *name, const char *value)
Coverage:  0.000% (0/72)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1847-1901
  0.000% (0/72)
27314
ssh_rsa_verify
Name: ssh_rsa_verify
Prototype: int ssh_rsa_verify(const struct sshkey *key, const u_char *sig, size_t siglen, const u_char *data, size_t datalen, const char *alg)
Coverage:  39.080% (34/87)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 244-329
 39.080% (34/87)
26923
sftp_server_main
Name: sftp_server_main
Prototype: int sftp_server_main(int argc, char **argv, struct passwd *user_pw)
Coverage:  0.000% (0/139)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1499-1710
  0.000% (0/139)
26545
ssh_ed25519_verify
Name: ssh_ed25519_verify
Prototype: int ssh_ed25519_verify(const struct sshkey *key, const u_char *signature, size_t signaturelen, const u_char *data, size_t datalen, u_int compat)
Coverage:  44.048% (37/84)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ed25519.c
Lines: 94-167
 44.048% (37/84)
26420
input_userauth_passwd_changereq
Name: input_userauth_passwd_changereq
Prototype: int input_userauth_passwd_changereq(int type, u_int32_t seqnr, struct ssh *ssh)
Coverage:  0.000% (0/78)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 999-1071
  0.000% (0/78)
25818
do_convert_from_ssh2
Name: do_convert_from_ssh2
Prototype: static void do_convert_from_ssh2(struct passwd *pw, struct sshkey **k, int *private)
Coverage:  33.333% (28/84)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 606-653
 33.333% (28/84)
25118
mux_client_request_session
Name: mux_client_request_session
Prototype: static int mux_client_request_session(int fd)
Coverage:  0.000% (0/158)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 1898-2091
  0.000% (0/158)
24547
proposals_match
Name: proposals_match
Prototype: static int proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX])
Coverage:  0.000% (0/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 791-813
  0.000% (0/55)
24311
kbdint_next_device
Name: kbdint_next_device
Prototype: static int kbdint_next_device(Authctxt *authctxt, KbdintAuthctxt *kbdintctxt)
Coverage:  0.000% (0/69)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-chall.c
Lines: 153-187
  0.000% (0/69)
24313
parse_dispatch_command
Name: parse_dispatch_command
Prototype: static int parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, const char *startdir, int err_abort)
Coverage:  0.000% (0/181)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 1492-1749
  0.000% (0/181)
24264
mm_getpwnamallow
Name: mm_getpwnamallow
Prototype: struct passwd * mm_getpwnamallow(const char *username)
Coverage:  0.000% (0/187)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 250-342
  0.000% (0/187)
24155
do_upload
Name: do_upload
Prototype: int do_upload(struct sftp_conn *conn, const char *local_path, const char *remote_path, int preserve_flag, int resume, int fsync_flag)
Coverage:  0.000% (0/138)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 1570-1789
  0.000% (0/138)
24135
extract_salt
Name: extract_salt
Prototype: static int extract_salt(const char *s, u_int l, u_char *salt, size_t salt_len)
Coverage:  19.672% (12/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 72-117
 19.672% (12/61)
23913
ssh_krl_from_blob
Name: ssh_krl_from_blob
Prototype: int ssh_krl_from_blob(struct sshbuf *buf, struct ssh_krl **krlp, const struct sshkey **sign_ca_keys, size_t nsign_ca_keys)
Coverage:  0.000% (0/159)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 983-1216
  0.000% (0/159)
23749
Page:<>12
eLOC - Effective Lines of Code: 237
3
eLOC - Effective Lines of Code: 159
4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
...10
eLOC - Effective Lines of Code: 22
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1

Generated by Squish Coco 4.2.2