OpenCoverage

OpenSSH Test Coverage

Functions

Page:<>1
McCabe - Cyclomatic Complexity: 331
...5
McCabe - Cyclomatic Complexity: 10
6
McCabe - Cyclomatic Complexity: 9
7
McCabe - Cyclomatic Complexity: 7
8
McCabe - Cyclomatic Complexity: 6
910
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
12
McCabe - Cyclomatic Complexity: 3
13
McCabe - Cyclomatic Complexity: 3
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1
FunctionCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexityâ–¾
pick_salt
Name: pick_salt
Prototype: static const char * pick_salt(void)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/xcrypt.c
Lines: 72-96
  0.000% (0/13)
405
peek_type_nid
Name: peek_type_nid
Prototype: static int peek_type_nid(const char *s, size_t l, int *nid)
Coverage:  94.118% (16/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1208-1224
 94.118% (16/17)
145
parse_server_config
Name: parse_server_config
Prototype: void parse_server_config(ServerOptions *options, const char *filename, struct sshbuf *conf, struct connection_info *connectinfo)
Coverage:  53.333% (8/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 2359-2382
 53.333% (8/15)
885
parse_ipqos
Name: parse_ipqos
Prototype: int parse_ipqos(const char *cp)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1442-1460
  0.000% (0/19)
175
parse_df_flags
Name: parse_df_flags
Prototype: static int parse_df_flags(const char *cmd, char **argv, int argc, int *hflag, int *iflag)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 537-562
  0.000% (0/9)
145
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
mysignal
Name: mysignal
Prototype: mysig_t mysignal(int sig, mysig_t act)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bsd-signal.c
Lines: 27-51
 53.846% (7/13)
395
mux_client_forwards
Name: mux_client_forwards
Prototype: static int mux_client_forwards(int fd, int cancel_flag)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 1873-1896
  0.000% (0/13)
155
msetlocale
Name: msetlocale
Prototype: void msetlocale(void)
Coverage:  36.842% (7/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/utf8.c
Lines: 310-340
 36.842% (7/19)
575
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
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_session_pty_cleanup2
Name: mm_session_pty_cleanup2
Prototype: void mm_session_pty_cleanup2(Session *s)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 605-627
  0.000% (0/15)
205
mm_bsdauth_respond
Name: mm_bsdauth_respond
Prototype: int mm_bsdauth_respond(void *ctx, u_int numresponses, char **responses)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor_wrap.c
Lines: 844-868
  0.000% (0/15)
185
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
mm_answer_authpassword
Name: mm_answer_authpassword
Prototype: int mm_answer_authpassword(int sock, struct sshbuf *m)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/monitor.c
Lines: 849-887
  0.000% (0/20)
225
maybe_add_key_to_agent
Name: maybe_add_key_to_agent
Prototype: void maybe_add_key_to_agent(char *authfile, const struct sshkey *private, char *comment, char *passphrase)
Coverage:  0.000% (0/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect.c
Lines: 1554-1581
  0.000% (0/16)
165
match_user
Name: match_user
Prototype: int match_user(const char *user, const char *host, const char *ipaddr, const char *pattern)
Coverage:  0.000% (0/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 221-248
  0.000% (0/37)
1365
match_host_and_ip
Name: match_host_and_ip
Prototype: int match_host_and_ip(const char *host, const char *ipaddr, const char *patterns)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 196-214
  0.000% (0/19)
185
login_init_entry
Name: login_init_entry
Prototype: int login_init_entry(struct logininfo *li, pid_t pid, const char *username, const char *hostname, const char *line)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/loginrec.c
Lines: 369-397
  0.000% (0/13)
175
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
load_identity
Name: load_identity
Prototype: static struct sshkey * load_identity(char *filename)
Coverage:  14.286% (2/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 299-320
 14.286% (2/14)
245
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
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
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
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
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_derive_keys
Name: kex_derive_keys
Prototype: int kex_derive_keys(struct ssh *ssh, u_char *hash, u_int hashlen, const struct sshbuf *shared_secret)
Coverage:  76.190% (16/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 991-1016
 76.190% (16/21)
175
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
input_userauth_service_accept
Name: input_userauth_service_accept
Prototype: int input_userauth_service_accept(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshconnect2.c
Lines: 419-449
  0.000% (0/12)
235
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
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
hostfile_read_key
Name: hostfile_read_key
Prototype: int hostfile_read_key(char **cpp, u_int *bitsp, struct sshkey *ret)
Coverage:  58.824% (10/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 162-184
 58.824% (10/17)
125
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
hexchar
Name: hexchar
Prototype: static int hexchar(const char *s)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 698-715
  0.000% (0/19)
115
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
ga_match_pattern_list
Name: ga_match_pattern_list
Prototype: int ga_match_pattern_list(const char *group_pattern)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/groupaccess.c
Lines: 100-116
  0.000% (0/10)
75
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
format_forward
Name: format_forward
Prototype: static char * format_forward(u_int ftype, struct Forward *fwd)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 551-585
  0.000% (0/9)
535
fingerprint_bubblebabble
Name: fingerprint_bubblebabble
Prototype: static char * fingerprint_bubblebabble(u_char *dgst_raw, size_t dgst_raw_len)
Coverage:  73.333% (11/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 985-1031
 73.333% (11/15)
445
exited_cleanly
Name: exited_cleanly
Prototype: int exited_cleanly(pid_t pid, const char *tag, const char *cmd, int quiet)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 1729-1749
  0.000% (0/13)
475
env_permitted
Name: env_permitted
Prototype: static int env_permitted(char *env)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/mux.c
Lines: 257-276
  0.000% (0/22)
485
enter_raw_mode
Name: enter_raw_mode
Prototype: void enter_raw_mode(int quiet)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshtty.c
Lines: 68-96
  0.000% (0/13)
1065
endian_convert [umac.c #2]
Name: endian_convert [umac.c #2]
Prototype: static void endian_convert(void *buf, UWORD bpw, UINT32 num_bytes)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #2
Lines: 552-573
  0.000% (0/13)
145
endian_convert [umac.c #1]
Name: endian_convert [umac.c #1]
Prototype: static void endian_convert(void *buf, UWORD bpw, UINT32 num_bytes)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/umac.c #1
Lines: 552-573
  0.000% (0/13)
145
dump_base64
Name: dump_base64
Prototype: void dump_base64(FILE *fp, const u_char *data, u_int len)
Coverage:  76.923% (10/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/uuencode.c
Lines: 75-95
 76.923% (10/13)
185
do_symlink
Name: do_symlink
Prototype: int do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 959-992
  0.000% (0/21)
255
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
do_login
Name: do_login
Prototype: void do_login(struct ssh *ssh, Session *s, const char *command)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 770-818
  0.000% (0/13)
245
do_host
Name: do_host
Prototype: static void do_host(char *host)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keyscan.c
Lines: 606-621
  0.000% (0/13)
115
do_hardlink
Name: do_hardlink
Prototype: int do_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 923-957
  0.000% (0/23)
265
do_fsync
Name: do_fsync
Prototype: int do_fsync(struct sftp_conn *conn, u_char *handle, u_int handle_len)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-client.c
Lines: 994-1023
  0.000% (0/21)
225
do_check_krl
Name: do_check_krl
Prototype: static void do_check_krl(struct passwd *pw, int argc, char **argv)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 2358-2384
  0.000% (0/13)
215
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
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
crypto_sign_ed25519_ref_sc25519_mul
Name: crypto_sign_ed25519_ref_sc25519_mul
Prototype: void crypto_sign_ed25519_ref_sc25519_mul(crypto_sign_ed25519_ref_sc25519 *r, const crypto_sign_ed25519_ref_sc25519 *x, const crypto_sign_ed25519_ref_sc25519 *y)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sc25519.c
Lines: 193-212
100.000% (12/12)
115
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
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
copy_environment_blacklist
Name: copy_environment_blacklist
Prototype: static void copy_environment_blacklist(char **source, char ***env, u_int *envsize, const char *blacklist)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/session.c
Lines: 977-1003
  0.000% (0/15)
265
connect_to_server
Name: connect_to_server
Prototype: static void connect_to_server(char *path, char **args, int *in, int *out)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp.c
Lines: 2265-2324
  0.000% (0/15)
1155
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
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
client_request_x11
Name: client_request_x11
Prototype: static Channel * client_request_x11(struct ssh *ssh, const char *request_type, int rchan)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 1559-1593
  0.000% (0/15)
475
client_global_request_reply
Name: client_global_request_reply
Prototype: static int client_global_request_reply(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/clientloop.c
Lines: 463-480
  0.000% (0/14)
185
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
check_key_not_revoked
Name: check_key_not_revoked
Prototype: static int check_key_not_revoked(struct hostkeys *hostkeys, struct sshkey *k)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hostfile.c
Lines: 307-324
  0.000% (0/15)
125
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
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_send_window_changes
Name: channel_send_window_changes
Prototype: void channel_send_window_changes(struct ssh *ssh)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4422-4445
  0.000% (0/25)
265
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
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
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
channel_input_ieof
Name: channel_input_ieof
Prototype: int channel_input_ieof(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 3060-3079
  0.000% (0/15)
115
channel_handle_efd_write
Name: channel_handle_efd_write
Prototype: static int channel_handle_efd_write(struct ssh *ssh, Channel *c, fd_set *readset, fd_set *writeset)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 2040-2067
  0.000% (0/22)
425
channel_connect_by_listen_address
Name: channel_connect_by_listen_address
Prototype: Channel * channel_connect_by_listen_address(struct ssh *ssh, const char *listen_host, u_short listen_port, char *ctype, char *rname)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/channels.c
Lines: 4272-4298
  0.000% (0/13)
235
chan_shutdown_write
Name: chan_shutdown_write
Prototype: static void chan_shutdown_write(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 369-388
  0.000% (0/13)
255
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
chan_send_eow2
Name: chan_send_eow2
Prototype: static void chan_send_eow2(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 226-247
  0.000% (0/21)
165
chan_send_eof2
Name: chan_send_eof2
Prototype: static void chan_send_eof2(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 178-200
  0.000% (0/14)
155
chan_send_close2
Name: chan_send_close2
Prototype: static void chan_send_close2(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 202-224
  0.000% (0/19)
165
chan_ibuf_empty
Name: chan_ibuf_empty
Prototype: void chan_ibuf_empty(struct ssh *ssh, Channel *c)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/nchan.c
Lines: 123-143
  0.000% (0/10)
135
cert_compare
Name: cert_compare
Prototype: static int cert_compare(struct sshkey_cert *a, struct sshkey_cert *b)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 616-629
  0.000% (0/17)
225
buffer_get_bignum_bits
Name: buffer_get_bignum_bits
Prototype: static void buffer_get_bignum_bits(struct sshbuf *b, BIGNUM *value)
Coverage:  38.462% (5/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 424-440
 38.462% (5/13)
145
blob_section
Name: blob_section
Prototype: static int blob_section(struct sshbuf *sect, struct revoked_blob_tree *target_tree, size_t expected_len)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/krl.c
Lines: 958-980
  0.000% (0/15)
185
bcrypt_hash
Name: bcrypt_hash
Prototype: static void bcrypt_hash(u_int8_t *sha2pass, u_int8_t *sha2salt, u_int8_t *out)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/bcrypt_pbkdf.c
Lines: 69-108
100.000% (13/13)
265
auth_shadow_acctexpired
Name: auth_shadow_acctexpired
Prototype: int auth_shadow_acctexpired(struct spwd *spw)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-shadow.c
Lines: 55-81
  0.000% (0/13)
235
auth2_update_methods_lists
Name: auth2_update_methods_lists
Prototype: int auth2_update_methods_lists(Authctxt *authctxt, const char *method, const char *submethod)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 645-668
  0.000% (0/13)
155
auth2_setup_methods_lists
Name: auth2_setup_methods_lists
Prototype: int auth2_setup_methods_lists(Authctxt *authctxt)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 556-585
  0.000% (0/13)
225
auth2_record_key
Name: auth2_record_key
Prototype: void auth2_record_key(Authctxt *authctxt, int authenticated, const struct sshkey *key)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 702-728
  0.000% (0/15)
195
auth2_read_banner
Name: auth2_read_banner
Prototype: char * auth2_read_banner(void)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth2.c
Lines: 107-138
  0.000% (0/15)
455
attrib_to_stat
Name: attrib_to_stat
Prototype: void attrib_to_stat(const Attrib *a, struct stat *st)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sftp-common.c
Lines: 84-101
  0.000% (0/13)
195
a2tun
Name: a2tun
Prototype: int a2tun(const char *s, int *remote)
Coverage:  0.000% (0/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 344-373
  0.000% (0/21)
745
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
RSA_set0_crt_params
Name: RSA_set0_crt_params
Prototype: int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 279-301
 56.522% (13/23)
445
DSA_set0_pqg
Name: DSA_set0_pqg
Prototype: int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 172-193
 56.522% (13/23)
435
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
Blowfish_expandstate
Name: Blowfish_expandstate
Prototype: void Blowfish_expandstate(blf_ctx *c, const u_int8_t *data, u_int16_t databytes, const u_int8_t *key, u_int16_t keybytes)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 461-502
100.000% (13/13)
265
Blowfish_expand0state
Name: Blowfish_expand0state
Prototype: void Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/blowfish.c
Lines: 423-458
100.000% (13/13)
225
Page:<>1
McCabe - Cyclomatic Complexity: 331
...5
McCabe - Cyclomatic Complexity: 10
6
McCabe - Cyclomatic Complexity: 9
7
McCabe - Cyclomatic Complexity: 7
8
McCabe - Cyclomatic Complexity: 6
910
McCabe - Cyclomatic Complexity: 4
11
McCabe - Cyclomatic Complexity: 4
12
McCabe - Cyclomatic Complexity: 3
13
McCabe - Cyclomatic Complexity: 3
...20
McCabe - Cyclomatic Complexity: 1
21
McCabe - Cyclomatic Complexity: 1

Generated by Squish Coco 4.2.2