Lines Matching refs:tag

76 /* Prepend tag to ptr, which points to the end of a tag buffer */
78 ber_prepend_tag( unsigned char *ptr, ber_tag_t tag )
81 *--ptr = (unsigned char) tag & 0xffU;
82 } while ( (tag >>= 8) != 0 );
175 ber_tag_t tag )
193 ptr = ber_prepend_tag( ptr, tag );
202 ber_tag_t tag )
204 if ( tag == LBER_DEFAULT ) {
205 tag = LBER_ENUMERATED;
208 return ber_put_int_or_enum( ber, num, tag );
215 ber_tag_t tag )
217 if ( tag == LBER_DEFAULT ) {
218 tag = LBER_INTEGER;
221 return ber_put_int_or_enum( ber, num, tag );
229 ber_tag_t tag )
234 if ( tag == LBER_DEFAULT ) {
235 tag = LBER_OCTETSTRING;
243 ptr = ber_prepend_tag( ptr, tag );
247 /* length(tag + length + contents) */
258 ber_tag_t tag )
261 return ber_put_ostring( ber, "", (ber_len_t) 0, tag );
264 return ber_put_ostring( ber, bv->bv_val, bv->bv_len, tag );
271 ber_tag_t tag )
275 return ber_put_ostring( ber, str, strlen( str ), tag );
283 ber_tag_t tag )
289 if ( tag == LBER_DEFAULT ) {
290 tag = LBER_BITSTRING;
301 ptr = ber_prepend_tag( ptr, tag );
305 /* length(tag + length + unused bit count + bitstring) */
313 ber_put_null( BerElement *ber, ber_tag_t tag )
317 if ( tag == LBER_DEFAULT ) {
318 tag = LBER_NULL;
322 ptr = ber_prepend_tag( &data[sizeof(data) - 1], tag );
331 ber_tag_t tag )
335 if ( tag == LBER_DEFAULT )
336 tag = LBER_BOOLEAN;
340 ptr = ber_prepend_tag( &data[sizeof(data) - 2], tag );
352 char xtagbuf[TAGBUF_SIZE + 1]; /* room for tag + len(tag or len) */
364 ber_tag_t tag )
367 * Write the tag and SOS_LENLEN octets reserved for length, to ber.
368 * For now, length octets = (tag length, previous ber_sos_inner).
393 headptr = ber_prepend_tag( SOS_TAG_END(header), tag );
416 ber_start_seq( BerElement *ber, ber_tag_t tag )
418 if ( tag == LBER_DEFAULT ) {
419 tag = LBER_SEQUENCE;
422 return ber_start_seqorset( ber, tag );
426 ber_start_set( BerElement *ber, ber_tag_t tag )
428 if ( tag == LBER_DEFAULT ) {
429 tag = LBER_SET;
432 return ber_start_seqorset( ber, tag );
499 /* N tag */
587 case 't': /* tag for the next element */