| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_exten.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | static const ASN1_TEMPLATE X509_EXTENSION_seq_tt[] = { | - |
| 4 | { | - |
| 5 | .offset = | - |
| 6 | __builtin_offsetof ( | - |
| 7 | X509_EXTENSION | - |
| 8 | , | - |
| 9 | object | - |
| 10 | ) | - |
| 11 | , | - |
| 12 | .field_name = "object", | - |
| 13 | .item = &ASN1_OBJECT_it, | - |
| 14 | }, | - |
| 15 | { | - |
| 16 | .flags = (0x1), | - |
| 17 | .offset = | - |
| 18 | __builtin_offsetof ( | - |
| 19 | X509_EXTENSION | - |
| 20 | , | - |
| 21 | critical | - |
| 22 | ) | - |
| 23 | , | - |
| 24 | .field_name = "critical", | - |
| 25 | .item = &ASN1_BOOLEAN_it, | - |
| 26 | }, | - |
| 27 | { | - |
| 28 | .offset = | - |
| 29 | __builtin_offsetof ( | - |
| 30 | X509_EXTENSION | - |
| 31 | , | - |
| 32 | value | - |
| 33 | ) | - |
| 34 | , | - |
| 35 | .field_name = "value", | - |
| 36 | .item = &ASN1_OCTET_STRING_it, | - |
| 37 | }, | - |
| 38 | }; | - |
| 39 | - | |
| 40 | const ASN1_ITEM X509_EXTENSION_it = { | - |
| 41 | .itype = 0x1, | - |
| 42 | .utype = 16, | - |
| 43 | .templates = X509_EXTENSION_seq_tt, | - |
| 44 | .tcount = sizeof(X509_EXTENSION_seq_tt) / sizeof(ASN1_TEMPLATE), | - |
| 45 | .size = sizeof(X509_EXTENSION), | - |
| 46 | .sname = "X509_EXTENSION", | - |
| 47 | }; | - |
| 48 | - | |
| 49 | static const ASN1_TEMPLATE X509_EXTENSIONS_item_tt = { | - |
| 50 | .flags = (0x2 << 1), | - |
| 51 | .tag = 0, | - |
| 52 | .offset = 0, | - |
| 53 | .field_name = "Extension", | - |
| 54 | .item = &X509_EXTENSION_it, | - |
| 55 | }; | - |
| 56 | - | |
| 57 | const ASN1_ITEM X509_EXTENSIONS_it = { | - |
| 58 | .itype = 0x0, | - |
| 59 | .utype = -1, | - |
| 60 | .templates = &X509_EXTENSIONS_item_tt, | - |
| 61 | .tcount = 0, | - |
| 62 | .funcs = | - |
| 63 | ((void *)0) | - |
| 64 | , | - |
| 65 | .size = 0, | - |
| 66 | .sname = "X509_EXTENSIONS", | - |
| 67 | }; | - |
| 68 | - | |
| 69 | - | |
| 70 | X509_EXTENSION * | - |
| 71 | d2i_X509_EXTENSION(X509_EXTENSION **a, const unsigned char **in, long len) | - |
| 72 | { | - |
| 73 | return never executed: (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it);never executed: return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it); | 0 |
| 74 | &X509_EXTENSION_it); never executed: return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it); | 0 |
| 75 | } | - |
| 76 | - | |
| 77 | int | - |
| 78 | i2d_X509_EXTENSION(X509_EXTENSION *a, unsigned char **out) | - |
| 79 | { | - |
| 80 | return never executed: ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it);return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it);never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it); | 0 |
| 81 | } | - |
| 82 | - | |
| 83 | X509_EXTENSION * | - |
| 84 | X509_EXTENSION_new(void) | - |
| 85 | { | - |
| 86 | return executed 13 times by 1 test: (X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);return (X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);Executed by:
executed 13 times by 1 test: return (X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);Executed by:
| 13 |
| 87 | } | - |
| 88 | - | |
| 89 | void | - |
| 90 | X509_EXTENSION_free(X509_EXTENSION *a) | - |
| 91 | { | - |
| 92 | ASN1_item_free((ASN1_VALUE *)a, &X509_EXTENSION_it); | - |
| 93 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 |
| 94 | - | |
| 95 | X509_EXTENSIONS * | - |
| 96 | d2i_X509_EXTENSIONS(X509_EXTENSIONS **a, const unsigned char **in, long len) | - |
| 97 | { | - |
| 98 | return never executed: (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it);never executed: return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it); | 0 |
| 99 | &X509_EXTENSIONS_it); never executed: return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it); | 0 |
| 100 | } | - |
| 101 | - | |
| 102 | int | - |
| 103 | i2d_X509_EXTENSIONS(X509_EXTENSIONS *a, unsigned char **out) | - |
| 104 | { | - |
| 105 | return executed 10 times by 2 tests: ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);Executed by:
executed 10 times by 2 tests: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);Executed by:
| 10 |
| 106 | } | - |
| 107 | - | |
| 108 | X509_EXTENSION * | - |
| 109 | X509_EXTENSION_dup(X509_EXTENSION *x) | - |
| 110 | { | - |
| 111 | return never executed: ASN1_item_dup(&X509_EXTENSION_it, x);return ASN1_item_dup(&X509_EXTENSION_it, x);never executed: return ASN1_item_dup(&X509_EXTENSION_it, x); | 0 |
| 112 | } | - |
| Switch to Source code | Preprocessed file |