OpenCoverage

OpenSSH Test Coverage

Functions

Page:<>1
Function: BSDgetopt
...10
Function: load_hostkeys
...14
Function: read_passphrase
15
Function: send_statvfs
16
Function: ssh2_capable
17
Function: ssh_packet_get_ecpoint
1819
Function: sshkey_is_cert
20
Function: subprocess
21
Function: xasprintf
Functionâ–´Condition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
sshauthopt_parse
Name: sshauthopt_parse
Prototype: struct sshauthopt * sshauthopt_parse(const char *opts, const char **errstrp)
Coverage:  0.000% (0/152)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 383-536
  0.000% (0/152)
21246
sshauthopt_serialise
Name: sshauthopt_serialise
Prototype: int sshauthopt_serialise(const struct sshauthopt *opts, struct sshbuf *m, int untrusted)
Coverage:  0.000% (0/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/auth-options.c
Lines: 826-871
  0.000% (0/39)
395
sshbuf_alloc
Name: sshbuf_alloc
Prototype: size_t sshbuf_alloc(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 196-200
100.000% (1/1)
11
sshbuf_allocate
Name: sshbuf_allocate
Prototype: int sshbuf_allocate(struct sshbuf *buf, size_t len)
Coverage:  75.000% (12/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 300-341
 75.000% (12/16)
216
sshbuf_avail
Name: sshbuf_avail
Prototype: size_t sshbuf_avail(const struct sshbuf *buf)
Coverage:  75.000% (6/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 260-266
 75.000% (6/8)
32
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
sshbuf_check_reserve
Name: sshbuf_check_reserve
Prototype: int sshbuf_check_reserve(const struct sshbuf *buf, size_t len)
Coverage:  78.571% (11/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 284-298
 78.571% (11/14)
84
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
sshbuf_consume
Name: sshbuf_consume
Prototype: int sshbuf_consume(struct sshbuf *buf, size_t len)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 363-381
 84.615% (11/13)
115
sshbuf_consume_end
Name: sshbuf_consume_end
Prototype: int sshbuf_consume_end(struct sshbuf *buf, size_t len)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 383-398
 80.000% (8/10)
94
sshbuf_dtob16
Name: sshbuf_dtob16
Prototype: char * sshbuf_dtob16(struct sshbuf *buf)
Coverage:  33.333% (7/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 72-90
 33.333% (7/21)
535
sshbuf_dtob64
Name: sshbuf_dtob64
Prototype: char * sshbuf_dtob64(struct sshbuf *buf)
Coverage:  23.810% (5/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 92-111
 23.810% (5/21)
625
sshbuf_dump
Name: sshbuf_dump
Prototype: void sshbuf_dump(struct sshbuf *buf, FILE *f)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 65-70
100.000% (1/1)
21
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
sshbuf_dup_string
Name: sshbuf_dup_string
Prototype: char * sshbuf_dup_string(struct sshbuf *buf)
Coverage:  75.000% (15/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-misc.c
Lines: 139-160
 75.000% (15/20)
416
sshbuf_free
Name: sshbuf_free
Prototype: void sshbuf_free(struct sshbuf *buf)
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 133-166
 84.615% (11/13)
205
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_fromb
Name: sshbuf_fromb
Prototype: struct sshbuf * sshbuf_fromb(struct sshbuf *buf)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 117-131
 40.000% (4/10)
234
sshbuf_froms
Name: sshbuf_froms
Prototype: int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp)
Coverage:  52.941% (9/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 377-399
 52.941% (9/17)
295
sshbuf_get
Name: sshbuf_get
Prototype: int sshbuf_get(struct sshbuf *buf, void *v, size_t len)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 31-42
 88.889% (8/9)
113
sshbuf_get_bignum1
Name: sshbuf_get_bignum1
Prototype: int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v)
Coverage:  61.111% (11/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 48-72
 61.111% (11/18)
226
sshbuf_get_bignum2
Name: sshbuf_get_bignum2
Prototype: int sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM *v)
Coverage:  66.667% (6/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 34-46
 66.667% (6/9)
143
sshbuf_get_bignum2_bytes_direct
Name: sshbuf_get_bignum2_bytes_direct
Prototype: int sshbuf_get_bignum2_bytes_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage:  76.667% (23/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 430-464
 76.667% (23/30)
258
sshbuf_get_cstring
Name: sshbuf_get_cstring
Prototype: int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp)
Coverage:  81.250% (26/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 180-213
 81.250% (26/32)
4910
sshbuf_get_ec
Name: sshbuf_get_ec
Prototype: int sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 89-108
 80.000% (8/10)
184
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_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
sshbuf_get_string_direct
Name: sshbuf_get_string_direct
Prototype: int sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp)
Coverage:  89.474% (17/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 123-147
 89.474% (17/19)
287
sshbuf_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_u16
Name: sshbuf_get_u16
Prototype: int sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 70-81
 85.714% (6/7)
93
sshbuf_get_u32
Name: sshbuf_get_u32
Prototype: int sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 57-68
100.000% (7/7)
93
sshbuf_get_u64
Name: sshbuf_get_u64
Prototype: int sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 44-55
 85.714% (6/7)
93
sshbuf_get_u8
Name: sshbuf_get_u8
Prototype: int sshbuf_get_u8(struct sshbuf *buf, u_char *valp)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 83-94
100.000% (7/7)
93
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_max_size
Name: sshbuf_max_size
Prototype: size_t sshbuf_max_size(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 190-194
100.000% (1/1)
11
sshbuf_maybe_pack
Name: sshbuf_maybe_pack
Prototype: static void sshbuf_maybe_pack(struct sshbuf *buf, int force)
Coverage:  80.000% (12/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 52-66
 80.000% (12/15)
73
sshbuf_mutable_ptr
Name: sshbuf_mutable_ptr
Prototype: u_char * sshbuf_mutable_ptr(const struct sshbuf *buf)
Coverage:  87.500% (7/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 276-282
 87.500% (7/8)
72
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_parent
Name: sshbuf_parent
Prototype: const struct sshbuf * sshbuf_parent(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 202-206
100.000% (1/1)
11
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
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_put
Name: sshbuf_put
Prototype: int sshbuf_put(struct sshbuf *buf, const void *v, size_t len)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 235-246
100.000% (7/7)
73
sshbuf_put_bignum1
Name: sshbuf_put_bignum1
Prototype: int sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v)
Coverage:  60.000% (9/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 168-188
 60.000% (9/15)
155
sshbuf_put_bignum2
Name: sshbuf_put_bignum2
Prototype: int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v)
Coverage:  64.706% (11/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 146-166
 64.706% (11/17)
225
sshbuf_put_bignum2_bytes
Name: sshbuf_put_bignum2_bytes
Prototype: int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 401-428
 81.818% (18/22)
156
sshbuf_put_cstring
Name: sshbuf_put_cstring
Prototype: int sshbuf_put_cstring(struct sshbuf *buf, const char *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 365-369
100.000% (1/1)
51
sshbuf_put_ec
Name: sshbuf_put_ec
Prototype: int sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 191-215
 40.000% (4/10)
244
sshbuf_put_eckey
Name: sshbuf_put_eckey
Prototype: int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-crypto.c
Lines: 217-222
100.000% (1/1)
21
sshbuf_put_string
Name: sshbuf_put_string
Prototype: int sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 347-363
100.000% (10/10)
104
sshbuf_put_stringb
Name: sshbuf_put_stringb
Prototype: int sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 371-375
100.000% (1/1)
11
sshbuf_put_u16
Name: sshbuf_put_u16
Prototype: int sshbuf_put_u16(struct sshbuf *buf, u_int16_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 323-333
100.000% (4/4)
62
sshbuf_put_u32
Name: sshbuf_put_u32
Prototype: int sshbuf_put_u32(struct sshbuf *buf, u_int32_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 311-321
100.000% (4/4)
62
sshbuf_put_u64
Name: sshbuf_put_u64
Prototype: int sshbuf_put_u64(struct sshbuf *buf, u_int64_t val)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 299-309
100.000% (4/4)
62
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_putb
Name: sshbuf_putb
Prototype: int sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 248-252
100.000% (1/1)
11
sshbuf_putf
Name: sshbuf_putf
Prototype: int sshbuf_putf(struct sshbuf *buf, const char *fmt, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 254-264
100.000% (1/1)
221
sshbuf_putfv
Name: sshbuf_putfv
Prototype: int sshbuf_putfv(struct sshbuf *buf, const char *fmt, va_list ap)
Coverage:  41.176% (7/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf-getput-basic.c
Lines: 266-297
 41.176% (7/17)
587
sshbuf_refcount
Name: sshbuf_refcount
Prototype: u_int sshbuf_refcount(const struct sshbuf *buf)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 208-212
100.000% (1/1)
11
sshbuf_reserve
Name: sshbuf_reserve
Prototype: int sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 343-361
100.000% (10/10)
194
sshbuf_reset
Name: sshbuf_reset
Prototype: void sshbuf_reset(struct sshbuf *buf)
Coverage:  66.667% (8/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshbuf.c
Lines: 168-188
 66.667% (8/12)
144
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_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
sshd_exchange_identification
Name: sshd_exchange_identification
Prototype: static void sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out)
Coverage:  0.000% (0/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 366-466
  0.000% (0/80)
27618
sshd_hostkey_sign
Name: sshd_hostkey_sign
Prototype: int sshd_hostkey_sign(struct sshkey *privkey, struct sshkey *pubkey, u_char **signature, size_t *slenp, const u_char *data, size_t dlen, const char *alg, u_int flag)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshd.c
Lines: 2237-2259
  0.000% (0/19)
146
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
sshkey_cert_check_authority
Name: sshkey_cert_check_authority
Prototype: int sshkey_cert_check_authority(const struct sshkey *k, int want_host, int require_principal, const char *name, const char **reason)
Coverage:  0.000% (0/71)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2681-2736
  0.000% (0/71)
20920
sshkey_cert_copy
Name: sshkey_cert_copy
Prototype: int sshkey_cert_copy(const struct sshkey *from_key, struct sshkey *to_key)
Coverage:  0.000% (0/76)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1664-1732
  0.000% (0/76)
18318
sshkey_cert_type
Name: sshkey_cert_type
Prototype: const char * sshkey_cert_type(const struct sshkey *k)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1459-1470
  0.000% (0/6)
44
sshkey_certify
Name: sshkey_certify
Prototype: int sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2675-2679
100.000% (1/1)
51
sshkey_certify_custom
Name: sshkey_certify_custom
Prototype: int sshkey_certify_custom(struct sshkey *k, struct sshkey *ca, const char *alg, sshkey_certify_signer *signer, void *signer_ctx)
Coverage:  21.469% (38/177)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2517-2663
 21.469% (38/177)
48742
sshkey_check_cert_sigtype
Name: sshkey_check_cert_sigtype
Prototype: int sshkey_check_cert_sigtype(const struct sshkey *key, const char *allowed)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2335-2347
  0.000% (0/17)
215
sshkey_check_revoked
Name: sshkey_check_revoked
Prototype: int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 512-537
  0.000% (0/9)
85
sshkey_check_sigtype
Name: sshkey_check_sigtype
Prototype: int sshkey_check_sigtype(const u_char *sig, size_t siglen, const char *requested_alg)
Coverage:  0.000% (0/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2374-2391
  0.000% (0/42)
18410
sshkey_curve_name_to_nid
Name: sshkey_curve_name_to_nid
Prototype: int sshkey_curve_name_to_nid(const char *name)
Coverage:  10.000% (10/100)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 370-383
 10.000% (10/100)
50522
sshkey_curve_nid_to_bits
Name: sshkey_curve_nid_to_bits
Prototype: u_int sshkey_curve_nid_to_bits(int nid)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 385-400
100.000% (8/8)
55
sshkey_curve_nid_to_name
Name: sshkey_curve_nid_to_name
Prototype: const char * sshkey_curve_nid_to_name(int nid)
Coverage:  25.000% (2/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 419-434
 25.000% (2/8)
95
sshkey_drop_cert
Name: sshkey_drop_cert
Prototype: int sshkey_drop_cert(struct sshkey *k)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2505-2514
  0.000% (0/4)
102
sshkey_dump_ec_key
Name: sshkey_dump_ec_key
Prototype: void sshkey_dump_ec_key(const EC_KEY *key)
Coverage:  0.000% (0/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3387-3400
  0.000% (0/5)
262
sshkey_dump_ec_point
Name: sshkey_dump_ec_point
Prototype: void sshkey_dump_ec_point(const EC_GROUP *group, const EC_POINT *point)
Coverage:  0.000% (0/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3348-3385
  0.000% (0/18)
806
sshkey_ec_nid_to_hash_alg
Name: sshkey_ec_nid_to_hash_alg
Prototype: int sshkey_ec_nid_to_hash_alg(int nid)
Coverage:  60.000% (6/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 436-451
 60.000% (6/10)
84
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
sshkey_ec_validate_public
Name: sshkey_ec_validate_public
Prototype: int sshkey_ec_validate_public(const EC_GROUP *group, const EC_POINT *public)
Coverage:  40.426% (19/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 3232-3307
 40.426% (19/47)
7113
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
sshkey_ecdsa_key_to_nid
Name: sshkey_ecdsa_key_to_nid
Prototype: int sshkey_ecdsa_key_to_nid(EC_KEY *k)
Coverage:  9.091% (2/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1533-1581
  9.091% (2/22)
518
sshkey_ecdsa_nid_from_name
Name: sshkey_ecdsa_nid_from_name
Prototype: int sshkey_ecdsa_nid_from_name(const char *name)
Coverage:  29.545% (13/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 212-224
 29.545% (13/44)
17510
sshkey_enable_maxsign
Name: sshkey_enable_maxsign
Prototype: int sshkey_enable_maxsign(struct sshkey *k, u_int32_t maxsign)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 4137-4141
  0.000% (0/1)
11
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_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
sshkey_fingerprint
Name: sshkey_fingerprint
Prototype: char * sshkey_fingerprint(const struct sshkey *k, int dgst_alg, enum sshkey_fp_rep dgst_rep)
Coverage:  70.000% (14/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1163-1206
 70.000% (14/20)
419
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_format_cert_validity
Name: sshkey_format_cert_validity
Prototype: size_t sshkey_format_cert_validity(const struct sshkey_cert *cert, char *s, size_t l)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2738-2773
  0.000% (0/23)
236
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_free
Name: sshkey_free
Prototype: void sshkey_free(struct sshkey *k)
Coverage:  91.304% (21/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 560-614
 91.304% (21/23)
4413
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_from_blob_internal
Name: sshkey_from_blob_internal
Prototype: static int sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp, int allow_cert)
Coverage:  74.101% (103/139)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2016-2269
 74.101% (103/139)
30344
sshkey_from_private
Name: sshkey_from_private
Prototype: int sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
Coverage:  42.647% (29/68)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1734-1876
 42.647% (29/68)
17725
sshkey_fromb
Name: sshkey_fromb
Prototype: int sshkey_fromb(struct sshbuf *b, struct sshkey **keyp)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2284-2288
100.000% (1/1)
11
sshkey_froms
Name: sshkey_froms
Prototype: int sshkey_froms(struct sshbuf *buf, struct sshkey **keyp)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 2290-2301
  0.000% (0/4)
72
sshkey_generate
Name: sshkey_generate
Prototype: int sshkey_generate(int type, u_int bits, struct sshkey **keyp)
Coverage:  65.385% (17/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/sshkey.c
Lines: 1613-1662
 65.385% (17/26)
4210
sshkey_in_file
Name: sshkey_in_file
Prototype: int sshkey_in_file(struct sshkey *key, const char *filename, int strict_type, int check_ca)
Coverage:  0.000% (0/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/openssh/src/authfile.c
Lines: 445-503
  0.000% (0/39)
4913
Page:<>1
Function: BSDgetopt
...10
Function: load_hostkeys
...14
Function: read_passphrase
15
Function: send_statvfs
16
Function: ssh2_capable
17
Function: ssh_packet_get_ecpoint
1819
Function: sshkey_is_cert
20
Function: subprocess
21
Function: xasprintf

Generated by Squish Coco 4.2.2