OpenCoverage

LibreSSL Portable Test Coverage

Functions

Page:<>1
eLOC - Effective Lines of Code: 2819
...9
eLOC - Effective Lines of Code: 40
10
eLOC - Effective Lines of Code: 36
11
eLOC - Effective Lines of Code: 33
12
eLOC - Effective Lines of Code: 29
1314
eLOC - Effective Lines of Code: 24
15
eLOC - Effective Lines of Code: 22
16
eLOC - Effective Lines of Code: 20
17
eLOC - Effective Lines of Code: 18
...20
eLOC - Effective Lines of Code: 15
...30
eLOC - Effective Lines of Code: 7
...40
eLOC - Effective Lines of Code: 2
...60
eLOC - Effective Lines of Code: 1
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
EC_GROUP_new_by_curve_name
Name: EC_GROUP_new_by_curve_name
Prototype: EC_GROUP * EC_GROUP_new_by_curve_name(int nid)
Coverage:  58.333% (7/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_curve.c
Lines: 3254-3275
 58.333% (7/12)
275
BIO_ssl_copy_session_id
Name: BIO_ssl_copy_session_id
Prototype: int BIO_ssl_copy_session_id(BIO *t, BIO *f)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bio_ssl.c
Lines: 561-575
  0.000% (0/14)
274
ASN1_i2d_bio
Name: ASN1_i2d_bio
Prototype: int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x)
Coverage:  0.000% (0/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_i2d_fp.c
Lines: 83-113
  0.000% (0/11)
275
ASN1_STRING_set
Name: ASN1_STRING_set
Prototype: int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
Coverage:  66.667% (12/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/asn1_lib.c
Lines: 373-399
 66.667% (12/18)
276
ASN1_INTEGER_set
Name: ASN1_INTEGER_set
Prototype: int ASN1_INTEGER_set(ASN1_INTEGER *a, long v)
Coverage:  68.421% (13/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_int.c
Lines: 341-376
 68.421% (13/19)
277
ASN1_ENUMERATED_set
Name: ASN1_ENUMERATED_set
Prototype: int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_enum.c
Lines: 70-104
  0.000% (0/19)
277
tls_ocsp_verify_cb
Name: tls_ocsp_verify_cb
Prototype: int tls_ocsp_verify_cb(SSL *ssl, void *arg)
Coverage:  20.000% (4/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_ocsp.c
Lines: 297-326
 20.000% (4/20)
266
sock_ctrl
Name: sock_ctrl
Prototype: static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
Coverage:  57.143% (12/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_sock.c
Lines: 163-200
 57.143% (12/21)
2610
rsa_pub_decode
Name: rsa_pub_decode
Prototype: static int rsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rsa/rsa_ameth.c
Lines: 89-104
 42.857% (3/7)
263
pkey_dsa_ctrl
Name: pkey_dsa_ctrl
Prototype: static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
Coverage:  13.636% (6/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_pmeth.c
Lines: 169-228
 13.636% (6/44)
2624
openssl_load_privkey
Name: openssl_load_privkey
Prototype: static EVP_PKEY * openssl_load_privkey(ENGINE *eng, const char *key_id, UI_METHOD *ui_method, void *callback_data)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_openssl.c
Lines: 390-405
  0.000% (0/4)
262
ocsp_find_signer_sk
Name: ocsp_find_signer_sk
Prototype: static X509 * ocsp_find_signer_sk(struct stack_st_X509 *certs, OCSP_RESPID *id)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ocsp/ocsp_vfy.c
Lines: 204-229
  0.000% (0/13)
265
ocsp_check_issuer
Name: ocsp_check_issuer
Prototype: static int ocsp_check_issuer(OCSP_BASICRESP *bs, struct stack_st_X509 *chain, unsigned long flags)
Coverage:  0.000% (0/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ocsp/ocsp_vfy.c
Lines: 231-271
  0.000% (0/19)
267
md_read
Name: md_read
Prototype: static int md_read(BIO *b, char *out, int outl)
Coverage:  55.556% (10/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/bio_md.c
Lines: 122-146
 55.556% (10/18)
266
idea_set_encrypt_key
Name: idea_set_encrypt_key
Prototype: void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_skey.c
Lines: 64-96
 85.714% (6/7)
263
i2a_ASN1_INTEGER
Name: i2a_ASN1_INTEGER
Prototype: int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a)
Coverage:  0.000% (0/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/f_int.c
Lines: 65-103
  0.000% (0/32)
2611
ec_GF2m_simple_group_copy
Name: ec_GF2m_simple_group_copy
Prototype: int ec_GF2m_simple_group_copy(EC_GROUP * dest, const EC_GROUP * src)
Coverage:  61.538% (16/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec2_smpl.c
Lines: 170-196
 61.538% (16/26)
268
dtls1_write_message_header
Name: dtls1_write_message_header
Prototype: static int dtls1_write_message_header(const struct hm_header_st *msg_hdr, unsigned long frag_off, unsigned long frag_len, unsigned char *p)
Coverage:  34.783% (8/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_both.c
Lines: 1166-1193
 34.783% (8/23)
269
dtls1_get_timeout
Name: dtls1_get_timeout
Prototype: struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft)
Coverage:  52.381% (11/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/d1_lib.c
Lines: 309-349
 52.381% (11/21)
265
cbb_buffer_add
Name: cbb_buffer_add
Prototype: static int cbb_buffer_add(struct cbb_buffer_st *base, uint8_t **out, size_t len)
Coverage:  70.833% (17/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/bs_cbb.c
Lines: 93-129
 70.833% (17/24)
268
X509_check_akid
Name: X509_check_akid
Prototype: int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid)
Coverage:  23.333% (7/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_purp.c
Lines: 856-893
 23.333% (7/30)
268
X509_VERIFY_PARAM_set1_policies
Name: X509_VERIFY_PARAM_set1_policies
Prototype: int X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, struct stack_st_ASN1_OBJECT *policies)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_vpm.c
Lines: 473-506
  0.000% (0/22)
268
X509_STORE_add_lookup
Name: X509_STORE_add_lookup
Prototype: X509_LOOKUP * X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m)
Coverage:  69.231% (9/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_lu.c
Lines: 277-304
 69.231% (9/13)
265
WHIRLPOOL_Final
Name: WHIRLPOOL_Final
Prototype: int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/whrlpool/wp_dgst.c
Lines: 217-254
  0.000% (0/22)
268
TS_STATUS_INFO_print_bio
Name: TS_STATUS_INFO_print_bio
Prototype: int TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ts/ts_rsp_print.c
Lines: 97-177
  0.000% (0/22)
267
SSL_get_ex_data_X509_STORE_CTX_idx
Name: SSL_get_ex_data_X509_STORE_CTX_idx
Prototype: int SSL_get_ex_data_X509_STORE_CTX_idx(void)
Coverage:  90.909% (10/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_cert.c
Lines: 133-159
 90.909% (10/11)
264
OpenSSL_add_all_digests_internal
Name: OpenSSL_add_all_digests_internal
Prototype: static void OpenSSL_add_all_digests_internal(void)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/c_all.c
Lines: 236-292
100.000% (1/1)
261
OCSP_sendreq_bio
Name: OCSP_sendreq_bio
Prototype: OCSP_RESPONSE * OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ocsp/ocsp_ht.c
Lines: 442-463
  0.000% (0/12)
264
OBJ_find_sigid_by_algs
Name: OBJ_find_sigid_by_algs
Prototype: int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
Coverage:  43.750% (7/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/objects/obj_xref.c
Lines: 155-184
 43.750% (7/16)
266
EVP_PKEY_new_mac_key
Name: EVP_PKEY_new_mac_key
Prototype: EVP_PKEY * EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen)
Coverage:  42.857% (6/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_gn.c
Lines: 203-223
 42.857% (6/14)
266
EVP_PBE_alg_add_type
Name: EVP_PBE_alg_add_type
Prototype: int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, int md_nid, EVP_PBE_KEYGEN *keygen)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_pbe.c
Lines: 216-246
  0.000% (0/13)
265
EVP_DecodeBlock
Name: EVP_DecodeBlock
Prototype: int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n)
Coverage:  84.615% (22/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/encode.c
Lines: 370-408
 84.615% (22/26)
266
EVP_CIPHER_CTX_copy
Name: EVP_CIPHER_CTX_copy
Prototype: int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_enc.c
Lines: 644-675
  0.000% (0/22)
266
ERR_put_error
Name: ERR_put_error
Prototype: void ERR_put_error(int lib, int func, int reason, const char *file, int line)
Coverage:  55.556% (5/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 728-745
 55.556% (5/9)
263
ECParameters_dup
Name: ECParameters_dup
Prototype: EC_KEY * ECParameters_dup(EC_KEY *key)
Coverage:  0.000% (0/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_lib.c
Lines: 1127-1141
  0.000% (0/7)
263
BN_dup
Name: BN_dup
Prototype: BIGNUM * BN_dup(const BIGNUM *a)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_lib.c
Lines: 425-443
 40.000% (4/10)
264
BIO_find_type
Name: BIO_find_type
Prototype: BIO * BIO_find_type(BIO *bio, int type)
Coverage:  47.368% (9/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bio_lib.c
Lines: 545-565
 47.368% (9/19)
267
BF_encrypt
Name: BF_encrypt
Prototype: void BF_encrypt(unsigned int *data, const BF_KEY *key)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bf/bf_enc.c
Lines: 72-145
100.000% (1/1)
261
BF_decrypt
Name: BF_decrypt
Prototype: void BF_decrypt(unsigned int *data, const BF_KEY *key)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bf/bf_enc.c
Lines: 149-222
100.000% (1/1)
261
ASN1_STRING_set_by_NID
Name: ASN1_STRING_set_by_NID
Prototype: ASN1_STRING * ASN1_STRING_set_by_NID(ASN1_STRING **out, const unsigned char *in, int inlen, int inform, int nid)
Coverage:  57.143% (8/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_strnid.c
Lines: 132-155
 57.143% (8/14)
265
tls_handshake
Name: tls_handshake
Prototype: int tls_handshake(struct tls *ctx)
Coverage:  73.913% (17/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls.c
Lines: 671-705
 73.913% (17/23)
259
tls_configure_server_sni
Name: tls_configure_server_sni
Prototype: static int tls_configure_server_sni(struct tls *ctx)
Coverage:  11.765% (2/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_server.c
Lines: 297-326
 11.765% (2/17)
257
ssl3_shutdown
Name: ssl3_shutdown
Prototype: int ssl3_shutdown(SSL *s)
Coverage:  31.034% (9/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_lib.c
Lines: 2390-2438
 31.034% (9/29)
259
ssl3_put_cipher_by_char
Name: ssl3_put_cipher_by_char
Prototype: int ssl3_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
Coverage:  47.059% (8/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/s3_lib.c
Lines: 2254-2280
 47.059% (8/17)
257
sk_dup
Name: sk_dup
Prototype: _STACK * sk_dup(_STACK *sk)
Coverage:  27.273% (3/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 83-107
 27.273% (3/11)
255
print_notice
Name: print_notice
Prototype: static void print_notice(BIO *out, USERNOTICE *notice, int indent)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_cpols.c
Lines: 720-747
  0.000% (0/13)
255
print_bin
Name: print_bin
Prototype: static int print_bin(BIO * fp, const char *name, const unsigned char *buf, size_t len, int off)
Coverage:  0.000% (0/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/eck_prn.c
Lines: 338-371
  0.000% (0/31)
2511
pkey_dh_paramgen
Name: pkey_dh_paramgen
Prototype: static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dh/dh_pmeth.c
Lines: 187-210
  0.000% (0/12)
254
mem_free
Name: mem_free
Prototype: static int mem_free(BIO *a)
Coverage:  66.667% (10/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_mem.c
Lines: 134-150
 66.667% (10/15)
255
long_c2i
Name: long_c2i
Prototype: static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it)
Coverage:  50.000% (11/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_long.c
Lines: 167-203
 50.000% (11/22)
257
internal_find
Name: internal_find
Prototype: static int internal_find(_STACK *st, void *data, int ret_val_options)
Coverage:  66.667% (12/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/stack/stack.c
Lines: 192-215
 66.667% (12/18)
257
i2s_ASN1_INTEGER
Name: i2s_ASN1_INTEGER
Prototype: char * i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, const ASN1_INTEGER *a)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_utl.c
Lines: 167-180
  0.000% (0/9)
253
i2s_ASN1_ENUMERATED
Name: i2s_ASN1_ENUMERATED
Prototype: char * i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *a)
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_utl.c
Lines: 152-165
  0.000% (0/9)
253
get_attribute
Name: get_attribute
Prototype: static ASN1_TYPE * get_attribute(struct stack_st_X509_ATTRIBUTE *sk, int nid)
Coverage:  76.471% (13/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_doit.c
Lines: 1116-1136
 76.471% (13/17)
255
gcm_init_4bit
Name: gcm_init_4bit
Prototype: static void gcm_init_4bit(u128 Htable[16], u64 H[2])
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/modes/gcm128.c
Lines: 255-324
 53.846% (7/13)
254
ec_GF2m_simple_group_set_curve
Name: ec_GF2m_simple_group_set_curve
Prototype: int ec_GF2m_simple_group_set_curve(EC_GROUP * group, const BIGNUM * p, const BIGNUM * a, const BIGNUM * b, BN_CTX * ctx)
Coverage:  62.500% (20/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec2_smpl.c
Lines: 200-233
 62.500% (20/32)
2510
dgram_read
Name: dgram_read
Prototype: static int dgram_read(BIO *b, char *out, int outl)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bio/bss_dgram.c
Lines: 248-285
  0.000% (0/15)
255
d2i_PUBKEY
Name: d2i_PUBKEY
Prototype: EVP_PKEY * d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_pubkey.c
Lines: 246-263
  0.000% (0/10)
254
d2i_ASN1_BOOLEAN
Name: d2i_ASN1_BOOLEAN
Prototype: int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length)
Coverage:  0.000% (0/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_bool.c
Lines: 81-115
  0.000% (0/14)
256
aes_xts_ctrl
Name: aes_xts_ctrl
Prototype: static int aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
Coverage:  0.000% (0/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_aes.c
Lines: 1066-1100
  0.000% (0/17)
257
aead_aes_gcm_init
Name: aead_aes_gcm_init
Prototype: static int aead_aes_gcm_init(EVP_AEAD_CTX *ctx, const unsigned char *key, size_t key_len, size_t tag_len)
Coverage:  57.895% (11/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_aes.c
Lines: 1377-1418
 57.895% (11/19)
256
a2i_IPADDRESS
Name: a2i_IPADDRESS
Prototype: ASN1_OCTET_STRING * a2i_IPADDRESS(const char *ipasc)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_utl.c
Lines: 1062-1084
  0.000% (0/10)
254
X509_find_by_issuer_and_serial
Name: X509_find_by_issuer_and_serial
Prototype: X509 * X509_find_by_issuer_and_serial(struct stack_st_X509 *sk, X509_NAME *name, ASN1_INTEGER *serial)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509/x509_cmp.c
Lines: 290-311
 40.000% (4/10)
254
TS_verify_cert
Name: TS_verify_cert
Prototype: static int TS_verify_cert(X509_STORE *store, struct stack_st_X509 *untrusted, X509 *signer, struct stack_st_X509 **chain)
Coverage:  0.000% (0/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ts/ts_rsp_verify.c
Lines: 232-267
  0.000% (0/12)
255
TS_get_status_text
Name: TS_get_status_text
Prototype: static char * TS_get_status_text(struct stack_st_ASN1_UTF8STRING *text)
Coverage:  0.000% (0/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ts/ts_rsp_verify.c
Lines: 553-580
  0.000% (0/13)
255
TS_check_signing_certs
Name: TS_check_signing_certs
Prototype: static int TS_check_signing_certs(PKCS7_SIGNER_INFO *si, struct stack_st_X509 *chain)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ts/ts_rsp_verify.c
Lines: 269-303
  0.000% (0/20)
258
OPENSSL_uni2asc
Name: OPENSSL_uni2asc
Prototype: char * OPENSSL_uni2asc(const unsigned char *uni, int unilen)
Coverage:  0.000% (0/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs12/p12_utl.c
Lines: 102-125
  0.000% (0/15)
255
OCSP_response_create
Name: OCSP_response_create
Prototype: OCSP_RESPONSE * OCSP_response_create(int status, OCSP_BASICRESP *bs)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ocsp/ocsp_srv.c
Lines: 116-139
  0.000% (0/20)
258
OBJ_find_sigid_algs
Name: OBJ_find_sigid_algs
Prototype: int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid)
Coverage:  52.632% (10/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/objects/obj_xref.c
Lines: 127-153
 52.632% (10/19)
257
EVP_PKEY_meth_copy
Name: EVP_PKEY_meth_copy
Prototype: void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/pmeth_lib.c
Lines: 268-307
  0.000% (0/1)
251
ERR_lib_error_string
Name: ERR_lib_error_string
Prototype: const char * ERR_lib_error_string(unsigned long e)
Coverage:  0.000% (0/6)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/err/err.c
Lines: 975-989
  0.000% (0/6)
252
ENGINE_new
Name: ENGINE_new
Prototype: ENGINE * ENGINE_new(void)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_lib.c
Lines: 68-86
 42.857% (3/7)
253
ECDSA_verify
Name: ECDSA_verify
Prototype: int ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey)
Coverage:  61.538% (8/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ecdsa/ecs_vrf.c
Lines: 88-113
 61.538% (8/13)
255
DSA_verify
Name: DSA_verify
Prototype: int DSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int siglen, DSA *dsa)
Coverage:  46.154% (6/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_asn1.c
Lines: 456-480
 46.154% (6/13)
255
BN_rshift1
Name: BN_rshift1
Prototype: int BN_rshift1(BIGNUM *r, const BIGNUM *a)
Coverage:  81.818% (18/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 98-132
 81.818% (18/22)
256
BN_mod_mul_reciprocal
Name: BN_mod_mul_reciprocal
Prototype: int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, BN_RECP_CTX *recp, BN_CTX *ctx)
Coverage:  57.895% (11/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_recp.c
Lines: 110-139
 57.895% (11/19)
257
BN_lshift
Name: BN_lshift
Prototype: int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
Coverage:  86.364% (19/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_shift.c
Lines: 134-169
 86.364% (19/22)
258
BN_X931_generate_prime_ex
Name: BN_X931_generate_prime_ex
Prototype: int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1, BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb)
Coverage:  0.000% (0/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bn/bn_x931p.c
Lines: 252-281
  0.000% (0/23)
259
ASN1_time_tm_cmp
Name: ASN1_time_tm_cmp
Prototype: int ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2)
Coverage:  56.757% (21/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_time_tm.c
Lines: 32-60
 56.757% (21/37)
2513
tree_calculate_authority_set
Name: tree_calculate_authority_set
Prototype: static int tree_calculate_authority_set(X509_POLICY_TREE *tree, struct stack_st_X509_POLICY_NODE **pnodes)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/pcy_tree.c
Lines: 499-541
  0.000% (0/25)
248
tree_add_unmatched
Name: tree_add_unmatched
Prototype: static int tree_add_unmatched(X509_POLICY_LEVEL *curr, const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id, X509_POLICY_NODE *node, X509_POLICY_TREE *tree)
Coverage:  0.000% (0/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/pcy_tree.c
Lines: 339-363
  0.000% (0/10)
244
tls_set_ssl_errorx
Name: tls_set_ssl_errorx
Prototype: int tls_set_ssl_errorx(struct tls *ctx, const char *fmt, ...)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls.c
Lines: 200-215
  0.000% (0/4)
242
tls_set_cbs
Name: tls_set_cbs
Prototype: int tls_set_cbs(struct tls *ctx, tls_read_cb read_cb, tls_write_cb write_cb, void *cb_arg)
Coverage:  50.000% (5/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_bio_cb.c
Lines: 114-143
 50.000% (5/10)
244
tls_keypair_pubkey_hash
Name: tls_keypair_pubkey_hash
Prototype: static int tls_keypair_pubkey_hash(struct tls_keypair *keypair, struct tls_error *error)
Coverage:  50.000% (6/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_keypair.c
Lines: 32-57
 50.000% (6/12)
246
tls_get_peer_cert_subject
Name: tls_get_peer_cert_subject
Prototype: static int tls_get_peer_cert_subject(struct tls *ctx, char **subject)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_conninfo.c
Lines: 89-103
 40.000% (4/10)
244
tls_get_peer_cert_issuer
Name: tls_get_peer_cert_issuer
Prototype: static int tls_get_peer_cert_issuer(struct tls *ctx, char **issuer)
Coverage:  40.000% (4/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/tls/tls_conninfo.c
Lines: 73-87
 40.000% (4/10)
244
ssl_update_cache
Name: ssl_update_cache
Prototype: void ssl_update_cache(SSL *s, int mode)
Coverage:  25.000% (7/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 2259-2289
 25.000% (7/28)
246
ssl_cipher_list_to_bytes
Name: ssl_cipher_list_to_bytes
Prototype: int ssl_cipher_list_to_bytes(SSL *s, struct stack_st_SSL_CIPHER *ciphers, CBB *cbb)
Coverage:  64.516% (20/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_lib.c
Lines: 1413-1448
 64.516% (20/31)
249
setup_idp
Name: setup_idp
Prototype: static void setup_idp(X509_CRL *crl, ISSUING_DIST_POINT *idp)
Coverage:  0.000% (0/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_crl.c
Lines: 365-402
  0.000% (0/25)
249
remove_session_lock
Name: remove_session_lock
Prototype: static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
Coverage:  0.000% (0/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_sess.c
Lines: 677-703
  0.000% (0/22)
247
poly1305_update
Name: poly1305_update
Prototype: static inline void poly1305_update(poly1305_context *ctx, const unsigned char *m, size_t bytes)
Coverage: 100.000% (22/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/poly1305/poly1305-donna.c
Lines: 176-212
100.000% (22/22)
248
pkey_ec_ctrl
Name: pkey_ec_ctrl
Prototype: static int pkey_ec_ctrl(EVP_PKEY_CTX * ctx, int type, int p1, void *p2)
Coverage:  0.000% (0/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec_pmeth.c
Lines: 203-243
  0.000% (0/27)
2410
parse_pk12
Name: parse_pk12
Prototype: static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, struct stack_st_X509 *ocerts)
Coverage:  0.000% (0/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs12/p12_kiss.c
Lines: 171-204
  0.000% (0/20)
247
long_i2c
Name: long_i2c
Prototype: static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it)
Coverage:  69.231% (18/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_long.c
Lines: 121-165
 69.231% (18/26)
248
lh_delete
Name: lh_delete
Prototype: void * lh_delete(_LHASH *lh, const void *data)
Coverage:  80.000% (8/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 218-245
 80.000% (8/10)
243
i2r_ocsp_crlid
Name: i2r_ocsp_crlid
Prototype: static int i2r_ocsp_crlid(const X509V3_EXT_METHOD *method, void *in, BIO *bp, int ind)
Coverage:  0.000% (0/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/x509v3/v3_ocsp.c
Lines: 215-247
  0.000% (0/38)
2414
gf2m_Mdouble
Name: gf2m_Mdouble
Prototype: static int gf2m_Mdouble(const EC_GROUP *group, BIGNUM *x, BIGNUM *z, BN_CTX *ctx)
Coverage:  0.000% (0/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ec/ec2_mult.c
Lines: 87-118
  0.000% (0/26)
2410
getrn
Name: getrn
Prototype: static LHASH_NODE **getrn(_LHASH *lh, const void *data, unsigned long *rhash)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/lhash/lhash.c
Lines: 394-424
100.000% (13/13)
245
engine_list_remove
Name: engine_list_remove
Prototype: static int engine_list_remove(ENGINE *e)
Coverage:  91.667% (22/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_list.c
Lines: 151-180
 91.667% (22/24)
248
ecdsa_check
Name: ecdsa_check
Prototype: ECDSA_DATA * ecdsa_check(EC_KEY *key)
Coverage:  63.636% (7/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/ecdsa/ecs_lib.c
Lines: 172-195
 63.636% (7/11)
244
Page:<>1
eLOC - Effective Lines of Code: 2819
...9
eLOC - Effective Lines of Code: 40
10
eLOC - Effective Lines of Code: 36
11
eLOC - Effective Lines of Code: 33
12
eLOC - Effective Lines of Code: 29
1314
eLOC - Effective Lines of Code: 24
15
eLOC - Effective Lines of Code: 22
16
eLOC - Effective Lines of Code: 20
17
eLOC - Effective Lines of Code: 18
...20
eLOC - Effective Lines of Code: 15
...30
eLOC - Effective Lines of Code: 7
...40
eLOC - Effective Lines of Code: 2
...60
eLOC - Effective Lines of Code: 1

Generated by Squish Coco 4.2.2