OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 1
...9
eLOC - Effective Lines of Code: 12
10
eLOC - Effective Lines of Code: 15
11
eLOC - Effective Lines of Code: 18
12
eLOC - Effective Lines of Code: 22
1314
eLOC - Effective Lines of Code: 31
15
eLOC - Effective Lines of Code: 38
16
eLOC - Effective Lines of Code: 47
17
eLOC - Effective Lines of Code: 62
...20
eLOC - Effective Lines of Code: 224
21
eLOC - Effective Lines of Code: 1019
FunctionCondition %eLOC - Effective Lines of Codeā–“McCabe - Cyclomatic Complexity
monitor_reset_key_state
Name: monitor_reset_key_state
Prototype: static void monitor_reset_key_state(void)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 550-564
  0.000% (0/1)
261
mprintf
Name: mprintf
Prototype: int mprintf(const char *fmt, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/utf8.c
Lines: 289-299
100.000% (1/1)
261
parse_absolute_time
Name: parse_absolute_time
Prototype: int parse_absolute_time(const char *s, uint64_t *tp)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1965-2006
  0.000% (0/15)
267
process_del
Name: process_del
Prototype: static void process_del(void)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11-helper.c
Lines: 153-173
  0.000% (0/12)
264
recv_rexec_state
Name: recv_rexec_state
Prototype: static void recv_rexec_state(int fd, struct sshbuf *conf)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 964-994
  0.000% (0/21)
267
sighup_restart
Name: sighup_restart
Prototype: static void sighup_restart(void)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 297-312
  0.000% (0/4)
262
sockaddr_is_local
Name: sockaddr_is_local
Prototype: static int sockaddr_is_local(struct sockaddr *hostaddr)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 762-775
  0.000% (0/6)
264
ssh_packet_need_rekeying
Name: ssh_packet_need_rekeying
Prototype: static int ssh_packet_need_rekeying(struct ssh *ssh, u_int outbound_packet_len)
Coverage:  51.429% (18/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 924-969
 51.429% (18/35)
267
ssh_update_card
Name: ssh_update_card
Prototype: int ssh_update_card(int sock, int add, const char *reader_id, const char *pin, u_int life, u_int confirm)
Coverage:  0.000% (0/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 517-549
  0.000% (0/33)
268
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_load_private_type_fd
Name: sshkey_load_private_type_fd
Prototype: int sshkey_load_private_type_fd(int fd, int type, const char *passphrase, struct sshkey **keyp, char **commentp)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 201-224
  0.000% (0/13)
265
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
stravis
Name: stravis
Prototype: int stravis(char **outp, const char *src, int flag)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/vis.c
Lines: 216-233
  0.000% (0/7)
263
usage
Name: usage
Prototype: static void usage(void)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 914-931
  0.000% (0/1)
261
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
authmethods_get
Name: authmethods_get
Prototype: static char * authmethods_get(void)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 2136-2158
  0.000% (0/16)
276
chan_is_dead
Name: chan_is_dead
Prototype: int chan_is_dead(struct ssh *ssh, Channel *c, int do_send)
Coverage:  0.000% (0/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 327-366
  0.000% (0/35)
279
channel_connect_to_path
Name: channel_connect_to_path
Prototype: Channel * channel_connect_to_path(struct ssh *ssh, const char *path, char *ctype, char *rname)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4383-4420
  0.000% (0/24)
278
colon
Name: colon
Prototype: char * colon(char *cp)
Coverage:  0.000% (0/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 541-562
  0.000% (0/30)
278
crypto_sign_ed25519_ref_sc25519_window3
Name: crypto_sign_ed25519_ref_sc25519_window3
Prototype: void crypto_sign_ed25519_ref_sc25519_window3(signed char r[85], const crypto_sign_ed25519_ref_sc25519 *s)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 221-256
100.000% (7/7)
273
crypto_sign_ed25519_ref_sc25519_window5
Name: crypto_sign_ed25519_ref_sc25519_window5
Prototype: void crypto_sign_ed25519_ref_sc25519_window5(signed char r[51], const crypto_sign_ed25519_ref_sc25519 *s)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 258-293
  0.000% (0/7)
273
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
g_charclass
Name: g_charclass
Prototype: static int g_charclass(const Char **patternp, Char **bufnextp)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 437-462
  0.000% (0/17)
275
get_hostkey_by_type
Name: get_hostkey_by_type
Prototype: static struct sshkey * get_hostkey_by_type(int type, int nid, int need_private, struct ssh *ssh)
Coverage:  0.000% (0/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 758-785
  0.000% (0/28)
2710
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
grace_alarm_handler
Name: grace_alarm_handler
Prototype: static void grace_alarm_handler(int sig)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 346-364
  0.000% (0/11)
273
input_userauth_success
Name: input_userauth_success
Prototype: int input_userauth_success(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 523-538
  0.000% (0/9)
273
mm_auth2_read_banner
Name: mm_auth2_read_banner
Prototype: char * mm_auth2_read_banner(void)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 344-370
  0.000% (0/10)
274
mm_sshkey_verify
Name: mm_sshkey_verify
Prototype: int mm_sshkey_verify(const struct sshkey *key, const u_char *sig, size_t siglen, const u_char *data, size_t datalen, const char *sigalg, u_int compat)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 499-532
  0.000% (0/19)
275
process_config_files
Name: process_config_files
Prototype: static void process_config_files(const char *host_name, struct passwd *pw, int post_canon)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 529-554
  0.000% (0/14)
274
process_readlink
Name: process_readlink
Prototype: static void process_readlink(u_int32_t id)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1232-1255
  0.000% (0/8)
273
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
pty_allocate
Name: pty_allocate
Prototype: int pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshpty.c
Lines: 63-81
  0.000% (0/7)
273
sshbuf_dump_data
Name: sshbuf_dump_data
Prototype: void sshbuf_dump_data(const void *s, size_t len, FILE *f)
Coverage:  95.238% (20/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 38-63
 95.238% (20/21)
277
userauth_passwd
Name: userauth_passwd
Prototype: int userauth_passwd(Authctxt *authctxt)
Coverage:  0.000% (0/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 956-993
  0.000% (0/29)
275
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
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
channel_request_rforward_cancel_streamlocal
Name: channel_request_rforward_cancel_streamlocal
Prototype: static int channel_request_rforward_cancel_streamlocal(struct ssh *ssh, const char *path)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3952-3982
  0.000% (0/21)
285
channel_request_rforward_cancel_tcpip
Name: channel_request_rforward_cancel_tcpip
Prototype: static int channel_request_rforward_cancel_tcpip(struct ssh *ssh, const char *host, u_short port)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3915-3946
  0.000% (0/23)
285
clear_forwardings
Name: clear_forwardings
Prototype: static void clear_forwardings(Options *options)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 376-404
  0.000% (0/13)
285
closefrom
Name: closefrom
Prototype: void closefrom(int lowfd)
Coverage:  50.000% (15/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-closefrom.c
Lines: 68-107
 50.000% (15/30)
286
globtilde
Name: globtilde
Prototype: static const Char * globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, _ssh_compat_glob_t *pglob)
Coverage:  0.000% (0/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/glob.c
Lines: 362-420
  0.000% (0/38)
289
monitor_apply_keystate
Name: monitor_apply_keystate
Prototype: void monitor_apply_keystate(struct monitor *pmonitor)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 1641-1674
  0.000% (0/7)
283
privsep_preauth_child
Name: privsep_preauth_child
Prototype: static void privsep_preauth_child(void)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 529-564
  0.000% (0/13)
285
process_mux_stop_listening
Name: process_mux_stop_listening
Prototype: static int process_mux_stop_listening(struct ssh *ssh, u_int rid, Channel *c, struct sshbuf *m, struct sshbuf *reply)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 1113-1141
  0.000% (0/12)
284
send_userauth_info_request
Name: send_userauth_info_request
Prototype: static int send_userauth_info_request(struct ssh *ssh)
Coverage:  0.000% (0/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-chall.c
Lines: 253-288
  0.000% (0/31)
287
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
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
sshbuf_get_string_direct
Name: sshbuf_get_string_direct
Prototype: int sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage:  89.474% (17/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 123-147
 89.474% (17/19)
287
sshbuf_new
Name: sshbuf_new
Prototype: struct sshbuf * sshbuf_new(void)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 68-85
 42.857% (3/7)
283
sshbuf_set_max_size
Name: sshbuf_set_max_size
Prototype: int sshbuf_set_max_size(struct sshbuf *buf, size_t max_size)
Coverage:  78.788% (26/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 214-250
 78.788% (26/33)
2810
RSA_set0_factors
Name: RSA_set0_factors
Prototype: int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 316-332
 56.250% (9/16)
294
_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
_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
check_authkeys_file
Name: check_authkeys_file
Prototype: static int check_authkeys_file(struct ssh *ssh, struct passwd *pw, FILE *f, char *file, struct sshkey *key, struct sshauthopt **authoptsp)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2-pubkey.c
Lines: 701-730
  0.000% (0/20)
296
cleanup_exit
Name: cleanup_exit
Prototype: void cleanup_exit(int i)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 2331-2353
  0.000% (0/18)
294
deserialise_identity2
Name: deserialise_identity2
Prototype: static int deserialise_identity2(struct sshbuf *ids, struct sshkey **keyp, char **commentp)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 202-223
  0.000% (0/13)
295
fingerprint_one_key
Name: fingerprint_one_key
Prototype: static void fingerprint_one_key(const struct sshkey *public, const char *comment)
Coverage:  61.538% (8/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 855-874
 61.538% (8/13)
293
handle_socket_read
Name: handle_socket_read
Prototype: static int handle_socket_read(u_int socknum)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 809-837
  0.000% (0/12)
294
hostkeys_find
Name: hostkeys_find
Prototype: static int hostkeys_find(struct hostkey_foreach_line *l, void *_ctx)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1815-1846
  0.000% (0/15)
295
ipv64_normalise_mapped
Name: ipv64_normalise_mapped
Prototype: void ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/canohost.c
Lines: 38-61
  0.000% (0/6)
292
kex_alg_list
Name: kex_alg_list
Prototype: char * kex_alg_list(char sep)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 109-129
 80.000% (8/10)
294
kex_c25519_hash
Name: kex_c25519_hash
Prototype: int kex_c25519_hash( int hash_alg, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const u_char client_dh_pub[32], const u_char server_dh_pub[32], const u_char *shared_secret, size_t secretlen, u_char *hash, size_t *hashlen)
Coverage:  45.714% (16/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c
Lines: 84-133
 45.714% (16/35)
295
kex_dh_hash
Name: kex_dh_hash
Prototype: int kex_dh_hash( int hash_alg, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const BIGNUM *client_dh_pub, const BIGNUM *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen)
Coverage:  45.714% (16/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdh.c
Lines: 46-95
 45.714% (16/35)
295
kex_ecdh_hash
Name: kex_ecdh_hash
Prototype: int kex_ecdh_hash( int hash_alg, const EC_GROUP *ec_group, const char *client_version_string, const char *server_version_string, const u_char *ckexinit, size_t ckexinitlen, const u_char *skexinit, size_t skexinitlen, const u_char *serverhostkeyblob, size_t sbloblen, const EC_POINT *client_dh_pub, const EC_POINT *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen)
Coverage:  45.714% (16/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdh.c
Lines: 49-99
 45.714% (16/35)
295
load_krl
Name: load_krl
Prototype: static void load_krl(const char *path, struct ssh_krl **krlp)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 2093-2111
  0.000% (0/15)
295
load_pkcs11_key
Name: load_pkcs11_key
Prototype: static struct sshkey * load_pkcs11_key(char *path)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1632-1660
  0.000% (0/13)
295
mac_alg_list
Name: mac_alg_list
Prototype: char * mac_alg_list(char sep)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 86-106
 80.000% (8/10)
294
mm_bsdauth_query
Name: mm_bsdauth_query
Prototype: int mm_bsdauth_query(void *ctx, char **name, char **infotxt, u_int *numprompts, char ***prompts, u_int **echo_on)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 806-842
  0.000% (0/13)
295
process_init
Name: process_init
Prototype: static void process_init(void)
Coverage:  0.000% (0/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 642-673
  0.000% (0/32)
294
replacearg
Name: replacearg
Prototype: void replacearg(arglist *args, u_int which, char *fmt, ...)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 884-902
  0.000% (0/7)
293
response
Name: response
Prototype: int response(void)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 1276-1312
  0.000% (0/24)
2910
snmprintf
Name: snmprintf
Prototype: int snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...)
Coverage:  60.000% (3/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/utf8.c
Lines: 240-256
 60.000% (3/5)
292
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_froms
Name: sshbuf_froms
Prototype: int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp)
Coverage:  52.941% (9/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 377-399
 52.941% (9/17)
295
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
sshkey_parse_private_fileblob_type
Name: sshkey_parse_private_fileblob_type
Prototype: int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, const char *passphrase, struct sshkey **keyp, char **commentp)
Coverage:  47.619% (10/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 4010-4050
 47.619% (10/21)
2910
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
uhash_update [umac.c #1]
Name: uhash_update [umac.c #1]
Prototype: static int uhash_update(uhash_ctx_t ctx, const u_char *input, long len)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 1045-1097
  0.000% (0/20)
297
uhash_update [umac.c #2]
Name: uhash_update [umac.c #2]
Prototype: static int uhash_update(uhash_ctx_t ctx, const u_char *input, long len)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 1045-1097
  0.000% (0/20)
297
uncompress_buffer
Name: uncompress_buffer
Prototype: static int uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 772-817
  0.000% (0/21)
2911
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
channel_post_mux_client_write
Name: channel_post_mux_client_write
Prototype: static void channel_post_mux_client_write(struct ssh *ssh, Channel *c, fd_set *readset, fd_set *writeset)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2223-2244
  0.000% (0/21)
305
check_ip_options
Name: check_ip_options
Prototype: static void check_ip_options(struct ssh *ssh)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 1355-1384
  0.000% (0/15)
305
choose_enc
Name: choose_enc
Prototype: static int choose_enc(struct sshenc *enc, char *client, char *server)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 698-717
 42.857% (3/7)
303
client_request_agent
Name: client_request_agent
Prototype: static Channel * client_request_agent(struct ssh *ssh, const char *request_type, int rchan)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1595-1619
  0.000% (0/10)
304
compress_buffer
Name: compress_buffer
Prototype: static int compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 726-770
  0.000% (0/22)
3010
do_nologin
Name: do_nologin
Prototype: static void do_nologin(struct passwd *pw)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1292-1322
  0.000% (0/16)
306
do_pwchange
Name: do_pwchange
Prototype: static void do_pwchange(Session *s)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 1463-1486
  0.000% (0/5)
302
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
mm_answer_term
Name: mm_answer_term
Prototype: int mm_answer_term(int sock, struct sshbuf *req)
Coverage:  0.000% (0/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 1556-1581
  0.000% (0/8)
303
print_progress
Name: print_progress
Prototype: static void print_progress(unsigned long start_lineno, unsigned long current_lineno, unsigned long end_lineno)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/moduli.c
Lines: 528-566
  0.000% (0/10)
304
record_hostkey
Name: record_hostkey
Prototype: static int record_hostkey(struct hostkey_foreach_line *l, void *_ctx)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 236-268
  0.000% (0/7)
303
revoked_blob_tree_RB_REMOVE_COLOR
Name: revoked_blob_tree_RB_REMOVE_COLOR
Prototype: static void revoked_blob_tree_RB_REMOVE_COLOR(struct revoked_blob_tree *head, struct revoked_blob *parent, struct revoked_blob *elm)
Coverage:  0.000% (0/138)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 81-81
  0.000% (0/138)
3038
revoked_key_id_tree_RB_REMOVE_COLOR
Name: revoked_key_id_tree_RB_REMOVE_COLOR
Prototype: static void revoked_key_id_tree_RB_REMOVE_COLOR(struct revoked_key_id_tree *head, struct revoked_key_id *parent, struct revoked_key_id *elm)
Coverage:  0.000% (0/138)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 71-71
  0.000% (0/138)
3038
revoked_serial_tree_RB_REMOVE_COLOR
Name: revoked_serial_tree_RB_REMOVE_COLOR
Prototype: static void revoked_serial_tree_RB_REMOVE_COLOR(struct revoked_serial_tree *head, struct revoked_serial *parent, struct revoked_serial *elm)
Coverage:  0.000% (0/138)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 62-62
  0.000% (0/138)
3038
ssh_init_stdio_forwarding
Name: ssh_init_stdio_forwarding
Prototype: static void ssh_init_stdio_forwarding(struct ssh *ssh)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh.c
Lines: 1643-1663
  0.000% (0/12)
304
ssh_krl_init
Name: ssh_krl_init
Prototype: struct ssh_krl * ssh_krl_init(void)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 131-143
  0.000% (0/4)
302
sshbuf_peek_string_direct
Name: sshbuf_peek_string_direct
Prototype: int sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage: 100.000% (22/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 149-178
100.000% (22/22)
308
sshkey_save_private_blob
Name: sshkey_save_private_blob
Prototype: static int sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 55-72
 42.857% (3/7)
303
Page:<>1
eLOC - Effective Lines of Code: 1
...9
eLOC - Effective Lines of Code: 12
10
eLOC - Effective Lines of Code: 15
11
eLOC - Effective Lines of Code: 18
12
eLOC - Effective Lines of Code: 22
1314
eLOC - Effective Lines of Code: 31
15
eLOC - Effective Lines of Code: 38
16
eLOC - Effective Lines of Code: 47
17
eLOC - Effective Lines of Code: 62
...20
eLOC - Effective Lines of Code: 224
21
eLOC - Effective Lines of Code: 1019

Generated by Squish Coco 4.2.2