OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
McCabe - Cyclomatic Complexity: 331
...10
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
12
McCabe - Cyclomatic Complexity: 3
13
McCabe - Cyclomatic Complexity: 3
1415
McCabe - Cyclomatic Complexity: 2
16
McCabe - Cyclomatic Complexity: 2
17
McCabe - Cyclomatic Complexity: 2
18
McCabe - Cyclomatic Complexity: 1
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1
FunctionCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexityâ–¾
channel_setup_remote_fwd_listener
Name: channel_setup_remote_fwd_listener
Prototype: int channel_setup_remote_fwd_listener(struct ssh *ssh, struct Forward *fwd, int *allocated_listen_port, struct ForwardOptions *fwd_opts)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3757-3773
  0.000% (0/7)
113
channel_send_open
Name: channel_send_open
Prototype: void channel_send_open(struct ssh *ssh, int id)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 883-897
  0.000% (0/7)
113
channel_pre_x11_open
Name: channel_pre_x11_open
Prototype: static void channel_pre_x11_open(struct ssh *ssh, Channel *c, fd_set *readset, fd_set *writeset)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 1146-1168
  0.000% (0/7)
143
channel_parse_id
Name: channel_parse_id
Prototype: static int channel_parse_id(struct ssh *ssh, const char *where, const char *what)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2914-2929
  0.000% (0/7)
