OpenCoverage

x_attrib.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509/x_attrib.c
Switch to Source codePreprocessed file
LineSourceCount
1static const ASN1_TEMPLATE X509_ATTRIBUTE_seq_tt[] = {-
2 { (0), (0), -
3 __builtin_offsetof (-
4 X509_ATTRIBUTE-
5 , -
6 object-
7 )-
8 , "object", (&(ASN1_OBJECT_it)) },-
9 { ((0x1 << 1)), (0), -
10 __builtin_offsetof (-
11 X509_ATTRIBUTE-
12 , -
13 set-
14 )-
15 , "set", (&(ASN1_ANY_it)) }-
16} ; const ASN1_ITEM X509_ATTRIBUTE_it = { 0x1, 16, X509_ATTRIBUTE_seq_tt, sizeof(X509_ATTRIBUTE_seq_tt) / sizeof(ASN1_TEMPLATE), -
17 ((void *)0)-
18 , sizeof(X509_ATTRIBUTE), "X509_ATTRIBUTE" };-
19-
20X509_ATTRIBUTE *d2i_X509_ATTRIBUTE(X509_ATTRIBUTE **a, const unsigned char **in, long len) { return
never executed: return (X509_ATTRIBUTE *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_ATTRIBUTE_it)));
(X509_ATTRIBUTE *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_ATTRIBUTE_it)));
never executed: return (X509_ATTRIBUTE *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_ATTRIBUTE_it)));
} int i2d_X509_ATTRIBUTE(X509_ATTRIBUTE *a, unsigned char **out) { return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_ATTRIBUTE_it)));
ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_ATTRIBUTE_it)));
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_ATTRIBUTE_it)));
} X509_ATTRIBUTE *X509_ATTRIBUTE_new(void) { return
executed 288 times by 1 test: return (X509_ATTRIBUTE *)ASN1_item_new((&(X509_ATTRIBUTE_it)));
Executed by:
  • libcrypto.so.1.1
(X509_ATTRIBUTE *)ASN1_item_new((&(X509_ATTRIBUTE_it)));
executed 288 times by 1 test: return (X509_ATTRIBUTE *)ASN1_item_new((&(X509_ATTRIBUTE_it)));
Executed by:
  • libcrypto.so.1.1
} void X509_ATTRIBUTE_free(X509_ATTRIBUTE *a) { ASN1_item_free((ASN1_VALUE *)a, (&(X509_ATTRIBUTE_it))); }
executed 209 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
0-288
21X509_ATTRIBUTE * X509_ATTRIBUTE_dup(X509_ATTRIBUTE *x) { return
executed 209 times by 1 test: return ASN1_item_dup((&(X509_ATTRIBUTE_it)), x);
Executed by:
  • libcrypto.so.1.1
ASN1_item_dup((&(X509_ATTRIBUTE_it)), x);
executed 209 times by 1 test: return ASN1_item_dup((&(X509_ATTRIBUTE_it)), x);
Executed by:
  • libcrypto.so.1.1
}
209
22-
23X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value)-
24{-
25 X509_ATTRIBUTE *ret = -
26 ((void *)0)-
27 ;-
28 ASN1_TYPE *val = -
29 ((void *)0)-
30 ;-
31-
32 if ((
(ret = X509_AT...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
ret = X509_ATTRIBUTE_new()) ==
(ret = X509_AT...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-79
33 ((void *)0)
(ret = X509_AT...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-79
34 )-
35 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
36 ((void *)0)
never executed: return ((void *)0) ;
0
37 ;
never executed: return ((void *)0) ;
0
38 ret->object = OBJ_nid2obj(nid);-
39 if ((
(val = ASN1_TY...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
val = ASN1_TYPE_new()) ==
(val = ASN1_TY...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-79
40 ((void *)0)
(val = ASN1_TY...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-79
41 )-
42 goto
never executed: goto err;
err;
never executed: goto err;
0
43 if (!sk_ASN1_TYPE_push(ret->set, val)
!sk_ASN1_TYPE_...ret->set, val)Description
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-79
44 goto
never executed: goto err;
err;
never executed: goto err;
0
45-
46 ASN1_TYPE_set(val, atrtype, value);-
47 return
executed 79 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 79 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
79
48 err:-
49 X509_ATTRIBUTE_free(ret);-
50 ASN1_TYPE_free(val);-
51 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
52 ((void *)0)
never executed: return ((void *)0) ;
0
53 ;
never executed: return ((void *)0) ;
0
54}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2