OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 3096
...10
eLOC - Effective Lines of Code: 22
11
eLOC - Effective Lines of Code: 19
12
eLOC - Effective Lines of Code: 16
13
eLOC - Effective Lines of Code: 13
1415
eLOC - Effective Lines of Code: 8
16
eLOC - Effective Lines of Code: 7
17
eLOC - Effective Lines of Code: 5
18
eLOC - Effective Lines of Code: 4
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
stop_progress_meter
Name: stop_progress_meter
Prototype: void stop_progress_meter(void)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/progressmeter.c
Lines: 270-283
  0.000% (0/7)
103
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_put_string
Name: sshbuf_put_string
Prototype: int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 347-363
100.000% (10/10)
104
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_packet_set_interactive
Name: ssh_packet_set_interactive
Prototype: void ssh_packet_set_interactive(struct ssh *ssh, int interactive, int qos_interactive, int qos_bulk)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2037-2055
  0.000% (0/7)
103
ssh_packet_get_string_ptr
Name: ssh_packet_get_string_ptr
Prototype: const void * ssh_packet_get_string_ptr(struct ssh *ssh, u_int *length_ptr)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/opacket.c
Lines: 183-195
  0.000% (0/7)
103
ssh_packet_get_string
Name: ssh_packet_get_string
Prototype: void * ssh_packet_get_string(struct ssh *ssh, u_int *length_ptr)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/opacket.c
Lines: 169-181
  0.000% (0/7)
103
ssh_packet_get_cstring
Name: ssh_packet_get_cstring
Prototype: char * ssh_packet_get_cstring(struct ssh *ssh, u_int *length_ptr)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/opacket.c
Lines: 197-209
  0.000% (0/7)
103
ssh_hmac_final
Name: ssh_hmac_final
Prototype: int ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 104-119
 46.154% (6/13)
103
ssh_digest_alg_name
Name: ssh_digest_alg_name
Prototype: const char * ssh_digest_alg_name(int alg)
Coverage:  66.667% (2/3)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 90-96
 66.667% (2/3)
101
safe_path_fd
Name: safe_path_fd
Prototype: int safe_path_fd(int fd, const char *file, struct passwd *pw, char *err, size_t errlen)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1828-1841
  0.000% (0/4)
102
pty_change_window_size
Name: pty_change_window_size
Prototype: void pty_change_window_size(int ptyfd, u_int row, u_int col, u_int xpixel, u_int ypixel)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshpty.c
Lines: 150-162
  0.000% (0/1)
101
process_remove_all_identities
Name: process_remove_all_identities
Prototype: static void process_remove_all_identities(SocketEntry *e)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 356-373
  0.000% (0/8)
