OpenCoverage

OpenSSH Test Coverage

Function Tree

Page:<>1
Condition %: 100.000% (1/1)
2
Condition %: 100.000% (1/1)
3
Condition %:  80.000% (8/10)
45
Condition %:  45.455% (5/11)
6
Condition %:  26.374% (24/91)
7
Condition %:  0.000% (0/1)
8
Condition %:  0.000% (0/33)
...10
Condition %:  0.000% (0/9)
...20
Condition %:  0.000% (0/19)
21
Condition %:  0.000% (0/1)
FunctionCondition %▾eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
to_blob
Name: to_blob
Prototype: static int to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain, enum sshkey_serialize_rep opts)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 856-886
 56.522% (13/23)
429
sshkey_sign
Name: sshkey_sign
Prototype: int sshkey_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg, u_int compat)
Coverage:  56.522% (13/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2393-2429
 56.522% (13/23)
2013
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
ssh_add_hostkey
Name: ssh_add_hostkey
Prototype: int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 175-207
 56.250% (9/16)
545
ecdsa_generate_private_key
Name: ecdsa_generate_private_key
Prototype: static int ecdsa_generate_private_key(u_int bits, int *nid, EC_KEY **ecdsap)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1583-1609
 56.250% (9/16)
396
dsa_generate_private_key
Name: dsa_generate_private_key
Prototype: static int dsa_generate_private_key(u_int bits, DSA **dsap)
Coverage:  56.250% (9/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1504-1530
 56.250% (9/16)
476
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
ssh_remote_ipaddr
Name: ssh_remote_ipaddr
Prototype: const char * ssh_remote_ipaddr(struct ssh *ssh)
Coverage:  56.000% (14/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 514-535
 56.000% (14/25)
795
ssh_hmac_init
Name: ssh_hmac_init
Prototype: int ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen)
Coverage:  56.000% (14/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 63-90
 56.000% (14/25)
219
sshkey_fingerprint_raw
Name: sshkey_fingerprint_raw
Prototype: int sshkey_fingerprint_raw(const struct sshkey *k, int dgst_alg, u_char **retp, size_t *lenp)
Coverage:  55.172% (16/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 900-941
 55.172% (16/29)
5811
sshkey_equal_public
Name: sshkey_equal_public
Prototype: int sshkey_equal_public(const struct sshkey *a, const struct sshkey *b)
Coverage:  54.545% (36/66)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 635-710
 54.545% (36/66)
10316
ssh_packet_type_is_kex
Name: ssh_packet_type_is_kex
Prototype: static int ssh_packet_type_is_kex(u_char type)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 1185-1194
 54.545% (6/11)
61
_ssh_host_public_key
Name: _ssh_host_public_key
Prototype: struct sshkey * _ssh_host_public_key(int type, int nid, struct ssh *ssh)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 437-450
 54.545% (6/11)
153
_ssh_host_private_key
Name: _ssh_host_private_key
Prototype: struct sshkey * _ssh_host_private_key(int type, int nid, struct ssh *ssh)
Coverage:  54.545% (6/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh_api.c
Lines: 452-465
 54.545% (6/11)
153
sshbuf_b64tod
Name: sshbuf_b64tod
Prototype: int sshbuf_b64tod(struct sshbuf *buf, const char *b64)
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 113-137
 53.846% (7/13)
245
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
to_blob_buf
Name: to_blob_buf
Prototype: static int to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain, enum sshkey_serialize_rep opts)
Coverage:  53.333% (40/75)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 724-820
 53.333% (40/75)
7223
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
fill_default_server_options
Name: fill_default_server_options
Prototype: void fill_default_server_options(ServerOptions *options)
Coverage:  53.160% (143/269)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 258-460
 53.160% (143/269)
40485
sshkey_to_base64
Name: sshkey_to_base64
Prototype: int sshkey_to_base64(const struct sshkey *key, char **b64p)
Coverage:  52.941% (9/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1390-1417
 52.941% (9/17)
437
sshkey_load_cert
Name: sshkey_load_cert
Prototype: int sshkey_load_cert(const char *filename, struct sshkey **keyp)
Coverage:  52.941% (9/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 357-385
 52.941% (9/17)
447
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
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
sshkey_parse_private_pem_fileblob
Name: sshkey_parse_private_pem_fileblob
Prototype: static int sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type, const char *passphrase, struct sshkey **keyp)
Coverage:  52.308% (34/65)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3916-4007
 52.308% (34/65)
12516
dh_pub_is_valid
Name: dh_pub_is_valid
Prototype: int dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub)
Coverage:  52.174% (12/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/dh.c
Lines: 222-268
 52.174% (12/23)
448
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
derive_key
Name: derive_key
Prototype: static int derive_key(struct ssh *ssh, int id, u_int need, u_char *hash, u_int hashlen, const struct sshbuf *shared_secret, u_char **keyp)
Coverage:  51.429% (18/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 927-988
 51.429% (18/35)
657
ssh_ed25519_sign
Name: ssh_ed25519_sign
Prototype: int ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat)
Coverage:  51.111% (23/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ed25519.c
Lines: 35-92
 51.111% (23/45)
7713
xrecallocarray
Name: xrecallocarray
Prototype: void * xrecallocarray(void *ptr, size_t onmemb, size_t nmemb, size_t size)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 80-90
 50.000% (2/4)
82
xreallocarray
Name: xreallocarray
Prototype: void * xreallocarray(void *ptr, size_t nmemb, size_t size)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/xmalloc.c
Lines: 68-78
 50.000% (2/4)
82
sshpkt_send
Name: sshpkt_send
Prototype: int sshpkt_send(struct ssh *ssh)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2648-2654
 50.000% (3/6)
32
sshpkt_get_end
Name: sshpkt_get_end
Prototype: int sshpkt_get_end(struct ssh *ssh)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2555-2561
 50.000% (2/4)
32
sshkey_type_is_valid_ca
Name: sshkey_type_is_valid_ca
Prototype: static int sshkey_type_is_valid_ca(int type)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 325-338
 50.000% (4/8)
37
sshkey_set_filename
Name: sshkey_set_filename
Prototype: int sshkey_set_filename(struct sshkey *k, const char *filename)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 4143-4149
 50.000% (2/4)
52
sshkey_is_cert
Name: sshkey_is_cert
Prototype: int sshkey_is_cert(const struct sshkey *k)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 340-346
 50.000% (2/4)
52
sshkey_from_blob
Name: sshkey_from_blob
Prototype: int sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2271-2282
 50.000% (2/4)
92
sshkey_format_text
Name: sshkey_format_text
Prototype: int sshkey_format_text(const struct sshkey *key, struct sshbuf *b)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1419-1434
 50.000% (4/8)
144
sshkey_equal
Name: sshkey_equal
Prototype: int sshkey_equal(const struct sshkey *a, const struct sshkey *b)
Coverage:  50.000% (7/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 712-722
 50.000% (7/14)
144
sshkey_ecdsa_bits_to_nid
Name: sshkey_ecdsa_bits_to_nid
Prototype: int sshkey_ecdsa_bits_to_nid(int bits)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 402-417
 50.000% (4/8)
175
sshbuf_set_parent
Name: sshbuf_set_parent
Prototype: int sshbuf_set_parent(struct sshbuf *child, struct sshbuf *parent)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 104-115
 50.000% (3/6)
72
sshbuf_put_u8
Name: sshbuf_put_u8
Prototype: int sshbuf_put_u8(struct sshbuf *buf, u_char val)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 335-345
 50.000% (2/4)
62
sshbuf_ptr
Name: sshbuf_ptr
Prototype: const u_char * sshbuf_ptr(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 268-274
 50.000% (2/4)
72
sshbuf_len
Name: sshbuf_len
Prototype: size_t sshbuf_len(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 252-258
 50.000% (2/4)
32
sshbuf_get_stringb
Name: sshbuf_get_stringb
Prototype: int sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 215-233
 50.000% (5/10)
172
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_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_check_sanity
Name: sshbuf_check_sanity
Prototype: static inline int sshbuf_check_sanity(const struct sshbuf *buf)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 31-50
 50.000% (2/4)
252
ssh_packet_set_postauth
Name: ssh_packet_set_postauth
Prototype: static int ssh_packet_set_postauth(struct ssh *ssh)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2147-2159
 50.000% (2/4)
72
ssh_packet_get_state
Name: ssh_packet_get_state
Prototype: int ssh_packet_get_state(struct ssh *ssh, struct sshbuf *m)
Coverage:  50.000% (16/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2230-2254
 50.000% (16/32)
192
ssh_digest_update
Name: ssh_digest_update
Prototype: int ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/digest-openssl.c
Lines: 143-149
 50.000% (2/4)
32
ssh_clear_newkeys
Name: ssh_clear_newkeys
Prototype: void ssh_clear_newkeys(struct ssh *ssh, int mode)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 819-826
 50.000% (3/6)
72
kexc25519_shared_key
Name: kexc25519_shared_key
Prototype: int kexc25519_shared_key(const u_char key[32], const u_char pub[32], struct sshbuf *out)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519.c
Lines: 62-82
 50.000% (2/4)
102
kexc25519_client
Name: kexc25519_client
Prototype: int kexc25519_client(struct ssh *ssh)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519c.c
Lines: 49-69
 50.000% (4/8)
112
kex_to_blob
Name: kex_to_blob
Prototype: static int kex_to_blob(struct sshbuf *m, struct kex *kex)
Coverage:  50.000% (12/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 2164-2183
 50.000% (12/24)
152
kex_buf2prop
Name: kex_buf2prop
Prototype: int kex_buf2prop(struct sshbuf *raw, int *first_kex_follows, char ***propp)
Coverage:  50.000% (15/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 324-363
 50.000% (15/30)
5410
filter_list
Name: filter_list
Prototype: static char * filter_list(const char *proposal, const char *filter, int blacklist)
Coverage:  50.000% (15/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Lines: 303-330
 50.000% (15/30)
1316
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
default_key_sign
Name: default_key_sign
Prototype: static int default_key_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg, u_int compat, void *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2665-2673
 50.000% (2/4)
52
crypto_hash_sha512
Name: crypto_hash_sha512
Prototype: int crypto_hash_sha512(unsigned char *out, const unsigned char *in, unsigned long long inlen)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hash.c
Lines: 17-27
 50.000% (2/4)
52
convert_libcrypto_error
Name: convert_libcrypto_error
Prototype: static int convert_libcrypto_error(void)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3903-3914
 50.000% (2/4)
42
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
cipher_warning_message
Name: cipher_warning_message
Prototype: const char * cipher_warning_message(const struct sshcipher_ctx *cc)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher.c
Lines: 226-233
 50.000% (3/6)
172
chachapoly_init
Name: chachapoly_init
Prototype: int chachapoly_init(struct chachapoly_ctx *ctx, const u_char *key, u_int keylen)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/cipher-chachapoly.c
Lines: 31-40
 50.000% (2/4)
52
array_append
Name: array_append
Prototype: static void array_append(const char *file, const int line, const char *directive, char ***array, u_int *lp, const char *s)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/servconf.c
Lines: 223-234
 50.000% (2/4)
52
arc4random_uniform
Name: arc4random_uniform
Prototype: u_int32_t arc4random_uniform(u_int32_t upper_bound)
Coverage:  50.000% (4/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 291-315
 50.000% (4/8)
94
addr_hostmask
Name: addr_hostmask
Prototype: static int addr_hostmask(int af, u_int l, struct xaddr *n)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/addrmatch.c
Lines: 258-264
 50.000% (3/6)
32
accumulate_host_timing_secret
Name: accumulate_host_timing_secret
Prototype: static void accumulate_host_timing_secret(struct sshbuf *server_cfg, const struct sshkey *key)
Coverage:  50.000% (12/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 1426-1461
 50.000% (12/24)
418
a2port
Name: a2port
Prototype: int a2port(const char *s)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 332-342
 50.000% (2/4)
82
_rs_init
Name: _rs_init
Prototype: static __inline void _rs_init(u_char *buf, size_t n)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/arc4random.c
Lines: 75-82
 50.000% (2/4)
42
RSA_get0_crt_params
Name: RSA_get0_crt_params
Prototype: void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 265-275
 50.000% (5/10)
124
EVP_MD_CTX_free
Name: EVP_MD_CTX_free
Prototype: void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 624-633
 50.000% (2/4)
62
ECDSA_SIG_set0
Name: ECDSA_SIG_set0
Prototype: int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 432-443
 50.000% (3/6)
132
DSA_SIG_set0
Name: DSA_SIG_set0
Prototype: int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 405-417
 50.000% (3/6)
132
DH_set_length
Name: DH_set_length
Prototype: int DH_set_length(DH *dh, long length)
Coverage:  50.000% (3/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/libressl-api-compat.c
Lines: 512-520
 50.000% (3/6)
42
kex_input_kexinit
Name: kex_input_kexinit
Prototype: int kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  48.649% (18/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kex.c
Lines: 528-578
 48.649% (18/37)
5812
do_convert_from
Name: do_convert_from
Prototype: static void do_convert_from(struct passwd *pw)
Coverage:  48.571% (17/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-keygen.c
Lines: 717-774
 48.571% (17/35)
11215
ssh_rsa_sign
Name: ssh_rsa_sign
Prototype: int ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg_ident)
Coverage:  48.485% (32/66)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 163-242
 48.485% (32/66)
10619
openssh_RSA_verify
Name: openssh_RSA_verify
Prototype: static int openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, u_char *sigbuf, size_t siglen, RSA *rsa)
Coverage:  48.485% (16/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-rsa.c
Lines: 402-448
 48.485% (16/33)
489
sshkey_read
Name: sshkey_read
Prototype: int sshkey_read(struct sshkey *ret, char **cpp)
Coverage:  48.352% (44/91)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1227-1387
 48.352% (44/91)
16834
strdelim_internal
Name: strdelim_internal
Prototype: static char * strdelim_internal(char **s, int split_equals)
Coverage:  48.000% (12/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/misc.c
Lines: 241-280
 48.000% (12/25)
977
ssh_ecdsa_sign
Name: ssh_ecdsa_sign
Prototype: int ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat)
Coverage:  48.000% (24/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-ecdsa.c
Lines: 49-110
 48.000% (24/50)
8914
ssh_dss_sign
Name: ssh_dss_sign
Prototype: int ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, u_int compat)
Coverage:  47.826% (22/46)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/ssh-dss.c
Lines: 51-117
 47.826% (22/46)
9914
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
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
input_kex_ecdh_reply
Name: input_kex_ecdh_reply
Prototype: static int input_kex_ecdh_reply(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  47.541% (29/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexecdhc.c
Lines: 96-220
 47.541% (29/61)
13717
input_kex_dh
Name: input_kex_dh
Prototype: static int input_kex_dh(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  47.541% (29/61)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdhc.c
Lines: 107-223
 47.541% (29/61)
13017
input_kex_c25519_reply
Name: input_kex_c25519_reply
Prototype: static int input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  47.059% (24/51)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexc25519c.c
Lines: 71-169
 47.059% (24/51)
9815
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
input_kex_dh_gex_reply
Name: input_kex_dh_gex_reply
Prototype: static int input_kex_dh_gex_reply(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  46.875% (30/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexc.c
Lines: 147-269
 46.875% (30/64)
14018
ssh_packet_set_connection
Name: ssh_packet_set_connection
Prototype: struct ssh * ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out)
Coverage:  46.667% (7/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/packet.c
Lines: 282-317
 46.667% (7/15)
545
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
input_kex_dh_gex_request
Name: input_kex_dh_gex_request
Prototype: static int input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  46.667% (21/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c
Lines: 71-123
 46.667% (21/45)
457
ssh_hmac_final
Name: ssh_hmac_final
Prototype: int ssh_hmac_final(struct ssh_hmac_ctx *ctx, u_char *d, size_t dlen)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/hmac.c
Lines: 104-119
 46.154% (6/13)
103
input_kex_dh_init
Name: input_kex_dh_init
Prototype: int input_kex_dh_init(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  46.032% (29/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexdhs.c
Lines: 95-221
 46.032% (29/63)
13517
input_kex_dh_gex_init
Name: input_kex_dh_gex_init
Prototype: static int input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh)
Coverage:  46.032% (29/63)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/kexgexs.c
Lines: 125-254
 46.032% (29/63)
14117
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
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
Page:<>1
Condition %: 100.000% (1/1)
2
Condition %: 100.000% (1/1)
3
Condition %:  80.000% (8/10)
45
Condition %:  45.455% (5/11)
6
Condition %:  26.374% (24/91)
7
Condition %:  0.000% (0/1)
8
Condition %:  0.000% (0/33)
...10
Condition %:  0.000% (0/9)
...20
Condition %:  0.000% (0/19)
21
Condition %:  0.000% (0/1)

Generated by Squish Coco 4.2.2