OpenCoverage

OpenSSH Test Coverage

Functions

Page:<>1
eLOC - Effective Lines of Code: 3096
...4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
6
eLOC - Effective Lines of Code: 48
7
eLOC - Effective Lines of Code: 39
89
eLOC - Effective Lines of Code: 26
10
eLOC - Effective Lines of Code: 22
11
eLOC - Effective Lines of Code: 19
12
eLOC - Effective Lines of Code: 16
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
process_realpath
Name: process_realpath
Prototype: static void process_realpath(u_int32_t id)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1145-1170
  0.000% (0/11)
314
nh_aux [umac.c #2]
Name: nh_aux [umac.c #2]
Prototype: static void nh_aux(void *kp, const void *dp, void *hp, UINT32 dlen)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 467-527
  0.000% (0/4)
312
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
fingerprint_private
Name: fingerprint_private
Prototype: static void fingerprint_private(const char *path)
Coverage:  30.000% (3/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 876-898
 30.000% (3/10)
314
crypto_sign_ed25519_ref_unpackneg_vartime
Name: crypto_sign_ed25519_ref_unpackneg_vartime
Prototype: int crypto_sign_ed25519_ref_unpackneg_vartime(crypto_sign_ed25519_ref_ge25519 *r, const unsigned char p[32])
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 196-241
100.000% (10/10)
314
crypto_sign_ed25519_ref_double_scalarmult_vartime
Name: crypto_sign_ed25519_ref_double_scalarmult_vartime
Prototype: void crypto_sign_ed25519_ref_double_scalarmult_vartime(crypto_sign_ed25519_ref_ge25519 *r, const crypto_sign_ed25519_ref_ge25519 *p1, const crypto_sign_ed25519_ref_sc25519 *s1, const crypto_sign_ed25519_ref_ge25519 *p2, const crypto_sign_ed25519_ref_sc25519 *s2)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ge25519.c
Lines: 262-304
100.000% (10/10)
314
connect_to
Name: connect_to
Prototype: static Channel * connect_to(struct ssh *ssh, const char *host, int port, char *ctype, char *rname)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4244-4266
  0.000% (0/4)
312
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
cipher_get_keyiv
Name: cipher_get_keyiv
Prototype: int cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, size_t len)
Coverage:  8.824% (3/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 448-491
  8.824% (3/34)
3112
auth2_record_info
Name: auth2_record_info
Prototype: void auth2_record_info(Authctxt *authctxt, const char *fmt, ...)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 680-695
  0.000% (0/6)
312
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
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
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
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
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
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
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_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
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
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
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
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_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_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
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
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
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
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
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
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
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
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
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
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_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
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_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_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
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
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
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
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
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
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
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
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
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
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_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_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
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
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
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
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
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
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
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
_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
_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_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
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
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_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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_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_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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Page:<>1
eLOC - Effective Lines of Code: 3096
...4
eLOC - Effective Lines of Code: 95
5
eLOC - Effective Lines of Code: 63
6
eLOC - Effective Lines of Code: 48
7
eLOC - Effective Lines of Code: 39
89
eLOC - Effective Lines of Code: 26
10
eLOC - Effective Lines of Code: 22
11
eLOC - Effective Lines of Code: 19
12
eLOC - Effective Lines of Code: 16
...20
eLOC - Effective Lines of Code: 1
21
eLOC - Effective Lines of Code: 1

Generated by Squish Coco 4.2.2