OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 3096
23
eLOC - Effective Lines of Code: 159
4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
6
eLOC - Effective Lines of Code: 48
...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
server_accept_loop
Name: server_accept_loop
Prototype: static void server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s)
Coverage:  0.000% (0/112)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 1129-1342
  0.000% (0/112)
23735
getopt_internal
Name: getopt_internal
Prototype: static int getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags)
Coverage:  24.862% (45/181)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getopt_long.c
Lines: 293-481
 24.862% (45/181)
23739
userauth_hostbased
Name: userauth_hostbased
Prototype: int userauth_hostbased(Authctxt *authctxt)
Coverage:  0.000% (0/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1918-2052
  0.000% (0/89)
23519
kex_assemble_names
Name: kex_assemble_names
Prototype: int kex_assemble_names(char **listp, const char *def, const char *all)
Coverage:  7.937% (5/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 211-294
  7.937% (5/63)
23516
check_ifaddrs
Name: check_ifaddrs
Prototype: static int check_ifaddrs(const char *ifname, int af, const struct ifaddrs *ifaddrs, struct sockaddr_storage *resultp, socklen_t *rlenp)
Coverage:  0.000% (0/70)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 273-327
  0.000% (0/70)
23516
monitor_child_preauth
Name: monitor_child_preauth
Prototype: void monitor_child_preauth(Authctxt *_authctxt, struct monitor *pmonitor)
Coverage:  0.000% (0/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 267-370
  0.000% (0/89)
23023
do_change_passphrase
Name: do_change_passphrase
Prototype: static void do_change_passphrase(struct passwd *pw)
Coverage:  0.000% (0/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1351-1430
  0.000% (0/63)
22818
hash_to_blob
Name: hash_to_blob
Prototype: static void hash_to_blob(const char *cp, u_char **blobp, size_t *lenp, const char *file, u_long lnum)
Coverage:  0.000% (0/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 2113-2146
  0.000% (0/53)
22611
authmethod_get
Name: authmethod_get
Prototype: static Authmethod * authmethod_get(char *authlist)
Coverage:  0.000% (0/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 2096-2134
  0.000% (0/55)
22613
initialize_options
Name: initialize_options
Prototype: void initialize_options(Options * options)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 1806-1909
  0.000% (0/1)
2241
check_principals_line
Name: check_principals_line
Prototype: static int check_principals_line(struct ssh *ssh, char *cp, const struct sshkey_cert *cert, const char *loc, struct sshauthopt **authoptsp)
Coverage:  0.000% (0/69)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 280-328
  0.000% (0/69)
22415
add_one_listen_addr
Name: add_one_listen_addr
Prototype: static void add_one_listen_addr(ServerOptions *options, const char *addr, const char *rdomain, int port)
Coverage:  14.062% (9/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 730-774
 14.062% (9/64)
22416
session_tty_list
Name: session_tty_list
Prototype: static char * session_tty_list(void)
Coverage:  0.000% (0/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2445-2471
  0.000% (0/61)
22212
process_remove_smartcard_key
Name: process_remove_smartcard_key
Prototype: static void process_remove_smartcard_key(SocketEntry *e)
Coverage:  0.000% (0/57)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 627-666
  0.000% (0/57)
21915
match_maybe_hashed
Name: match_maybe_hashed
Prototype: static int match_maybe_hashed(const char *host, const char *names, int *was_hashed)
Coverage:  20.370% (11/54)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 643-659
 20.370% (11/54)
21910
subprocess
Name: subprocess
Prototype: pid_t subprocess(const char *tag, struct passwd *pw, const char *command, int ac, char **av, FILE **child, u_int flags)
Coverage:  0.000% (0/78)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 863-1004
  0.000% (0/78)
21725
ask_filename
Name: ask_filename
Prototype: static void ask_filename(struct passwd *pw, const char *prompt)
Coverage:  0.000% (0/57)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 251-297
  0.000% (0/57)
21621
userauth_pubkey
Name: userauth_pubkey
Prototype: static int userauth_pubkey(struct ssh *ssh)
Coverage:  0.000% (0/118)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 87-253
  0.000% (0/118)
21426
process_readdir
Name: process_readdir
Prototype: static void process_readdir(u_int32_t id)
Coverage:  0.000% (0/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1034-1088
  0.000% (0/58)
21415
channel_cancel_lport_listener_tcpip
Name: channel_cancel_lport_listener_tcpip
Prototype: static int channel_cancel_lport_listener_tcpip(struct ssh *ssh, const char *lhost, u_short lport, int cport, struct ForwardOptions *fwd_opts)
Coverage:  0.000% (0/66)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3603-3637
  0.000% (0/66)
21415
path_strip
Name: path_strip
Prototype: static char * path_strip(const char *path, const char *strip)
Coverage:  0.000% (0/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 368-384
  0.000% (0/52)
21310
sshauthopt_parse
Name: sshauthopt_parse
Prototype: struct sshauthopt * sshauthopt_parse(const char *opts, const char **errstrp)
Coverage:  0.000% (0/152)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 383-536
  0.000% (0/152)
21246
line_abbrevname
Name: line_abbrevname
Prototype: char * line_abbrevname(char *dst, const char *src, int dstsize)
Coverage:  0.000% (0/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 596-623
  0.000% (0/50)
21210
line_fullname
Name: line_fullname
Prototype: char * line_fullname(char *dst, const char *src, u_int dstsize)
Coverage:  0.000% (0/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 563-574
  0.000% (0/47)
2108
sshkey_cert_check_authority
Name: sshkey_cert_check_authority
Prototype: int sshkey_cert_check_authority(const struct sshkey *k, int want_host, int require_principal, const char *name, const char **reason)
Coverage:  0.000% (0/71)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2681-2736
  0.000% (0/71)
20920
line_stripname
Name: line_stripname
Prototype: char * line_stripname(char *dst, const char *src, int dstsize)
Coverage:  0.000% (0/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 577-586
  0.000% (0/45)
2078
sshauthopt_copy
Name: sshauthopt_copy
Prototype: struct sshauthopt * sshauthopt_copy(const struct sshauthopt *orig)
Coverage:  0.000% (0/67)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 692-733
  0.000% (0/67)
20611
userauth_finish
Name: userauth_finish
Prototype: void userauth_finish(struct ssh *ssh, int authenticated, const char *method, const char *submethod)
Coverage:  0.000% (0/79)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 340-429
  0.000% (0/79)
20517
initialize_server_options
Name: initialize_server_options
Prototype: void initialize_server_options(ServerOptions *options)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 79-183
100.000% (1/1)
2051
scan_scaled
Name: scan_scaled
Prototype: int scan_scaled(char *scaled, long long *result)
Coverage:  0.000% (0/99)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/fmt_scaled.c
Lines: 75-212
  0.000% (0/99)
20428
pubkey_prepare
Name: pubkey_prepare
Prototype: static void pubkey_prepare(Authctxt *authctxt)
Coverage:  0.000% (0/113)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1481-1615
  0.000% (0/113)
20230
session_pty_req
Name: session_pty_req
Prototype: static int session_pty_req(struct ssh *ssh, Session *s)
Coverage:  0.000% (0/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1915-1964
  0.000% (0/53)
20113
kex_input_ext_info
Name: kex_input_ext_info
Prototype: int kex_input_ext_info(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 438-474
  0.000% (0/50)
19913
dump_client_config
Name: dump_client_config
Prototype: void dump_client_config(Options *o, const char *host)
Coverage:  0.000% (0/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 2548-2737
  0.000% (0/45)
19910
authmethods_get
Name: authmethods_get
Prototype: static char * authmethods_get(Authctxt *authctxt)
Coverage:  0.000% (0/54)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 456-482
  0.000% (0/54)
19814
store_lastlog_message
Name: store_lastlog_message
Prototype: static void store_lastlog_message(const char *user, uid_t uid)
Coverage:  0.000% (0/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshlogin.c
Lines: 89-126
  0.000% (0/44)
19511
open_listen_match_tcpip
Name: open_listen_match_tcpip
Prototype: static int open_listen_match_tcpip(struct permission *allowed_open, const char *requestedhost, u_short requestedport, int translate)
Coverage:  0.000% (0/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3875-3895
  0.000% (0/53)
19511
lock_agent
Name: lock_agent
Prototype: static int lock_agent(int agent_fd, int lock)
Coverage:  0.000% (0/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-add.c
Lines: 463-493
  0.000% (0/43)
19511
kbdint_alloc
Name: kbdint_alloc
Prototype: static KbdintAuthctxt * kbdint_alloc(const char *devs)
Coverage:  0.000% (0/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-chall.c
Lines: 99-133
  0.000% (0/47)
19512
ssh_keysign
Name: ssh_keysign
Prototype: static int ssh_keysign(struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen)
Coverage:  0.000% (0/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1804-1916
  0.000% (0/64)
19322
authmethod_lookup
Name: authmethod_lookup
Prototype: static Authmethod * authmethod_lookup(Authctxt *authctxt, const char *name)
Coverage:  0.000% (0/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 484-500
  0.000% (0/44)
19310
parse_args
Name: parse_args
Prototype: static int parse_args(const char **cpp, int *ignore_errors, int *aflag, int *fflag, int *hflag, int *iflag, int *lflag, int *pflag, int *rflag, int *sflag, unsigned long *n_arg, char **path1, char **path2)
Coverage:  0.000% (0/143)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 1298-1490
  0.000% (0/143)
19159
strcmp_maybe_null
Name: strcmp_maybe_null
Prototype: static int strcmp_maybe_null(const char *a, const char *b)
Coverage:  0.000% (0/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1546-1554
  0.000% (0/45)
1899
channel_setup_fwd_listener_tcpip
Name: channel_setup_fwd_listener_tcpip
Prototype: static int channel_setup_fwd_listener_tcpip(struct ssh *ssh, int type, struct Forward *fwd, int *allocated_listen_port, struct ForwardOptions *fwd_opts)
Coverage:  0.000% (0/90)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3314-3472
  0.000% (0/90)
18822
proto_spec
Name: proto_spec
Prototype: int proto_spec(const char *spec)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/compat.c
Lines: 161-184
  0.000% (0/24)
1877
ssh_connect
Name: ssh_connect
Prototype: int ssh_connect(struct ssh *ssh, const char *host, struct addrinfo *addrs, struct sockaddr_storage *hostaddr, u_short port, int family, int connection_attempts, int *timeout_ms, int want_keepalive)
Coverage:  0.000% (0/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 587-605
  0.000% (0/43)
18611
check_follow_cname
Name: check_follow_cname
Prototype: static int check_follow_cname(int direct, char **namep, const char *cname)
Coverage:  0.000% (0/54)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 362-393
  0.000% (0/54)
18612
channel_cancel_lport_listener_streamlocal
Name: channel_cancel_lport_listener_streamlocal
Prototype: static int channel_cancel_lport_listener_streamlocal(struct ssh *ssh, const char *path)
Coverage:  0.000% (0/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3639-3664
  0.000% (0/48)
18612
add_identity_file
Name: add_identity_file
Prototype: void add_identity_file(Options *options, const char *dir, const char *filename, int userprovided)
Coverage:  0.000% (0/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 430-459
  0.000% (0/48)
18612
process_extended
Name: process_extended
Prototype: static void process_extended(u_int32_t id)
Coverage:  0.000% (0/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1372-1394
  0.000% (0/47)
18512
sshkey_check_sigtype
Name: sshkey_check_sigtype
Prototype: int sshkey_check_sigtype(const u_char *sig, size_t siglen, const char *requested_alg)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2374-2391
  0.000% (0/42)
18410
input_service_request
Name: input_service_request
Prototype: static int input_service_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 181-213
  0.000% (0/47)
18412
sshkey_cert_copy
Name: sshkey_cert_copy
Prototype: int sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key)
Coverage:  0.000% (0/76)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1664-1732
  0.000% (0/76)
18318
match_principals_command
Name: match_principals_command
Prototype: static int match_principals_command(struct ssh *ssh, struct passwd *user_pw, const struct sshkey *key, struct sshauthopt **authoptsp)
Coverage:  0.000% (0/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 393-523
  0.000% (0/53)
18219
client_input_global_request
Name: client_input_global_request
Prototype: static int client_input_global_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 2170-2191
  0.000% (0/37)
1829
authmethod_lookup
Name: authmethod_lookup
Prototype: static Authmethod * authmethod_lookup(const char *name)
Coverage:  0.000% (0/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 2074-2084
  0.000% (0/38)
18210
do_setup_env
Name: do_setup_env
Prototype: static char ** do_setup_env(struct ssh *ssh, Session *s, const char *shell)
Coverage:  0.000% (0/77)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1011-1217
  0.000% (0/77)
18121
compare_host
Name: compare_host
Prototype: static int compare_host(const char *a, const char *b)
Coverage:  0.000% (0/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 587-595
  0.000% (0/41)
1819
channel_cancel_rport_listener_streamlocal
Name: channel_cancel_rport_listener_streamlocal
Prototype: static int channel_cancel_rport_listener_streamlocal(struct ssh *ssh, const char *path)
Coverage:  0.000% (0/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3569-3589
  0.000% (0/45)
18111
sshkey_sigalg_by_name
Name: sshkey_sigalg_by_name
Prototype: const char * sshkey_sigalg_by_name(const char *name)
Coverage:  0.000% (0/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2352-2368
  0.000% (0/43)
17911
sglob_comp
Name: sglob_comp
Prototype: static int sglob_comp(const void *aa, const void *bb)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 900-926
  0.000% (0/42)
17810
open_listen_match_streamlocal
Name: open_listen_match_streamlocal
Prototype: static int open_listen_match_streamlocal(struct permission *allowed_open, const char *requestedpath)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3897-3909
  0.000% (0/42)
17810
sshkey_from_private
Name: sshkey_from_private
Prototype: int sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
Coverage:  42.647% (29/68)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1734-1876
 42.647% (29/68)
17725
session_by_tty
Name: session_by_tty
Prototype: Session * session_by_tty(char *tty)
Coverage:  0.000% (0/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1832-1846
  0.000% (0/41)
1779
mux_client_request_stdio_fwd
Name: mux_client_request_stdio_fwd
Prototype: static int mux_client_request_stdio_fwd(int fd)
Coverage:  0.000% (0/79)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 2134-2240
  0.000% (0/79)
17723
channel_cancel_rport_listener_tcpip
Name: channel_cancel_rport_listener_tcpip
Prototype: static int channel_cancel_rport_listener_tcpip(struct ssh *ssh, const char *host, u_short port)
Coverage:  0.000% (0/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3548-3567
  0.000% (0/44)
17710
bandwidth_limit
Name: bandwidth_limit
Prototype: void bandwidth_limit(struct bwlimit *bw, size_t read_len)
Coverage:  0.000% (0/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1341-1391
  0.000% (0/43)
17713
add_certificate_file
Name: add_certificate_file
Prototype: void add_certificate_file(Options *options, const char *path, int userprovided)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 406-428
  0.000% (0/42)
17710
parse_token
Name: parse_token
Prototype: static OpCodes parse_token(const char *cp, const char *filename, int linenum, const char *ignored_unknown)
Coverage:  0.000% (0/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 718-733
  0.000% (0/41)
17610
sshkey_ecdsa_nid_from_name
Name: sshkey_ecdsa_nid_from_name
Prototype: int sshkey_ecdsa_nid_from_name(const char *name)
Coverage:  29.545% (13/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 212-224
 29.545% (13/44)
17510
pkcs11_provider_lookup
Name: pkcs11_provider_lookup
Prototype: static struct pkcs11_provider * pkcs11_provider_lookup(char *provider_id)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11.c
Lines: 146-157
  0.000% (0/37)
1759
mac_setup
Name: mac_setup
Prototype: int mac_setup(struct sshmac *mac, char *name)
Coverage:  0.000% (0/40)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 127-140
  0.000% (0/40)
17510
sshkey_type_from_name
Name: sshkey_type_from_name
Prototype: int sshkey_type_from_name(const char *name)
Coverage:  27.907% (12/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 198-210
 27.907% (12/43)
1749
sdirent_comp
Name: sdirent_comp
Prototype: static int sdirent_comp(const void *aa, const void *bb)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 796-812
  0.000% (0/42)
17410
kex_alg_by_name
Name: kex_alg_by_name
Prototype: static const struct kexalg * kex_alg_by_name(const char *name)
Coverage:  13.514% (5/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 131-141
 13.514% (5/37)
1749
getrrsetbyname
Name: getrrsetbyname
Prototype: int getrrsetbyname(const char *hostname, unsigned int rdclass, unsigned int rdtype, unsigned int flags, struct rrsetinfo **res)
Coverage:  0.000% (0/89)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getrrsetbyname.c
Lines: 185-346
  0.000% (0/89)
17427
cipher_by_name
Name: cipher_by_name
Prototype: const struct sshcipher * cipher_by_name(const char *name)
Coverage:  16.667% (6/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 192-200
 16.667% (6/36)
1749
del_keys_by_name
Name: del_keys_by_name
Prototype: static void del_keys_by_name(char *name)
Coverage:  0.000% (0/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11-helper.c
Lines: 70-84
  0.000% (0/41)
17310
process_mux_new_session
Name: process_mux_new_session
Prototype: static int process_mux_new_session(struct ssh *ssh, u_int rid, Channel *c, struct sshbuf *m, struct sshbuf *reply)
Coverage:  0.000% (0/91)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 345-509
  0.000% (0/91)
17226
prime_test
Name: prime_test
Prototype: int prime_test(FILE *in, FILE *out, u_int32_t trials, u_int32_t generator_wanted, char *checkpoint_file, unsigned long start_lineno, unsigned long num_lines)
Coverage:  0.000% (0/119)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/moduli.c
Lines: 574-806
  0.000% (0/119)
17239
chan_write_failed
Name: chan_write_failed
Prototype: void chan_write_failed(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 302-319
  0.000% (0/38)
17211
channel_rfwd_bind_host
Name: channel_rfwd_bind_host
Prototype: static const char * channel_rfwd_bind_host(const char *listen_host)
Coverage:  0.000% (0/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3779-3788
  0.000% (0/39)
1719
source
Name: source
Prototype: void source(int argc, char **argv)
Coverage:  0.000% (0/94)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 803-913
  0.000% (0/94)
17031
ssh_packet_read_poll2
Name: ssh_packet_read_poll2
Prototype: int ssh_packet_read_poll2(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
Coverage:  34.973% (64/183)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1443-1673
 34.973% (64/183)
16948
sshkey_read
Name: sshkey_read
Prototype: int sshkey_read(struct sshkey *ret, char **cpp)
Coverage:  48.352% (44/91)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1227-1387
 48.352% (44/91)
16834
permitopen_port
Name: permitopen_port
Prototype: int permitopen_port(const char *p)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4090-4100
  0.000% (0/37)
1689
match_cfg_line
Name: match_cfg_line
Prototype: static int match_cfg_line(Options *options, char **condition, struct passwd *pw, const char *host_arg, const char *original_host, int post_canon, const char *filename, int linenum)
Coverage:  0.000% (0/105)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 540-684
  0.000% (0/105)
16827
hostkeys_foreach
Name: hostkeys_foreach
Prototype: int hostkeys_foreach(const char *path, hostkeys_foreach_fn *callback, void *ctx, const char *host, const char *ip, u_int options)
Coverage:  72.269% (86/119)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 661-834
 72.269% (86/119)
16831
do_gen_all_hostkeys
Name: do_gen_all_hostkeys
Prototype: static void do_gen_all_hostkeys(struct passwd *pw)
Coverage:  0.000% (0/54)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 996-1133
  0.000% (0/54)
16720
compare_gps
Name: compare_gps
Prototype: static int compare_gps(const void *_p, const void *_q)
Coverage:  0.000% (0/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 600-607
  0.000% (0/31)
1677
client_session2_setup
Name: client_session2_setup
Prototype: void client_session2_setup(struct ssh *ssh, int id, int want_tty, int want_subsystem, const char *term, struct termios *tiop, int in_fd, struct sshbuf *cmd, char **env)
Coverage:  0.000% (0/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 2193-2305
  0.000% (0/61)
16716
cert_parse
Name: cert_parse
Prototype: static int cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
Coverage:  77.108% (64/83)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1878-2001
 77.108% (64/83)
16719
key_id_cmp
Name: key_id_cmp
Prototype: static int key_id_cmp(struct revoked_key_id *a, struct revoked_key_id *b)
Coverage:  0.000% (0/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 112-116
  0.000% (0/31)
1657
compare
Name: compare
Prototype: static int compare(const void *p, const void *q)
Coverage:  0.000% (0/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 594-598
  0.000% (0/31)
1657
cipher_seclen
Name: cipher_seclen
Prototype: u_int cipher_seclen(const struct sshcipher *c)
Coverage:  5.882% (2/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 155-161
  5.882% (2/34)
1658
addr_match_cidr_list
Name: addr_match_cidr_list
Prototype: int addr_match_cidr_list(const char *addr, const char *_list)
Coverage:  0.000% (0/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/addrmatch.c
Lines: 435-498
  0.000% (0/44)
16512
user_key_command_allowed2
Name: user_key_command_allowed2
Prototype: static int user_key_command_allowed2(struct ssh *ssh, struct passwd *user_pw, struct sshkey *key, struct sshauthopt **authoptsp)
Coverage:  0.000% (0/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 866-992
  0.000% (0/50)
16418
load_public_identity_files
Name: load_public_identity_files
Prototype: static void load_public_identity_files(struct passwd *pw)
Coverage:  0.000% (0/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 1961-2114
  0.000% (0/48)
16414
_ssh_order_hostkeyalgs
Name: _ssh_order_hostkeyalgs
Prototype: int _ssh_order_hostkeyalgs(struct ssh *ssh)
Coverage:  38.636% (17/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 482-532
 38.636% (17/44)
16112
process_escapes
Name: process_escapes
Prototype: static int process_escapes(struct ssh *ssh, Channel *c, struct sshbuf *bin, struct sshbuf *bout, struct sshbuf *berr, char *buf, int len)
Coverage:  0.000% (0/146)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 945-1170
  0.000% (0/146)
15945
Page:<>1
eLOC - Effective Lines of Code: 3096
23
eLOC - Effective Lines of Code: 159
4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
6
eLOC - Effective Lines of Code: 48
...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