OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 1
...10
eLOC - Effective Lines of Code: 15
11
eLOC - Effective Lines of Code: 18
12
eLOC - Effective Lines of Code: 22
13
eLOC - Effective Lines of Code: 26
1415
eLOC - Effective Lines of Code: 38
16
eLOC - Effective Lines of Code: 47
17
eLOC - Effective Lines of Code: 62
18
eLOC - Effective Lines of Code: 92
...20
eLOC - Effective Lines of Code: 224
21
eLOC - Effective Lines of Code: 1019
FunctionCondition %eLOC - Effective Lines of Codeā–“McCabe - Cyclomatic Complexity
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
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
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
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
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
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
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
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
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
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
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
rdynamic_connect_finish
Name: rdynamic_connect_finish
Prototype: static int rdynamic_connect_finish(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4475-4493
  0.000% (0/5)
312
write_host_entry
Name: write_host_entry
Prototype: static int write_host_entry(FILE *f, const char *host, const char *ip, const struct sshkey *key, int store_hash)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 412-441
  0.000% (0/15)
315
barrett_reduce
Name: barrett_reduce
Prototype: static void barrett_reduce(crypto_sign_ed25519_ref_sc25519 *r, const crypto_uint32 x[64])
Coverage: 100.000% (30/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 51-100
100.000% (30/30)
3212
chan_shutdown_read
Name: chan_shutdown_read
Prototype: static void chan_shutdown_read(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 390-414
  0.000% (0/15)
325
crypto_sign_ed25519
Name: crypto_sign_ed25519
Prototype: int crypto_sign_ed25519( unsigned char *sm,unsigned long long *smlen, const unsigned char *m,unsigned long long mlen, const unsigned char *sk )
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ed25519.c
Lines: 51-101
100.000% (13/13)
325
handle_conn_read
Name: handle_conn_read
Prototype: static int handle_conn_read(u_int socknum)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 839-861
  0.000% (0/15)
325
input_userauth_failure
Name: input_userauth_failure
Prototype: int input_userauth_failure(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 554-582
  0.000% (0/15)
325
mac_compute
Name: mac_compute
Prototype: int mac_compute(struct sshmac *mac, u_int32_t seqno, const u_char *data, int datalen, u_char *digest, size_t dlen)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mac.c
Lines: 166-210
  0.000% (0/27)
329
mm_request_receive
Name: mm_request_receive
Prototype: void mm_request_receive(int sock, struct sshbuf *m)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 139-161
  0.000% (0/16)
326
okname
Name: okname
Prototype: int okname(char *cp0)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/scp.c
Lines: 1362-1390
  0.000% (0/20)
3211
process_opendir
Name: process_opendir
Prototype: static void process_opendir(u_int32_t id)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 1004-1032
  0.000% (0/14)
325
ssh_packet_send_debug
Name: ssh_packet_send_debug
Prototype: void ssh_packet_send_debug(struct ssh *ssh, const char *fmt,...)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1771-1794
  0.000% (0/17)
323
ssh_tty_make_modes
Name: ssh_tty_make_modes
Prototype: void ssh_tty_make_modes(struct ssh *ssh, int fd, struct termios *tiop)
Coverage:  0.000% (0/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ttymodes.c
Lines: 278-336
  0.000% (0/29)
328
sshbuf_get_string
Name: sshbuf_get_string
Prototype: int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp)
Coverage:  90.909% (20/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 96-121
 90.909% (20/22)
328
sshkey_ec_validate_private
Name: sshkey_ec_validate_private
Prototype: int sshkey_ec_validate_private(const EC_KEY *key)
Coverage:  40.909% (9/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3309-3346
 40.909% (9/22)
328
channel_prepare_select
Name: channel_prepare_select
Prototype: void channel_prepare_select(struct ssh *ssh, fd_set **readsetp, fd_set **writesetp, int *maxfdp, u_int *nallocp, time_t *minwait_secs)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2444-2473
  0.000% (0/16)
334
cipher_alg_list
Name: cipher_alg_list
Prototype: char * cipher_alg_list(char sep, int auth_only)
Coverage:  66.667% (12/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 117-141
 66.667% (12/18)
336
conalloc
Name: conalloc
Prototype: static int conalloc(char *iname, char *oname, int keytype)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 361-399
  0.000% (0/13)
335
connect_local_xsocket_path
Name: connect_local_xsocket_path
Prototype: static int connect_local_xsocket_path(const char *pathname)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4605-4622
  0.000% (0/7)
333
dh_gen_key
Name: dh_gen_key
Prototype: int dh_gen_key(DH *dh, int need)
Coverage:  41.667% (10/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 270-297
 41.667% (10/24)
336
do_convert_to_ssh2
Name: do_convert_to_ssh2
Prototype: static void do_convert_to_ssh2(struct passwd *pw, struct sshkey *k)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 328-351
 50.000% (2/4)
332
handle_conn_write
Name: handle_conn_write
Prototype: static int handle_conn_write(u_int socknum)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 863-886
  0.000% (0/18)
336
help
Name: help
Prototype: static void help(void)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 275-311
  0.000% (0/1)
331
mm_answer_moduli
Name: mm_answer_moduli
Prototype: int mm_answer_moduli(int sock, struct sshbuf *m)
Coverage:  0.000% (0/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 567-606
  0.000% (0/29)
336
monotime_ts
Name: monotime_ts
Prototype: void monotime_ts(struct timespec *ts)
Coverage:  23.077% (3/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1270-1299
 23.077% (3/13)
335
parse_ls_flags
Name: parse_ls_flags
Prototype: static int parse_ls_flags(char **argv, int argc, int *lflag)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 484-535
  0.000% (0/23)
3312
pkcs11_open_session
Name: pkcs11_open_session
Prototype: static int pkcs11_open_session(struct pkcs11_provider *p, CK_ULONG slotidx, char *pin)
Coverage:  0.000% (0/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11.c
Lines: 366-399
  0.000% (0/24)
336
send_statvfs
Name: send_statvfs
Prototype: static void send_statvfs(u_int32_t id, struct statvfs *st)
Coverage:  0.000% (0/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-server.c
Lines: 610-638
  0.000% (0/35)
333
sigchld_handler
Name: sigchld_handler
Prototype: static void sigchld_handler(int sig)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 257-273
  0.000% (0/9)
333
ssh_add_identity_constrained
Name: ssh_add_identity_constrained
Prototype: int ssh_add_identity_constrained(int sock, const struct sshkey *key, const char *comment, u_int life, u_int confirm, u_int maxsign)
Coverage:  0.000% (0/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 423-471
  0.000% (0/44)
3318
ssh_packet_disconnect
Name: ssh_packet_disconnect
Prototype: void ssh_packet_disconnect(struct ssh *ssh, const char *fmt,...)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1859-1896
  0.000% (0/10)
334
ssh_packet_read_poll2_mux
Name: ssh_packet_read_poll2_mux
Prototype: static int ssh_packet_read_poll2_mux(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
Coverage:  0.000% (0/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1405-1441
  0.000% (0/30)
338
ssh_remove_identity
Name: ssh_remove_identity
Prototype: int ssh_remove_identity(int sock, struct sshkey *key)
Coverage:  0.000% (0/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfd.c
Lines: 477-511
  0.000% (0/26)
339
sshkey_size
Name: sshkey_size
Prototype: u_int sshkey_size(const struct sshkey *k)
Coverage:  47.619% (10/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 291-323
 47.619% (10/21)
3313
DH_set0_pqg
Name: DH_set0_pqg
Prototype: int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
Coverage:  52.632% (10/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 460-480
 52.632% (10/19)
345
RSA_set0_key
Name: RSA_set0_key
Prototype: int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
Coverage:  63.158% (12/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 241-261
 63.158% (12/19)
345
addr_cmp
Name: addr_cmp
Prototype: static int addr_cmp(const struct xaddr *a, const struct xaddr *b)
Coverage:  28.571% (8/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/addrmatch.c
Lines: 176-199
 28.571% (8/28)
349
blf_cbc_decrypt
Name: blf_cbc_decrypt
Prototype: void blf_cbc_decrypt(blf_ctx *c, u_int8_t *iva, u_int8_t *data, u_int32_t len)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 609-648
  0.000% (0/10)
344
check_key_in_hostfiles
Name: check_key_in_hostfiles
Prototype: HostStatus check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host, const char *sysfile, const char *userfile)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 459-502
  0.000% (0/23)
345
conread
Name: conread
Prototype: static void conread(int s)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 519-552
  0.000% (0/13)
346
crypto_verify_32
Name: crypto_verify_32
Prototype: int crypto_verify_32(const unsigned char *x,const unsigned char *y)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/verify.c
Lines: 12-49
100.000% (1/1)
341
do_convert_from_pem
Name: do_convert_from_pem
Prototype: static void do_convert_from_pem(struct sshkey **k, int *private)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 698-715
  0.000% (0/10)
344
kexgex_hash
Name: kexgex_hash
Prototype: int kexgex_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, int min, int wantbits, int max, const BIGNUM *prime, const BIGNUM *gen, const BIGNUM *client_dh_pub, const BIGNUM *server_dh_pub, const BIGNUM *shared_secret, u_char *hash, size_t *hashlen)
Coverage:  46.939% (23/49)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgex.c
Lines: 46-103
 46.939% (23/49)
345
read_mux
Name: read_mux
Prototype: static u_int read_mux(struct ssh *ssh, Channel *c, u_int need)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2160-2184
  0.000% (0/17)
345
sshkey_alg_list
Name: sshkey_alg_list
Prototype: char * sshkey_alg_list(int certs_only, int plain_only, int include_sigonly, char sep)
Coverage:  59.259% (16/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 226-252
 59.259% (16/27)
347
client_status_confirm
Name: client_status_confirm
Prototype: static void client_status_confirm(struct ssh *ssh, int type, Channel *c, void *ctx)
Coverage:  0.000% (0/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 665-726
  0.000% (0/45)
3511
do_print_resource_record
Name: do_print_resource_record
Prototype: static int do_print_resource_record(struct passwd *pw, char *fname, char *hname)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1435-1457
  0.000% (0/13)
355
getpwnamallow
Name: getpwnamallow
Prototype: struct passwd * getpwnamallow(const char *user)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth.c
Lines: 560-632
  0.000% (0/10)
354
kexdh_client
Name: kexdh_client
Prototype: int kexdh_client(struct ssh *ssh)
Coverage:  42.308% (11/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdhc.c
Lines: 56-105
 42.308% (11/26)
3511
lastlog_get_entry
Name: lastlog_get_entry
Prototype: int lastlog_get_entry(struct logininfo *li)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 1583-1617
  0.000% (0/11)
356
lastlog_write_entry
Name: lastlog_write_entry
Prototype: int lastlog_write_entry(struct logininfo *li)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 1530-1562
  0.000% (0/10)
355
send_pubkey_test
Name: send_pubkey_test
Prototype: static int send_pubkey_test(struct ssh *ssh, Authctxt *authctxt, Identity *id)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1340-1377
  0.000% (0/25)
355
ssh_dispatch_run
Name: ssh_dispatch_run
Prototype: int ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dispatch.c
Lines: 87-126
  0.000% (0/37)
3511
ssh_packet_set_log_preamble
Name: ssh_packet_set_log_preamble
Prototype: int ssh_packet_set_log_preamble(struct ssh *ssh, const char *fmt, ...)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 347-364
  0.000% (0/10)
353
ssh_packet_set_state
Name: ssh_packet_set_state
Prototype: int ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m)
Coverage:  45.833% (22/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2370-2417
 45.833% (22/48)
356
sshpkt_fatal
Name: sshpkt_fatal
Prototype: void sshpkt_fatal(struct ssh *ssh, const char *tag, int r)
Coverage:  0.000% (0/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1808-1851
  0.000% (0/26)
3512
update_card
Name: update_card
Prototype: static int update_card(int agent_fd, int add, const char *id, int qflag)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-add.c
Lines: 392-418
  0.000% (0/14)
355
channel_post_auth_listener
Name: channel_post_auth_listener
Prototype: static void channel_post_auth_listener(struct ssh *ssh, Channel *c, fd_set *readset, fd_set *writeset)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 1793-1820
  0.000% (0/15)
365
dh_new_group_asc
Name: dh_new_group_asc
Prototype: DH * dh_new_group_asc(const char *gen, const char *modulus)
Coverage:  38.462% (5/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 299-318
 38.462% (5/13)
365
identity_sign
Name: identity_sign
Prototype: static int identity_sign(struct identity *id, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat, const char *alg)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 1118-1160
  0.000% (0/27)
367
kexecdh_client
Name: kexecdh_client
Prototype: int kexecdh_client(struct ssh *ssh)
Coverage:  46.667% (7/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdhc.c
Lines: 54-94
 46.667% (7/15)
365
notify_setup
Name: notify_setup
Prototype: static void notify_setup(void)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 122-139
  0.000% (0/10)
363
oom_adjust_setup
Name: oom_adjust_setup
Prototype: void oom_adjust_setup(void)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/port-linux.c
Lines: 263-291
  0.000% (0/14)
365
parse_fwd_field
Name: parse_fwd_field
Prototype: static int parse_fwd_field(char **p, struct fwdarg *fwd)
Coverage:  0.000% (0/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/readconf.c
Lines: 2143-2197
  0.000% (0/38)
3613
permanently_set_uid
Name: permanently_set_uid
Prototype: void permanently_set_uid(struct passwd *pw)
Coverage:  0.000% (0/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/uidswap.c
Lines: 178-236
  0.000% (0/39)
369
pkcs11_rsa_wrap
Name: pkcs11_rsa_wrap
Prototype: static int pkcs11_rsa_wrap(struct pkcs11_provider *provider, CK_ULONG slotidx, CK_ATTRIBUTE *keyid_attrib, RSA *rsa)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-pkcs11.c
Lines: 314-345
  0.000% (0/16)
364
process_lock_agent
Name: process_lock_agent
Prototype: static void process_lock_agent(SocketEntry *e, int lock)
Coverage:  0.000% (0/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-agent.c
Lines: 481-531
  0.000% (0/30)
369
ssh_hmac_start
Name: ssh_hmac_start
Prototype: struct ssh_hmac_ctx * ssh_hmac_start(int alg)
Coverage:  40.000% (6/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 42-61
 40.000% (6/15)
365
ssh_packet_write_poll
Name: ssh_packet_write_poll
Prototype: int ssh_packet_write_poll(struct ssh *ssh)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1902-1924
  0.000% (0/20)
366
_rs_random_buf
Name: _rs_random_buf
Prototype: static __inline void _rs_random_buf(void *_buf, size_t n)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 177-196
100.000% (12/12)
374
chachapoly_crypt
Name: chachapoly_crypt
Prototype: int chachapoly_crypt(struct chachapoly_ctx *ctx, u_int seqnr, u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt)
Coverage:  78.571% (11/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher-chachapoly.c
Lines: 51-103
 78.571% (11/14)
376
channel_handler_init
Name: channel_handler_init
Prototype: static void channel_handler_init(struct ssh_channels *sc)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2306-2344
  0.000% (0/6)
372
channel_input_extended_data
Name: channel_input_extended_data
Prototype: int channel_input_extended_data(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3007-3058
  0.000% (0/35)
3711
choose_next_state
Name: choose_next_state
Prototype: static int choose_next_state(int current_state, u_int64_t contig, int final, u_int64_t last_gap, u_int64_t next_gap, int *force_new_section)
Coverage:  0.000% (0/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 478-552
  0.000% (0/35)
378
confree
Name: confree
Prototype: static void confree(int s)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 401-421
  0.000% (0/17)
375
kex_free_newkeys
Name: kex_free_newkeys
Prototype: void kex_free_newkeys(struct newkeys *newkeys)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 607-636
 84.615% (11/13)
375
keyprint_one
Name: keyprint_one
Prototype: static void keyprint_one(const char *host, struct sshkey *key)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 285-306
  0.000% (0/14)
374
known_hosts_find_delete
Name: known_hosts_find_delete
Prototype: static int known_hosts_find_delete(struct hostkey_foreach_line *l, void *_ctx)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1194-1250
  0.000% (0/37)
3711
prepare_options_buf
Name: prepare_options_buf
Prototype: static void prepare_options_buf(struct sshbuf *c, int which)
Coverage:  0.000% (0/51)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 1592-1630
  0.000% (0/51)
3711
server_request_direct_tcpip
Name: server_request_direct_tcpip
Prototype: static Channel * server_request_direct_tcpip(struct ssh *ssh, int *reason, const char **errmsg)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/serverloop.c
Lines: 458-492
  0.000% (0/15)
374
set_nodelay
Name: set_nodelay
Prototype: void set_nodelay(int fd)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 148-167
  0.000% (0/10)
374
set_nonblock
Name: set_nonblock
Prototype: int set_nonblock(int fd)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 91-113
  0.000% (0/10)
374
ssh_packet_connection_is_on_socket
Name: ssh_packet_connection_is_on_socket
Prototype: int ssh_packet_connection_is_on_socket(struct ssh *ssh)
Coverage:  13.333% (4/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 421-452
 13.333% (4/30)
378
__b64_ntop
Name: __b64_ntop
Prototype: int # 134 "base64.c" 3 4 __b64_ntop # 134 "base64.c" (u_char const *src,size_t srclength,char *target,size_t targsize)
Coverage:  73.913% (17/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/base64.c
Lines: 133-185
 73.913% (17/23)
388
auth_shadow_pwexpired
Name: auth_shadow_pwexpired
Prototype: int auth_shadow_pwexpired(Authctxt *ctxt)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-shadow.c
Lines: 87-140
  0.000% (0/22)
388
channel_open_message
Name: channel_open_message
Prototype: char * channel_open_message(struct ssh *ssh)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 807-867
  0.000% (0/42)
3828
decode_attrib
Name: decode_attrib
Prototype: int decode_attrib(struct sshbuf *b, Attrib *a)
Coverage:  0.000% (0/46)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-common.c
Lines: 104-150
  0.000% (0/46)
3814
host_hash
Name: host_hash
Prototype: char * host_hash(const char *host, const char *name_from_hostfile, u_int src_len)
Coverage:  45.455% (10/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 119-155
 45.455% (10/22)
385
permission_set_add
Name: permission_set_add
Prototype: static int permission_set_add(struct ssh *ssh, int who, int where, const char *host_to_connect, int port_to_connect, const char *listen_host, const char *listen_path, int listen_port, Channel *downstream)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 522-547
  0.000% (0/10)
382
Page:<>1
eLOC - Effective Lines of Code: 1
...10
eLOC - Effective Lines of Code: 15
11
eLOC - Effective Lines of Code: 18
12
eLOC - Effective Lines of Code: 22
13
eLOC - Effective Lines of Code: 26
1415
eLOC - Effective Lines of Code: 38
16
eLOC - Effective Lines of Code: 47
17
eLOC - Effective Lines of Code: 62
18
eLOC - Effective Lines of Code: 92
...20
eLOC - Effective Lines of Code: 224
21
eLOC - Effective Lines of Code: 1019

Generated by Squish Coco 4.2.2