OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
McCabe - Cyclomatic Complexity: 331
...3
McCabe - Cyclomatic Complexity: 16
4
McCabe - Cyclomatic Complexity: 13
5
McCabe - Cyclomatic Complexity: 10
6
McCabe - Cyclomatic Complexity: 9
78
McCabe - Cyclomatic Complexity: 6
9
McCabe - Cyclomatic Complexity: 5
10
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1
FunctionCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexityâ–¾
input_kex_dh_gex_request
Name: input_kex_dh_gex_request
Prototype: static int input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  46.667% (21/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c
Lines: 71-123
 46.667% (21/45)
457
identity_sign
Name: identity_sign
Prototype: static int identity_sign(struct identity *id, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat, const char *alg)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1118-1160
  0.000% (0/27)
367
group_from_gid
Name: group_from_gid
Prototype: char * group_from_gid(gid_t gid, int nogroup)
Coverage:  0.000% (0/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/pwcache.c
Lines: 82-113
  0.000% (0/33)
577
get_sock_port
Name: get_sock_port
Prototype: static int get_sock_port(int sock, int local)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/canohost.c
Lines: 155-192
  0.000% (0/22)
507
fwd_ident
Name: fwd_ident
Prototype: static const char * fwd_ident(int who, int where)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 465-480
  0.000% (0/19)
117
forward_equals
Name: forward_equals
Prototype: int forward_equals(const struct Forward *a, const struct Forward *b)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1560-1577
  0.000% (0/19)
137
dup_strings
Name: dup_strings
Prototype: static int dup_strings(char ***dstp, size_t *ndstp, char **src, size_t nsrc)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 111-136
  0.000% (0/25)
577
do_rename
Name: do_rename
Prototype: int do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, int force_legacy)
Coverage:  0.000% (0/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 882-921
  0.000% (0/34)
307
do_cleanup
Name: do_cleanup
Prototype: void do_cleanup(struct ssh *ssh, Authctxt *authctxt)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2564-2622
  0.000% (0/21)
277
derive_key
Name: derive_key
Prototype: static int derive_key(struct ssh *ssh, int id, u_int need, u_char *hash, u_int hashlen, const struct sshbuf *shared_secret, u_char **keyp)
Coverage:  51.429% (18/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 927-988
 51.429% (18/35)
657
crypto_sign_ed25519_ref_fe25519_invert
Name: crypto_sign_ed25519_ref_fe25519_invert
Prototype: void crypto_sign_ed25519_ref_fe25519_invert(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x)
Coverage: 100.000% (19/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 218-283
100.000% (19/19)
547
control_persist_detach
Name: control_persist_detach
Prototype: static void control_persist_detach(void)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 1519-1564
  0.000% (0/27)
617
construct_utmp
Name: construct_utmp
Prototype: void construct_utmp(struct logininfo *li, struct utmp *ut)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 646-715
  0.000% (0/17)
637
connect_to_helper
Name: connect_to_helper
Prototype: static int connect_to_helper(struct ssh *ssh, const char *name, int port, int socktype, char *ctype, char *rname, struct channel_connect *cctx, int *reason, const char **errmsg)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4178-4241
  0.000% (0/20)
707
confirm
Name: confirm
Prototype: static int confirm(const char *prompt)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 712-734
  0.000% (0/19)
317
compat_kex_proposal
Name: compat_kex_proposal
Prototype: char * compat_kex_proposal(char *p)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/compat.c
Lines: 214-234
  0.000% (0/18)
207
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
compare_forward
Name: compare_forward
Prototype: static int compare_forward(struct Forward *a, struct Forward *b)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 597-614
  0.000% (0/19)
137
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
client_process_net_input
Name: client_process_net_input
Prototype: static void client_process_net_input(fd_set *readset)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 614-663
  0.000% (0/25)
527
check_rfwd_permission
Name: check_rfwd_permission
Prototype: static int check_rfwd_permission(struct ssh *ssh, struct Forward *fwd)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3721-3754
  0.000% (0/23)
197
check_load
Name: check_load
Prototype: static void check_load(int r, const char *path, const char *message)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 505-523
  0.000% (0/12)
117
channel_output_poll
Name: channel_output_poll
Prototype: void channel_output_poll(struct ssh *ssh)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2601-2635
  0.000% (0/23)
217
channel_input_open_failure
Name: channel_input_open_failure
Prototype: int channel_input_open_failure(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3147-3182
  0.000% (0/21)
427
auth_password
Name: auth_password
Prototype: int auth_password(struct ssh *ssh, const char *password)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-passwd.c
Lines: 76-129
  0.000% (0/27)
177
auth_openfile
Name: auth_openfile
Prototype: static FILE * auth_openfile(const char *file, struct passwd *pw, int strict_modes, int log_missing, char *file_type)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 504-544
  0.000% (0/23)
747
auth_key_is_revoked
Name: auth_key_is_revoked
Prototype: int auth_key_is_revoked(struct sshkey *key)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 635-671
  0.000% (0/16)
307
auth_input_request_forwarding
Name: auth_input_request_forwarding
Prototype: static int auth_input_request_forwarding(struct ssh *ssh, struct passwd * pw)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 188-247
  0.000% (0/17)
577
_ssh__compat_globfree
Name: _ssh__compat_globfree
Prototype: void _ssh__compat_globfree(_ssh_compat_glob_t *pglob)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 959-981
  0.000% (0/18)
297
EVP_CIPHER_CTX_set_iv
Name: EVP_CIPHER_CTX_set_iv
Prototype: int EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 365-390
  0.000% (0/19)
197
EVP_CIPHER_CTX_get_iv
Name: EVP_CIPHER_CTX_get_iv
Prototype: int EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 336-361
  0.000% (0/19)
197
userauth
Name: userauth
Prototype: void userauth(Authctxt *authctxt, char *authlist)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 458-494
  0.000% (0/17)
446
urldecode
Name: urldecode
Prototype: static char * urldecode(const char *src)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 721-751
  0.000% (0/16)
396
tcpconnect
Name: tcpconnect
Prototype: static int tcpconnect(char *host)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 326-359
  0.000% (0/19)
476
start_compression_out
Name: start_compression_out
Prototype: static int start_compression_out(struct ssh *ssh, int level)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 688-706
  0.000% (0/15)
116
sshkey_write
Name: sshkey_write
Prototype: int sshkey_write(const struct sshkey *key, FILE *f)
Coverage:  35.714% (5/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1436-1457
 35.714% (5/14)
266
sshkey_format_cert_validity
Name: sshkey_format_cert_validity
Prototype: size_t sshkey_format_cert_validity(const struct sshkey_cert *cert, char *s, size_t l)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2738-2773
  0.000% (0/23)
236
sshkey_dump_ec_point
Name: sshkey_dump_ec_point
Prototype: void sshkey_dump_ec_point(const EC_GROUP *group, const EC_POINT *point)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3348-3385
  0.000% (0/18)
806
sshd_hostkey_sign
Name: sshd_hostkey_sign
Prototype: int sshd_hostkey_sign(struct sshkey *privkey, struct sshkey *pubkey, u_char **signature, size_t *slenp, const u_char *data, size_t dlen, const char *alg, u_int flag)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 2237-2259
  0.000% (0/19)
146
sshbuf_put_bignum2_bytes
Name: sshbuf_put_bignum2_bytes
Prototype: int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 401-428
 81.818% (18/22)
156
sshbuf_get_eckey
Name: sshbuf_get_eckey
Prototype: int sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v)
Coverage:  50.000% (8/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 110-143
 50.000% (8/16)
296
sshbuf_get_bignum1
Name: sshbuf_get_bignum1
Prototype: int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v)
Coverage:  61.111% (11/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 48-72
 61.111% (11/18)
226
sshbuf_dup_string
Name: sshbuf_dup_string
Prototype: char * sshbuf_dup_string(struct sshbuf *buf)
Coverage:  75.000% (15/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 139-160
 75.000% (15/20)
416
sshbuf_allocate
Name: sshbuf_allocate
Prototype: int sshbuf_allocate(struct sshbuf *buf, size_t len)
Coverage:  75.000% (12/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 300-341
 75.000% (12/16)
216
ssh_userauth2
Name: ssh_userauth2
Prototype: void ssh_userauth2(const char *local_user, const char *server_user, char *host, Sensitive *sensitive)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 367-416
  0.000% (0/20)
626
ssh_remove_all_identities
Name: ssh_remove_all_identities
Prototype: int ssh_remove_all_identities(int sock, int version)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 559-580
  0.000% (0/16)
186
ssh_packet_write_poll
Name: ssh_packet_write_poll
Prototype: int ssh_packet_write_poll(struct ssh *ssh)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1902-1924
  0.000% (0/20)
366
ssh_packet_set_tos
Name: ssh_packet_set_tos
Prototype: void ssh_packet_set_tos(struct ssh *ssh, int tos)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2006-2033
  0.000% (0/16)
396
ssh_packet_set_state
Name: ssh_packet_set_state
Prototype: int ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m)
Coverage:  45.833% (22/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2370-2417
 45.833% (22/48)
356
ssh_packet_send_mux
Name: ssh_packet_send_mux
Prototype: static int ssh_packet_send_mux(struct ssh *ssh)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2585-2613
  0.000% (0/18)
216
ssh_packet_next
Name: ssh_packet_next
Prototype: int ssh_packet_next(struct ssh *ssh, u_char *typep)
Coverage:  58.333% (14/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 227-266
 58.333% (14/24)
256
ssh_msg_recv
Name: ssh_msg_recv
Prototype: int ssh_msg_recv(int fd, struct sshbuf *m)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/msg.c
Lines: 65-94
  0.000% (0/16)
286
ssh_lock_agent
Name: ssh_lock_agent
Prototype: int ssh_lock_agent(int sock, int lock, const char *password)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 179-199
  0.000% (0/18)
176
ssh_init
Name: ssh_init
Prototype: int ssh_init(struct ssh **sshp, int is_server, struct kex_params *kex_params)
Coverage:  78.947% (15/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 72-135
 78.947% (15/19)
496
ssh_get_authentication_socket
Name: ssh_get_authentication_socket
Prototype: int ssh_get_authentication_socket(int *fdp)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 86-120
  0.000% (0/19)
536
show_other_keys
Name: show_other_keys
Prototype: static int show_other_keys(struct hostkeys *hostkeys, struct sshkey *key)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 1450-1489
  0.000% (0/18)
406
setproctitle
Name: setproctitle
Prototype: void setproctitle(const char *fmt, ...)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/setproctitle.c
Lines: 122-167
  0.000% (0/18)
406
set_addrinfo_port
Name: set_addrinfo_port
Prototype: static void set_addrinfo_port(struct addrinfo *addrs, int port)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 557-574
  0.000% (0/16)
286
session_pty_cleanup2
Name: session_pty_cleanup2
Prototype: void session_pty_cleanup2(Session *s)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2185-2216
  0.000% (0/18)
206
session_new
Name: session_new
Prototype: Session * session_new(void)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1755-1794
  0.000% (0/18)
386
session_env_req
Name: session_env_req
Prototype: static int session_env_req(struct ssh *ssh, Session *s)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2069-2102
  0.000% (0/14)
216
session_close_by_channel
Name: session_close_by_channel
Prototype: void session_close_by_channel(struct ssh *ssh, int id, void *arg)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2394-2428
  0.000% (0/16)
226
server_accept_inetd
Name: server_accept_inetd
Prototype: static void server_accept_inetd(int *sock_in, int *sock_out)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 997-1028
  0.000% (0/17)
706
serialise_array
Name: serialise_array
Prototype: static int serialise_array(struct sshbuf *m, char **a, size_t n)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 735-761
  0.000% (0/18)
186
send_status
Name: send_status
Prototype: static void send_status(u_int32_t id, u_int32_t status)
Coverage:  0.000% (0/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 510-534
  0.000% (0/26)
216
sanitise_stdfd
Name: sanitise_stdfd
Prototype: void sanitise_stdfd(void)
Coverage:  27.778% (5/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1105-1126
 27.778% (5/18)
506
rsa_generate_private_key
Name: rsa_generate_private_key
Prototype: static int rsa_generate_private_key(u_int bits, RSA **rsap)
Coverage:  60.000% (12/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1473-1502
 60.000% (12/20)
546
revoked_serial_tree_RB_INSERT
Name: revoked_serial_tree_RB_INSERT
Prototype: static struct revoked_serial * revoked_serial_tree_RB_INSERT(struct revoked_serial_tree *head, struct revoked_serial *elm)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 62-62
  0.000% (0/18)
176
revoked_key_id_tree_RB_INSERT
Name: revoked_key_id_tree_RB_INSERT
Prototype: static struct revoked_key_id * revoked_key_id_tree_RB_INSERT(struct revoked_key_id_tree *head, struct revoked_key_id *elm)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 71-71
  0.000% (0/18)
176
revoked_blob_tree_RB_INSERT
Name: revoked_blob_tree_RB_INSERT
Prototype: static struct revoked_blob * revoked_blob_tree_RB_INSERT(struct revoked_blob_tree *head, struct revoked_blob *elm)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 81-81
  0.000% (0/18)
176
restore_uid
Name: restore_uid
Prototype: void restore_uid(void)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/uidswap.c
Lines: 141-172
  0.000% (0/16)
256
reaper
Name: reaper
Prototype: static time_t reaper(void)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 376-399
  0.000% (0/23)
196
process_write
Name: process_write
Prototype: static void process_write(u_int32_t id)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 773-814
  0.000% (0/23)
446
process_request_identities
Name: process_request_identities
Prototype: static void process_request_identities(SocketEntry *e)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 235-259
  0.000% (0/20)
236
process_remove_identity
Name: process_remove_identity
Prototype: static void process_remove_identity(SocketEntry *e)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 328-354
  0.000% (0/15)
276
process_open
Name: process_open
Prototype: static void process_open(u_int32_t id)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 675-715
  0.000% (0/27)
576
print_escape_help
Name: print_escape_help
Prototype: static void print_escape_help(struct sshbuf *b, int escape_char, int mux_client, int using_stderr)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 911-940
  0.000% (0/18)
206
print_cert
Name: print_cert
Prototype: static void print_cert(struct sshkey *key)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1990-2034
  0.000% (0/20)
396
pkcs11_open_session
Name: pkcs11_open_session
Prototype: static int pkcs11_open_session(struct pkcs11_provider *p, CK_ULONG slotidx, char *pin)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11.c
Lines: 366-399
  0.000% (0/24)
336
opt_dequote
Name: opt_dequote
Prototype: static char * opt_dequote(const char **sp, const char **errstrp)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 67-98
  0.000% (0/20)
416
mux_client_read_packet
Name: mux_client_read_packet
Prototype: static int mux_client_read_packet(int fd, struct sshbuf *m)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 1573-1604
  0.000% (0/18)
496
mm_request_receive
Name: mm_request_receive
Prototype: void mm_request_receive(int sock, struct sshbuf *m)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 139-161
  0.000% (0/16)
326
mm_receive_fd
Name: mm_receive_fd
Prototype: int mm_receive_fd(int sock)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_fdpass.c
Lines: 112-187
  0.000% (0/22)
936
mm_log_handler
Name: mm_log_handler
Prototype: void mm_log_handler(LogLevel level, const char *msg, void *ctx)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 84-109
  0.000% (0/22)
256
mm_answer_moduli
Name: mm_answer_moduli
Prototype: int mm_answer_moduli(int sock, struct sshbuf *m)
Coverage:  0.000% (0/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 567-606
  0.000% (0/29)
336
match_cfg_line_group
Name: match_cfg_line_group
Prototype: static int match_cfg_line_group(const char *grps, int line, const char *user)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 960-986
  0.000% (0/15)
226
mainloop
Name: mainloop
Prototype: static void mainloop(unsigned int work[64],const unsigned char e[32])
Coverage: 100.000% (16/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 124-178
100.000% (16/16)
476
mac_clear
Name: mac_clear
Prototype: void mac_clear(struct sshmac *mac)
Coverage:  25.000% (4/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 230-243
 25.000% (4/16)
246
ls_file
Name: ls_file
Prototype: char * ls_file(const char *name, const struct stat *st, int remote, int si_units)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-common.c
Lines: 213-258
  0.000% (0/24)
516
load_server_config
Name: load_server_config
Prototype: void load_server_config(const char *filename, struct sshbuf *conf)
Coverage:  59.091% (13/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 2175-2207
 59.091% (13/22)
736
lastlog_get_entry
Name: lastlog_get_entry
Prototype: int lastlog_get_entry(struct logininfo *li)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 1583-1617
  0.000% (0/11)
356
key_sig_algorithm
Name: key_sig_algorithm
Prototype: static char * key_sig_algorithm(struct ssh *ssh, const struct sshkey *key)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1080-1116
  0.000% (0/22)
1116
kex_send_kexinit
Name: kex_send_kexinit
Prototype: int kex_send_kexinit(struct ssh *ssh)
Coverage:  40.000% (8/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 498-525
 40.000% (8/20)
246
kex_prop2buf
Name: kex_prop2buf
Prototype: int kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX])
Coverage:  61.111% (11/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 297-321
 61.111% (11/18)
136
kex_new
Name: kex_new
Prototype: int kex_new(struct ssh *ssh, char *proposal[PROPOSAL_MAX], struct kex **kexp)
Coverage:  43.750% (7/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 580-605
 43.750% (7/16)
316
host_delete
Name: host_delete
Prototype: static int host_delete(struct hostkey_foreach_line *l, void *_ctx)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 474-521
  0.000% (0/18)
256
handle_conn_write
Name: handle_conn_write
Prototype: static int handle_conn_write(u_int socknum)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 863-886
  0.000% (0/18)
336
get_status
Name: get_status
Prototype: static u_int get_status(struct sftp_conn *conn, u_int expected_id)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 213-241
  0.000% (0/18)
226
get_sigtype
Name: get_sigtype
Prototype: static int get_sigtype(const u_char *sig, size_t siglen, char **sigtypep)
Coverage:  57.143% (8/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2303-2326
 57.143% (8/14)
426
get_line
Name: get_line
Prototype: static int get_line(FILE *fp, char *line, size_t len)
Coverage:  61.111% (11/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 580-604
 61.111% (11/18)
276
Page:<>1
McCabe - Cyclomatic Complexity: 331
...3
McCabe - Cyclomatic Complexity: 16
4
McCabe - Cyclomatic Complexity: 13
5
McCabe - Cyclomatic Complexity: 10
6
McCabe - Cyclomatic Complexity: 9
78
McCabe - Cyclomatic Complexity: 6
9
McCabe - Cyclomatic Complexity: 5
10
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1

Generated by Squish Coco 4.2.2