103
poly_hash [umac.c #2]
Name: poly_hash [umac.c #2]
Prototype: static void poly_hash(uhash_ctx_t hc, UINT32 data_in[])
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 831-847
  0.000% (0/7)
103
poly_hash [umac.c #1]
Name: poly_hash [umac.c #1]
Prototype: static void poly_hash(uhash_ctx_t hc, UINT32 data_in[])
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 831-847
  0.000% (0/7)
103
pkcs11_terminate
Name: pkcs11_terminate
Prototype: void pkcs11_terminate(void)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11.c
Lines: 133-143
  0.000% (0/8)
103
opt_flag
Name: opt_flag
Prototype: static int opt_flag(const char *opt, int allow_negate, const char **optsp)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 49-65
  0.000% (0/11)
103
mm_user_key_allowed
Name: mm_user_key_allowed
Prototype: int mm_user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key, int pubkey_auth_attempt, struct sshauthopt **authoptp)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 432-438
  0.000% (0/1)
101
mac_check
Name: mac_check
Prototype: int mac_check(struct sshmac *mac, u_int32_t seqno, const u_char *data, size_t dlen, const u_char *theirmac, size_t mlen)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 212-228
  0.000% (0/10)
104
kexc25519_shared_key
Name: kexc25519_shared_key
Prototype: int kexc25519_shared_key(const u_char key[32], const u_char pub[32], struct sshbuf *out)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c
Lines: 62-82
 50.000% (2/4)
102
kex_start_rekex
Name: kex_start_rekex
Prototype: int kex_start_rekex(struct ssh *ssh)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 683-696
  0.000% (0/7)
103
kex_derive_keys_bn
Name: kex_derive_keys_bn
Prototype: int kex_derive_keys_bn(struct ssh *ssh, u_char *hash, u_int hashlen, const BIGNUM *secret)
Coverage:  57.143% (4/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 1019-1032
 57.143% (4/7)
103
ip_short [umac.c #2]
Name: ip_short [umac.c #2]
Prototype: static void ip_short(uhash_ctx_t ahc, UINT8 *nh_res, u_char *res)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 887-906
  0.000% (0/1)
101
get_peer_ipaddr
Name: get_peer_ipaddr
Prototype: char * get_peer_ipaddr(int sock)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/canohost.c
Lines: 113-121
  0.000% (0/4)
102
get_local_ipaddr
Name: get_local_ipaddr
Prototype: char * get_local_ipaddr(int sock)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/canohost.c
Lines: 123-131
  0.000% (0/4)
102
get_handle
Name: get_handle
Prototype: static int get_handle(struct sshbuf *queue, int *hp)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 464-478
  0.000% (0/7)
103
g_stat
Name: g_stat
Prototype: static int g_stat(Char *fn, struct stat *sb, _ssh_compat_glob_t *pglob)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 1013-1023
  0.000% (0/7)
103
g_lstat
Name: g_lstat
Prototype: static int g_lstat(Char *fn, struct stat *sb, _ssh_compat_glob_t *pglob)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 1001-1011
  0.000% (0/7)
103
free_sftp_dirents
Name: free_sftp_dirents
Prototype: void free_sftp_dirents(SFTP_DIRENT **s)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 681-693
  0.000% (0/7)
103
free_dns_rr
Name: free_dns_rr
Prototype: static void free_dns_rr(struct dns_rr *p)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getrrsetbyname.c
Lines: 569-581
  0.000% (0/10)
104
format_timestamp
Name: format_timestamp
Prototype: static void format_timestamp(u_int64_t timestamp, char *ts, size_t nts)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 829-843
  0.000% (0/4)
102
fork_postauth
Name: fork_postauth
Prototype: static void fork_postauth(void)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 1567-1576
  0.000% (0/7)
103
do_lstat
Name: do_lstat
Prototype: Attrib * do_lstat(struct sftp_conn *conn, const char *path, int quiet)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 756-774
  0.000% (0/8)
103
do_convert_to_pem
Name: do_convert_to_pem
Prototype: static void do_convert_to_pem(struct sshkey *k)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 377-389
  0.000% (0/8)
104
do_authentication2
Name: do_authentication2
Prototype: void do_authentication2(Authctxt *authctxt)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 169-178
  0.000% (0/1)
101
crypto_sign_ed25519_ref_scalarmult_base
Name: crypto_sign_ed25519_ref_scalarmult_base
Prototype: void crypto_sign_ed25519_ref_scalarmult_base(crypto_sign_ed25519_ref_ge25519 *r, const crypto_sign_ed25519_ref_sc25519 *s)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 306-321
100.000% (4/4)
102
crypto_sign_ed25519_ref_fe25519_mul
Name: crypto_sign_ed25519_ref_fe25519_mul
Prototype: void crypto_sign_ed25519_ref_fe25519_mul(crypto_sign_ed25519_ref_fe25519 *r, const crypto_sign_ed25519_ref_fe25519 *x, const crypto_sign_ed25519_ref_fe25519 *y)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 196-211
100.000% (12/12)
105
crypto_sign_ed25519_ref_fe25519_freeze
Name: crypto_sign_ed25519_ref_fe25519_freeze
Prototype: void crypto_sign_ed25519_ref_fe25519_freeze(crypto_sign_ed25519_ref_fe25519 *r)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/fe25519.c
Lines: 84-98
100.000% (7/7)
103
control_client_sigrelay
Name: control_client_sigrelay
Prototype: static void control_client_sigrelay(int signo)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 1466-1475
  0.000% (0/4)
102
channel_register_filter
Name: channel_register_filter
Prototype: void channel_register_filter(struct ssh *ssh, int id, channel_infilter_fn *ifn, channel_outfilter_fn *ofn, channel_filter_cleanup_fn *cfn, void *ctx)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 979-993
  0.000% (0/4)
102
agent_decode_alg
Name: agent_decode_alg
Prototype: static char * agent_decode_alg(struct sshkey *key, u_int flags)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 262-272
  0.000% (0/10)
104
_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
xmalloc
Name: xmalloc
Prototype: void * xmalloc(size_t size)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 39-50
 42.857% (3/7)
93
wrap_key
Name: wrap_key
Prototype: static int wrap_key(RSA *rsa)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11-client.c
Lines: 158-170
  0.000% (0/9)
93
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
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
strvisx
Name: strvisx
Prototype: int strvisx(char *dst, const char *src, size_t len, int flag)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/vis.c
Lines: 235-249
  0.000% (0/7)
93
sshkey_private_to_fileblob
Name: sshkey_private_to_fileblob
Prototype: int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob, const char *passphrase, const char *comment, int force_new_format, const char *new_format_cipher, int new_format_rounds)
Coverage:  63.636% (7/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3826-3852
 63.636% (7/11)
97
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_curve_nid_to_name
Name: sshkey_curve_nid_to_name
Prototype: const char * sshkey_curve_nid_to_name(int nid)
Coverage:  25.000% (2/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 419-434
 25.000% (2/8)
95
sshbuf_get_u8
Name: sshbuf_get_u8
Prototype: int sshbuf_get_u8(struct sshbuf *buf, u_char *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 83-94
100.000% (7/7)
93
sshbuf_get_u64
Name: sshbuf_get_u64
Prototype: int sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 44-55
 85.714% (6/7)
93
sshbuf_get_u32
Name: sshbuf_get_u32
Prototype: int sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 57-68
100.000% (7/7)
93
sshbuf_get_u16
Name: sshbuf_get_u16
Prototype: int sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 70-81
 85.714% (6/7)
93
sshbuf_consume_end
Name: sshbuf_consume_end
Prototype: int sshbuf_consume_end(struct sshbuf *buf, size_t len)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 383-398
 80.000% (8/10)
94
ssh_packet_read
Name: ssh_packet_read
Prototype: int ssh_packet_read(struct ssh *ssh)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1371-1380
  0.000% (0/4)
92
ssh_krl_revoke_key
Name: ssh_krl_revoke_key
Prototype: int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 453-469
  0.000% (0/7)
93
ssh_digest_blocksize
Name: ssh_digest_blocksize
Prototype: size_t ssh_digest_blocksize(struct ssh_digest_ctx *ctx)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 106-110
100.000% (1/1)
91
sighup_handler
Name: sighup_handler
Prototype: static void sighup_handler(int sig)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 284-291
  0.000% (0/1)
91
session_destroy_all
Name: session_destroy_all
Prototype: void session_destroy_all(struct ssh *ssh, void (*closefunc)(Session *))
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2430-2443
  0.000% (0/10)
94
session_close_x11
Name: session_close_x11
Prototype: static void session_close_x11(struct ssh *ssh, int id)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2245-2259
  0.000% (0/7)
93
session_auth_agent_req
Name: session_auth_agent_req
Prototype: static int session_auth_agent_req(struct ssh *ssh, Session *s)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 2104-2121
  0.000% (0/12)
94
serialise_nullable_string
Name: serialise_nullable_string
Prototype: static int serialise_nullable_string(struct sshbuf *m, const char *s)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 802-811
  0.000% (0/6)
92
rsa_hash_alg_ident
Name: rsa_hash_alg_ident
Prototype: static const char * rsa_hash_alg_ident(int hash_alg)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 42-54
 85.714% (6/7)
94
pwcopy
Name: pwcopy
Prototype: struct passwd * pwcopy(struct passwd *pw)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 301-325
100.000% (1/1)
91
put_u64
Name: put_u64
Prototype: void put_u64(void *vp, u_int64_t v)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1205-1218
  0.000% (0/1)
91
permission_set_get_array
Name: permission_set_get_array
Prototype: static void permission_set_get_array(struct ssh *ssh, int who, int where, struct permission ***permpp, u_int **npermpp)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 501-519
  0.000% (0/6)
94
pdf_gen_xor [umac.c #2]
Name: pdf_gen_xor [umac.c #2]
Prototype: static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8], UINT8 buf[8])
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 235-278
  0.000% (0/6)
92
pdf_gen_xor [umac.c #1]
Name: pdf_gen_xor [umac.c #1]
Prototype: static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8], UINT8 buf[8])
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 235-278
  0.000% (0/6)
92
parse_no_flags
Name: parse_no_flags
Prototype: static int parse_no_flags(const char *cmd, char **argv, int argc)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 564-582
  0.000% (0/5)
93
mult
Name: mult
Prototype: static void mult(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/smult_curve25519_ref.c
Lines: 62-75
100.000% (10/10)
94
monitor_clear_keystate
Name: monitor_clear_keystate
Prototype: void monitor_clear_keystate(struct monitor *pmonitor)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 1630-1639
  0.000% (0/1)
91
mm_request_receive_expect
Name: mm_request_receive_expect
Prototype: void mm_request_receive_expect(int sock, enum monitor_reqtype type, struct sshbuf *m)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 163-177
  0.000% (0/7)
93
lostconn
Name: lostconn
Prototype: void lostconn(int signo)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 1416-1425
  0.000% (0/7)
93
log_facility_name
Name: log_facility_name
Prototype: const char * log_facility_name(SyslogFacility facility)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/log.c
Lines: 126-135
  0.000% (0/6)
93
iptos2str
Name: iptos2str
Prototype: const char * iptos2str(int iptos)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1462-1474
  0.000% (0/7)
93
get_connection_info
Name: get_connection_info
Prototype: struct connection_info * get_connection_info(int populate, int use_dns)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 911-925
  0.000% (0/4)
92
free_hostkeys
Name: free_hostkeys
Prototype: void free_hostkeys(struct hostkeys *hostkeys)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 291-305
  0.000% (0/4)
92
free_dns_response
Name: free_dns_response
Prototype: static void free_dns_response(struct dns_response *p)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getrrsetbyname.c
Lines: 583-594
  0.000% (0/4)
92
dump_cfg_strarray_oneline
Name: dump_cfg_strarray_oneline
Prototype: static void dump_cfg_strarray_oneline(ServerOpCodes code, u_int count, char **vals)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 2462-2475
  0.000% (0/14)
94
do_setstat
Name: do_setstat
Prototype: int do_setstat(struct sftp_conn *conn, const char *path, Attrib *a)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 791-806
  0.000% (0/6)
92
dh_new_group_fallback
Name: dh_new_group_fallback
Prototype: DH * dh_new_group_fallback(int max)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 458-471
 42.857% (3/7)
93
crypto_sign_ed25519_ref_sc25519_2interleave2
Name: crypto_sign_ed25519_ref_sc25519_2interleave2
Prototype: void crypto_sign_ed25519_ref_sc25519_2interleave2(unsigned char r[127], const crypto_sign_ed25519_ref_sc25519 *s1, const crypto_sign_ed25519_ref_sc25519 *s2)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 295-308
100.000% (4/4)
92
compat_datafellows
Name: compat_datafellows
Prototype: u_int compat_datafellows(const char *version)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/compat.c
Lines: 44-158
 71.429% (5/7)
93
client_stop_mux
Name: client_stop_mux
Prototype: void client_stop_mux(void)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 2333-2346
  0.000% (0/11)
93
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
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
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
authorized_principals_file
Name: authorized_principals_file
Prototype: char * authorized_principals_file(struct passwd *pw)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 450-456
  0.000% (0/4)
92
atomiciov
Name: atomiciov
Prototype: size_t atomiciov(ssize_t (*f) (int, const struct iovec *, int), int fd, const struct iovec *_iov, int iovcnt)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/atomicio.c
Lines: 165-170
  0.000% (0/1)
91
atomicio
Name: atomicio
Prototype: size_t atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/atomicio.c
Lines: 91-95
100.000% (1/1)
91
arc4random_uniform
Name: arc4random_uniform
Prototype: u_int32_t arc4random_uniform(u_int32_t upper_bound)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 291-315
 50.000% (4/8)
94
advance_past_options
Name: advance_past_options
Prototype: static int advance_past_options(char **cpp)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 540-555
  0.000% (0/22)
94
add_key
Name: add_key
Prototype: static void add_key(struct sshkey *k, char *name)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11-helper.c
Lines: 59-68
  0.000% (0/1)
91
add_flag_option
Name: add_flag_option
Prototype: static void add_flag_option(struct sshbuf *c, const char *name)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1562-1571
  0.000% (0/6)
92
EVP_PKEY_get0_RSA
Name: EVP_PKEY_get0_RSA
Prototype: RSA * EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 604-612
  0.000% (0/4)
92
BSDgetopt
Name: BSDgetopt
Prototype: int BSDgetopt(int nargc, char * const *nargv, const char *options)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/getopt_long.c
Lines: 489-502
100.000% (1/1)
91
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
usage
Name: usage
Prototype: void usage(void)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 1314-1321
  0.000% (0/1)
81
Page:<>1
eLOC - Effective Lines of Code: 3096
...10
eLOC - Effective Lines of Code: 22
11
eLOC - Effective Lines of Code: 19
12
eLOC - Effective Lines of Code: 16
13
eLOC - Effective Lines of Code: 13
1415
eLOC - Effective Lines of Code: 8
16
eLOC - Effective Lines of Code: 7
17
eLOC - Effective Lines of Code: 5
18
eLOC - Effective Lines of Code: 4
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1

Generated by Squish Coco 4.2.2