Lines Matching refs:tag

204 	ber_tag_t tag;
207 tag = kmfber_next_element(asn1, &size, NULL);
208 if (tag == BER_OBJECT_IDENTIFIER) {
210 size += kmfber_calc_taglen(tag) + kmfber_calc_lenlen(size);
222 } else if (tag != BER_CONSTRUCTED_SEQUENCE)
225 if ((kmfber_scanf(asn1, "tl", &tag, &size)) == -1) {
229 * We need to read the tag and the length bytes too,
232 size += kmfber_calc_taglen(tag) + kmfber_calc_lenlen(size);
250 ber_tag_t tag;
264 tag = kmfber_next_element(oidasn1, &size, NULL);
265 if (tag == BER_OBJECT_IDENTIFIER) {
274 if ((tag = kmfber_scanf(oidasn1, "{D", &AlgOID)) == -1) {
281 tag = kmfber_next_element(oidasn1, &size, NULL);
282 if (tag == BER_NULL) {
286 } else if (tag == KMFBER_END_OF_SEQORSET || tag == KMFBER_DEFAULT) {
292 if ((kmfber_scanf(oidasn1, "tl", &tag, &size)) == -1) {
298 * We need to read the tag and the length bytes too,
301 size += kmfber_calc_taglen(tag) + kmfber_calc_lenlen(size);
691 int tag;
698 tag = kmfber_next_element(asn1, &size, NULL);
699 if (tag != BER_CONSTRUCTED_SEQUENCE) {
886 int tag;
916 tag = kmfber_first_element(asn1, &size, &end);
917 if (tag != BER_CONSTRUCTED_SET) {
922 while ((tag = kmfber_next_element(asn1, &size, end)) ==
924 /* Skip over the SET tag */
925 if (kmfber_scanf(asn1, "T", &tag) == -1) {
937 /* Attr OID and peek at the next tag and field length */
938 if (kmfber_scanf(asn1, "{Dtl", &AttrOID, &tag, &size) == -1) {
943 if (!(VALID_DIRECTORYSTRING_TAG(tag))) {
962 newpair->valueType = tag; /* what kind of string is it? */
1015 encode_uniqueid(BerElement *asn1, int tag, KMF_DATA *id)
1022 if (kmfber_printf(asn1, "TlB", tag, len,
1115 int critical, tag;
1121 if (kmfber_scanf(asn1, "T", &tag) == -1) {
1126 tag = kmfber_next_element(asn1, &size, end);
1127 if (tag != BER_OBJECT_IDENTIFIER) {
1136 tag = kmfber_next_element(asn1, &size, end);
1137 if (tag != BER_BOOLEAN) {
1139 if (tag != BER_OCTET_STRING)
1146 tag = kmfber_next_element(asn1, &size, end);
1147 if (tag != BER_OCTET_STRING) {
1187 /* Get the tag and length of the extension field */
1188 if (kmfber_scanf(extnber, "tl", &tag, &size) == -1) {
1193 if (kmfber_scanf(extnber, "T", &tag) == -1) {
1207 ex->value.tagAndValue->type = tag;
1273 int tag, version;
1277 if (kmfber_scanf(asn1, "{t", &tag) == -1) {
1283 if (tag == 0xA0) {
1284 if (kmfber_scanf(asn1, "Ti", &tag, &version) == -1) {
1334 while ((kmfber_scanf(asn1, "t", &tag)) != -1 &&
1335 (tag == 0xA1 || tag == 0xA2 || tag == 0xA3)) {
1339 /* consume the tag and length */
1340 (void) kmfber_scanf(asn1, "T", &tag);
1341 switch (tag) {
1440 ber_tag_t tag;
1486 if (kmfber_scanf(asn1, "tl", &tag, &size) == -1) {
1490 if (tag != BER_BIT_STRING) {
1815 ber_tag_t tag;
1828 /* Skip over the overall Sequence tag to get at the TBS Cert data */
1829 if (kmfber_scanf(der, "Tl", &tag, &size) == -1) {
1833 if (tag != BER_CONSTRUCTED_SEQUENCE) {
1840 * must make sure to also include the bytes for the tag and
1843 size += kmfber_calc_taglen(tag) + kmfber_calc_lenlen(size);
1865 if (kmfber_scanf(der, "tl", &tag, &size) != BER_BIT_STRING) {
1922 ber_tag_t tag;
1950 if (kmfber_scanf(asn1, "Tl", &tag, &size) == -1) {
2013 int tag;
2057 if (kmfber_scanf(asn1, "tl", &tag, &size) == -1) {
2061 if (tag != BER_BIT_STRING) {
2160 /* Add 2 bytes to cover the tag and the length */