93
channel_input_oclose
Name: channel_input_oclose
Prototype: int channel_input_oclose(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3081-3091
  0.000% (0/7)
63
channel_free_all
Name: channel_free_all
Prototype: void channel_free_all(struct ssh *ssh)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 642-650
  0.000% (0/6)
63
channel_find_maxfd
Name: channel_find_maxfd
Prototype: static void channel_find_maxfd(struct ssh_channels *sc)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 407-423
  0.000% (0/13)
123
channel_connect_ctx_free
Name: channel_connect_ctx_free
Prototype: static void channel_connect_ctx_free(struct channel_connect *cctx)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4161-4172
  0.000% (0/7)
83
channel_connect_by_listen_path
Name: channel_connect_by_listen_path
Prototype: Channel * channel_connect_by_listen_path(struct ssh *ssh, const char *path, char *ctype, char *rname)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4300-4320
  0.000% (0/7)
173
channel_close_fd
Name: channel_close_fd
Prototype: int channel_close_fd(struct ssh *ssh, int *fdp)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 425-438
  0.000% (0/7)
83
channel_close_all
Name: channel_close_all
Prototype: void channel_close_all(struct ssh *ssh)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 656-664
  0.000% (0/6)
63
channel_by_remote_id
Name: channel_by_remote_id
Prototype: Channel * channel_by_remote_id(struct ssh *ssh, u_int remote_id)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 261-273
  0.000% (0/11)
153
channel_by_id
Name: channel_by_id
Prototype: Channel * channel_by_id(struct ssh *ssh, int id)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 244-259
  0.000% (0/9)
193
chan_read_failed
Name: chan_read_failed
Prototype: void chan_read_failed(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 107-121
  0.000% (0/4)
83
chan_rcvd_ieof
Name: chan_rcvd_ieof
Prototype: void chan_rcvd_ieof(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 251-262
  0.000% (0/17)
83
cert_new
Name: cert_new
Prototype: static struct sshkey_cert * cert_new(void)
Coverage:  45.455% (5/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 473-491
 45.455% (5/11)
493
cert_free
Name: cert_free
Prototype: static void cert_free(struct sshkey_cert *cert)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 454-471
100.000% (7/7)
153
blob_cmp
Name: blob_cmp
Prototype: static int blob_cmp(struct revoked_blob *a, struct revoked_blob *b)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 118-129
  0.000% (0/9)
63
blf_cbc_encrypt
Name: blf_cbc_encrypt
Prototype: void blf_cbc_encrypt(blf_ctx *c, u_int8_t *iv, u_int8_t *data, u_int32_t len)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 584-607
  0.000% (0/7)
183
bitmap_test_bit
Name: bitmap_test_bit
Prototype: int bitmap_test_bit(struct bitmap *b, u_int n)
Coverage:  66.667% (6/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 71-79
 66.667% (6/9)
53
bitmap_set_bit
Name: bitmap_set_bit
Prototype: int bitmap_set_bit(struct bitmap *b, u_int n)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 100-113
 71.429% (5/7)
93
bitmap_new
Name: bitmap_new
Prototype: struct bitmap * bitmap_new(void)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 37-51
 42.857% (3/7)
213
bitmap_clear_bit
Name: bitmap_clear_bit
Prototype: void bitmap_clear_bit(struct bitmap *b, u_int n)
Coverage:  44.444% (4/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/bitmap.c
Lines: 125-138
 44.444% (4/9)
83
bind_permitted
Name: bind_permitted
Prototype: static int bind_permitted(int port, uid_t uid)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 107-115
  0.000% (0/9)
93
auth_get_canonical_hostname
Name: auth_get_canonical_hostname
Prototype: const char * auth_get_canonical_hostname(struct ssh *ssh, int use_dns)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 839-852
  0.000% (0/7)
83
auth_debug_reset
Name: auth_debug_reset
Prototype: void auth_debug_reset(void)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 708-715
  0.000% (0/7)
83
auth_debug_add
Name: auth_debug_add
Prototype: void auth_debug_add(const char *fmt,...)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 673-688
  0.000% (0/7)
283
auth2_key_already_used
Name: auth2_key_already_used
Prototype: int auth2_key_already_used(Authctxt *authctxt, const struct sshkey *key)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 731-749
  0.000% (0/7)
163
auth2_challenge
Name: auth2_challenge
Prototype: int auth2_challenge(struct ssh *ssh, char *devs)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-chall.c
Lines: 193-206
  0.000% (0/9)
153
atoi_err
Name: atoi_err
Prototype: const char * atoi_err(const char *nptr, int *val)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1951-1963
  0.000% (0/9)
183
ask_permission
Name: ask_permission
Prototype: int ask_permission(const char *fmt, ...)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readpass.c
Lines: 168-192
  0.000% (0/11)
313
arc4random_addrandom
Name: arc4random_addrandom
Prototype: void arc4random_addrandom(u_char *dat, int datlen)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 218-233
  0.000% (0/9)
283
append_hostkey_type
Name: append_hostkey_type
Prototype: static void append_hostkey_type(struct sshbuf *b, const char *s)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 688-700
  0.000% (0/7)
73
addr_host_is_all0s
Name: addr_host_is_all0s
Prototype: static int addr_host_is_all0s(const struct xaddr *a, u_int masklen)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/addrmatch.c
Lines: 294-305
 42.857% (3/7)
73
add_string_option
Name: add_string_option
Prototype: static void add_string_option(struct sshbuf *c, const char *name, const char *value)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1573-1588
  0.000% (0/11)
123
add_remote_forward
Name: add_remote_forward
Prototype: void add_remote_forward(Options *options, const struct Forward *newfwd)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 350-374
  0.000% (0/7)
173
add_local_forward
Name: add_local_forward
Prototype: void add_local_forward(Options *options, const struct Forward *newfwd)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 321-343
  0.000% (0/7)
153
add_listen_addr
Name: add_listen_addr
Prototype: static void add_listen_addr(ServerOptions *options, const char *addr, const char *rdomain, int port)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 714-728
 71.429% (5/7)
63
add_host_to_hostfile
Name: add_host_to_hostfile
Prototype: int add_host_to_hostfile(const char *filename, const char *host, const struct sshkey *key, int store_hash)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 447-462
  0.000% (0/7)
163
_ssh_verify_host_key
Name: _ssh_verify_host_key
Prototype: int _ssh_verify_host_key(struct sshkey *hostkey, struct ssh *ssh)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 467-479
 42.857% (3/7)
103
_ssh_host_public_key
Name: _ssh_host_public_key
Prototype: struct sshkey * _ssh_host_public_key(int type, int nid, struct ssh *ssh)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 437-450
 54.545% (6/11)
153
_ssh_host_private_key
Name: _ssh_host_private_key
Prototype: struct sshkey * _ssh_host_private_key(int type, int nid, struct ssh *ssh)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 452-465
 54.545% (6/11)
153
_rs_stir
Name: _rs_stir
Prototype: static void _rs_stir(void)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 116-141
 75.000% (6/8)
123
_rs_rekey
Name: _rs_rekey
Prototype: static __inline void _rs_rekey(u_char *dat, size_t datlen)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 155-175
 88.889% (8/9)
293
RSA_meth_set1_name
Name: RSA_meth_set1_name
Prototype: int RSA_meth_set1_name(RSA_METHOD *meth, const char *name)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 553-563
  0.000% (0/13)
403
RSA_get0_factors
Name: RSA_get0_factors
Prototype: void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 305-312
100.000% (7/7)
83
ECDSA_SIG_get0
Name: ECDSA_SIG_get0
Prototype: void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 421-428
 71.429% (5/7)
83
DSA_get0_key
Name: DSA_get0_key
Prototype: void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 197-204
100.000% (7/7)
83
DSA_SIG_get0
Name: DSA_SIG_get0
Prototype: void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 394-401
 71.429% (5/7)
83
DH_set0_key
Name: DH_set0_key
Prototype: int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 495-508
  0.000% (0/7)
113
DH_get0_key
Name: DH_get0_key
Prototype: void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 484-491
 57.143% (4/7)
83
Blowfish_stream2word
Name: Blowfish_stream2word
Prototype: u_int32_t Blowfish_stream2word(const u_int8_t *data, u_int16_t databytes, u_int16_t *current)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 402-421
100.000% (7/7)
113
xrecallocarray
Name: xrecallocarray
Prototype: void * xrecallocarray(void *ptr, size_t onmemb, size_t nmemb, size_t size)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 80-90
 50.000% (2/4)
82
xreallocarray
Name: xreallocarray
Prototype: void * xreallocarray(void *ptr, size_t nmemb, size_t size)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 68-78
 50.000% (2/4)
82
xcrypt
Name: xcrypt
Prototype: char * xcrypt(const char *password, const char *salt)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/xcrypt.c
Lines: 98-127
  0.000% (0/4)
72
xasprintf
Name: xasprintf
Prototype: int xasprintf(char **ret, const char *fmt, ...)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 104-118
  0.000% (0/6)
262
warn_changed_key
Name: warn_changed_key
Prototype: static void warn_changed_key(struct sshkey *host_key)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 1491-1512
  0.000% (0/4)
172
verify_host_key_callback
Name: verify_host_key_callback
Prototype: static int verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 95-101
  0.000% (0/4)
32
userauth_none
Name: userauth_none
Prototype: int userauth_none(Authctxt *authctxt)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 940-954
  0.000% (0/12)
92
user_specific_delay
Name: user_specific_delay
Prototype: static double user_specific_delay(const char *user)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 216-233
  0.000% (0/4)
122
upload_dir
Name: upload_dir
Prototype: int upload_dir(struct sftp_conn *conn, const char *src, const char *dst, int preserve_flag, int print_flag, int resume, int fsync_flag)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 1887-1904
  0.000% (0/4)
112
umac_new [umac.c #1]
Name: umac_new [umac.c #1]
Prototype: struct umac_ctx *umac_new(const u_char key[])
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 1215-1239
  0.000% (0/5)
142
umac_delete [umac.c #1]
Name: umac_delete [umac.c #1]
Prototype: int umac_delete(struct umac_ctx *ctx)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 1201-1211
  0.000% (0/5)
52
umac128_new [umac.c #2]
Name: umac128_new [umac.c #2]
Prototype: struct umac128_ctx *umac128_new(const u_char key[])
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 1215-1239
  0.000% (0/5)
142
umac128_delete [umac.c #2]
Name: umac128_delete [umac.c #2]
Prototype: int umac128_delete(struct umac128_ctx *ctx)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 1201-1211
  0.000% (0/5)
52
timingsafe_bcmp
Name: timingsafe_bcmp
Prototype: int timingsafe_bcmp(const void *b1, const void *b2, size_t n)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/timingsafe_bcmp.c
Lines: 23-32
100.000% (4/4)
52
tilde_expand_paths
Name: tilde_expand_paths
Prototype: static void tilde_expand_paths(char **paths, u_int num_paths)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 215-226
  0.000% (0/4)
62
syslogin_perform_logout
Name: syslogin_perform_logout
Prototype: static int syslogin_perform_logout(struct logininfo *li)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 1424-1444
  0.000% (0/5)
102
sub
Name: sub
Prototype: static void sub(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 20-32
100.000% (4/4)
92
strvis
Name: strvis
Prototype: int strvis(char *dst, const char *src, int flag)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/vis.c
Lines: 160-170
  0.000% (0/4)
62
strnnsep
Name: strnnsep
Prototype: static char * strnnsep(char **stringp, char *delim)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 184-193
  0.000% (0/6)
42
start_progress_meter
Name: start_progress_meter
Prototype: void start_progress_meter(const char *f, off_t filesize, off_t *ctr)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/progressmeter.c
Lines: 249-268
  0.000% (0/4)
222
sshpkt_send
Name: sshpkt_send
Prototype: int sshpkt_send(struct ssh *ssh)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2648-2654
 50.000% (3/6)
32
sshpkt_ptr
Name: sshpkt_ptr
Prototype: const u_char * sshpkt_ptr(struct ssh *ssh, size_t *lenp)
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2563-2569
 75.000% (3/4)
52
sshpkt_get_end
Name: sshpkt_get_end
Prototype: int sshpkt_get_end(struct ssh *ssh)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2555-2561
 50.000% (2/4)
32
sshpkt_disconnect
Name: sshpkt_disconnect
Prototype: int sshpkt_disconnect(struct ssh *ssh, const char *fmt,...)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2656-2674
  0.000% (0/12)
292
sshkey_set_filename
Name: sshkey_set_filename
Prototype: int sshkey_set_filename(struct sshkey *k, const char *filename)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 4143-4149
 50.000% (2/4)
52
sshkey_is_cert
Name: sshkey_is_cert
Prototype: int sshkey_is_cert(const struct sshkey *k)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 340-346
 50.000% (2/4)
52
sshkey_froms
Name: sshkey_froms
Prototype: int sshkey_froms(struct sshbuf *buf, struct sshkey **keyp)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2290-2301
  0.000% (0/4)
72
sshkey_from_blob
Name: sshkey_from_blob
Prototype: int sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2271-2282
 50.000% (2/4)
92
sshkey_dump_ec_key
Name: sshkey_dump_ec_key
Prototype: void sshkey_dump_ec_key(const EC_KEY *key)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3387-3400
  0.000% (0/5)
262
sshkey_drop_cert
Name: sshkey_drop_cert
Prototype: int sshkey_drop_cert(struct sshkey *k)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2505-2514
  0.000% (0/4)
102
sshbuf_set_parent
Name: sshbuf_set_parent
Prototype: int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 104-115
 50.000% (3/6)
72
sshbuf_put_u8
Name: sshbuf_put_u8
Prototype: int sshbuf_put_u8(struct sshbuf *buf, u_char val)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 335-345
 50.000% (2/4)
62
sshbuf_put_u64
Name: sshbuf_put_u64
Prototype: int sshbuf_put_u64(struct sshbuf *buf, u_int64_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 299-309
100.000% (4/4)
62
sshbuf_put_u32
Name: sshbuf_put_u32
Prototype: int sshbuf_put_u32(struct sshbuf *buf, u_int32_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 311-321
100.000% (4/4)
62
sshbuf_put_u16
Name: sshbuf_put_u16
Prototype: int sshbuf_put_u16(struct sshbuf *buf, u_int16_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 323-333
100.000% (4/4)
62
sshbuf_ptr
Name: sshbuf_ptr
Prototype: const u_char * sshbuf_ptr(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 268-274
 50.000% (2/4)
72
sshbuf_mutable_ptr
Name: sshbuf_mutable_ptr
Prototype: u_char * sshbuf_mutable_ptr(const struct sshbuf *buf)
Coverage:  87.500% (7/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 276-282
 87.500% (7/8)
72
sshbuf_len
Name: sshbuf_len
Prototype: size_t sshbuf_len(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 252-258
 50.000% (2/4)
32
sshbuf_get_stringb
Name: sshbuf_get_stringb
Prototype: int sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 215-233
 50.000% (5/10)
172
sshbuf_from
Name: sshbuf_from
Prototype: struct sshbuf * sshbuf_from(const void *blob, size_t len)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 87-102
 50.000% (4/8)
292
sshbuf_check_sanity
Name: sshbuf_check_sanity
Prototype: static inline int sshbuf_check_sanity(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 31-50
 50.000% (2/4)
252
sshbuf_avail
Name: sshbuf_avail
Prototype: size_t sshbuf_avail(const struct sshbuf *buf)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 260-266
 75.000% (6/8)
32
sshauthopt_new_with_keys_defaults
Name: sshauthopt_new_with_keys_defaults
Prototype: struct sshauthopt * sshauthopt_new_with_keys_defaults(void)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 294-309
  0.000% (0/4)
192
sshauthopt_new
Name: sshauthopt_new
Prototype: struct sshauthopt * sshauthopt_new(void)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 254-263
  0.000% (0/4)
112
ssh_stdio_confirm
Name: ssh_stdio_confirm
Prototype: static void ssh_stdio_confirm(struct ssh *ssh, int id, int success, void *arg)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 1636-1641
  0.000% (0/4)
22
ssh_set_verify_host_key_callback
Name: ssh_set_verify_host_key_callback
Prototype: int ssh_set_verify_host_key_callback(struct ssh *ssh, int (*cb)(struct sshkey *, struct ssh *))
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 209-219
  0.000% (0/6)
102
ssh_put_password
Name: ssh_put_password
Prototype: void ssh_put_password(char *password)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 1431-1447
  0.000% (0/4)
112
ssh_packet_start
Name: ssh_packet_start
Prototype: void ssh_packet_start(struct ssh *ssh, u_char type)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/opacket.c
Lines: 16-23
  0.000% (0/4)
32
Page:<>1
McCabe - Cyclomatic Complexity: 331
...10
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
12
McCabe - Cyclomatic Complexity: 3
13
McCabe - Cyclomatic Complexity: 3
1415
McCabe - Cyclomatic Complexity: 2
16
McCabe - Cyclomatic Complexity: 2
17
McCabe - Cyclomatic Complexity: 2
18
McCabe - Cyclomatic Complexity: 1
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1

Generated by Squish Coco 4.2.2