| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cms/cms_att.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | int CMS_signed_get_attr_count(const CMS_SignerInfo *si) | - | ||||||
| 5 | { | - | ||||||
| 6 | return executed 187 times by 1 test: X509at_get_attr_count(si->signedAttrs);return X509at_get_attr_count(si->signedAttrs);Executed by:
executed 187 times by 1 test: return X509at_get_attr_count(si->signedAttrs);Executed by:
| 187 | ||||||
| 7 | } | - | ||||||
| 8 | - | |||||||
| 9 | int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) | - | ||||||
| 10 | { | - | ||||||
| 11 | return executed 52 times by 1 test: X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos);return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos);Executed by:
executed 52 times by 1 test: return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos);Executed by:
| 52 | ||||||
| 12 | } | - | ||||||
| 13 | - | |||||||
| 14 | int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, | - | ||||||
| 15 | int lastpos) | - | ||||||
| 16 | { | - | ||||||
| 17 | return never executed: X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos);return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos);never executed: return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); | 0 | ||||||
| 18 | } | - | ||||||
| 19 | - | |||||||
| 20 | X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc) | - | ||||||
| 21 | { | - | ||||||
| 22 | return never executed: X509at_get_attr(si->signedAttrs, loc);return X509at_get_attr(si->signedAttrs, loc);never executed: return X509at_get_attr(si->signedAttrs, loc); | 0 | ||||||
| 23 | } | - | ||||||
| 24 | - | |||||||
| 25 | X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc) | - | ||||||
| 26 | { | - | ||||||
| 27 | return never executed: X509at_delete_attr(si->signedAttrs, loc);return X509at_delete_attr(si->signedAttrs, loc);never executed: return X509at_delete_attr(si->signedAttrs, loc); | 0 | ||||||
| 28 | } | - | ||||||
| 29 | - | |||||||
| 30 | int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) | - | ||||||
| 31 | { | - | ||||||
| 32 | if (X509at_add1_attr(&si->signedAttrs, attr)
| 0 | ||||||
| 33 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 34 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 35 | } | - | ||||||
| 36 | - | |||||||
| 37 | int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si, | - | ||||||
| 38 | const ASN1_OBJECT *obj, int type, | - | ||||||
| 39 | const void *bytes, int len) | - | ||||||
| 40 | { | - | ||||||
| 41 | if (X509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)
| 0 | ||||||
| 42 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 43 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 44 | } | - | ||||||
| 45 | - | |||||||
| 46 | int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si, | - | ||||||
| 47 | int nid, int type, const void *bytes, int len) | - | ||||||
| 48 | { | - | ||||||
| 49 | if (X509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len)
| 0-208 | ||||||
| 50 | return executed 208 times by 1 test: 1;return 1;Executed by:
executed 208 times by 1 test: return 1;Executed by:
| 208 | ||||||
| 51 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 52 | } | - | ||||||
| 53 | - | |||||||
| 54 | int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si, | - | ||||||
| 55 | const char *attrname, int type, | - | ||||||
| 56 | const void *bytes, int len) | - | ||||||
| 57 | { | - | ||||||
| 58 | if (X509at_add1_attr_by_txt(&si->signedAttrs, attrname, type, bytes, len)
| 0 | ||||||
| 59 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 60 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 61 | } | - | ||||||
| 62 | - | |||||||
| 63 | void *CMS_signed_get0_data_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *oid, | - | ||||||
| 64 | int lastpos, int type) | - | ||||||
| 65 | { | - | ||||||
| 66 | return executed 61 times by 1 test: X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type);return X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type);Executed by:
executed 61 times by 1 test: return X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type);Executed by:
| 61 | ||||||
| 67 | } | - | ||||||
| 68 | - | |||||||
| 69 | int CMS_unsigned_get_attr_count(const CMS_SignerInfo *si) | - | ||||||
| 70 | { | - | ||||||
| 71 | return never executed: X509at_get_attr_count(si->unsignedAttrs);return X509at_get_attr_count(si->unsignedAttrs);never executed: return X509at_get_attr_count(si->unsignedAttrs); | 0 | ||||||
| 72 | } | - | ||||||
| 73 | - | |||||||
| 74 | int CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid, | - | ||||||
| 75 | int lastpos) | - | ||||||
| 76 | { | - | ||||||
| 77 | return never executed: X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos);return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos);never executed: return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos); | 0 | ||||||
| 78 | } | - | ||||||
| 79 | - | |||||||
| 80 | int CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si, | - | ||||||
| 81 | const ASN1_OBJECT *obj, int lastpos) | - | ||||||
| 82 | { | - | ||||||
| 83 | return never executed: X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos);return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos);never executed: return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); | 0 | ||||||
| 84 | } | - | ||||||
| 85 | - | |||||||
| 86 | X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc) | - | ||||||
| 87 | { | - | ||||||
| 88 | return never executed: X509at_get_attr(si->unsignedAttrs, loc);return X509at_get_attr(si->unsignedAttrs, loc);never executed: return X509at_get_attr(si->unsignedAttrs, loc); | 0 | ||||||
| 89 | } | - | ||||||
| 90 | - | |||||||
| 91 | X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc) | - | ||||||
| 92 | { | - | ||||||
| 93 | return never executed: X509at_delete_attr(si->unsignedAttrs, loc);return X509at_delete_attr(si->unsignedAttrs, loc);never executed: return X509at_delete_attr(si->unsignedAttrs, loc); | 0 | ||||||
| 94 | } | - | ||||||
| 95 | - | |||||||
| 96 | int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) | - | ||||||
| 97 | { | - | ||||||
| 98 | if (X509at_add1_attr(&si->unsignedAttrs, attr)
| 0 | ||||||
| 99 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 100 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 101 | } | - | ||||||
| 102 | - | |||||||
| 103 | int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si, | - | ||||||
| 104 | const ASN1_OBJECT *obj, int type, | - | ||||||
| 105 | const void *bytes, int len) | - | ||||||
| 106 | { | - | ||||||
| 107 | if (X509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)
| 0 | ||||||
| 108 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 109 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 110 | } | - | ||||||
| 111 | - | |||||||
| 112 | int CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si, | - | ||||||
| 113 | int nid, int type, | - | ||||||
| 114 | const void *bytes, int len) | - | ||||||
| 115 | { | - | ||||||
| 116 | if (X509at_add1_attr_by_NID(&si->unsignedAttrs, nid, type, bytes, len)
| 0 | ||||||
| 117 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 118 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 119 | } | - | ||||||
| 120 | - | |||||||
| 121 | int CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si, | - | ||||||
| 122 | const char *attrname, int type, | - | ||||||
| 123 | const void *bytes, int len) | - | ||||||
| 124 | { | - | ||||||
| 125 | if (X509at_add1_attr_by_txt(&si->unsignedAttrs, attrname,
| 0 | ||||||
| 126 | type, bytes, len)
| 0 | ||||||
| 127 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 128 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 129 | } | - | ||||||
| 130 | - | |||||||
| 131 | void *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid, | - | ||||||
| 132 | int lastpos, int type) | - | ||||||
| 133 | { | - | ||||||
| 134 | return never executed: X509at_get0_data_by_OBJ(si->unsignedAttrs, oid, lastpos, type);return X509at_get0_data_by_OBJ(si->unsignedAttrs, oid, lastpos, type);never executed: return X509at_get0_data_by_OBJ(si->unsignedAttrs, oid, lastpos, type); | 0 | ||||||
| 135 | } | - | ||||||
| Switch to Source code | Preprocessed file |