aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/asn.1/asn1_make.h
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-11-16 16:48:37 +0000
committerTom Yu <tlyu@mit.edu>2009-11-16 16:48:37 +0000
commit409bcfb8f5a21d257e506e8b92bf025522878919 (patch)
treed43ad40cabe26058f7d2df8217f6a9ee31825e2d /src/lib/krb5/asn.1/asn1_make.h
parente1cfc10df16d9319405fd101c21bf328515fa3a3 (diff)
downloadkrb5-409bcfb8f5a21d257e506e8b92bf025522878919.zip
krb5-409bcfb8f5a21d257e506e8b92bf025522878919.tar.gz
krb5-409bcfb8f5a21d257e506e8b92bf025522878919.tar.bz2
Fix coding style in lib/krb5/asn.1, remove from exclusions, and
reindent. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23236 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_make.h')
-rw-r--r--src/lib/krb5/asn.1/asn1_make.h126
1 files changed, 70 insertions, 56 deletions
diff --git a/src/lib/krb5/asn.1/asn1_make.h b/src/lib/krb5/asn.1/asn1_make.h
index 4279fa7..dcbaa16 100644
--- a/src/lib/krb5/asn.1/asn1_make.h
+++ b/src/lib/krb5/asn.1/asn1_make.h
@@ -1,4 +1,4 @@
-/* -*- mode: c; indent-tabs-mode: nil -*- */
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* src/lib/krb5/asn.1/asn1_make.h
*
@@ -33,70 +33,80 @@
#include "asn1buf.h"
/*
- Overview
-
- Each of these procedures constructs a subpart of an ASN.1
- primitive in a coding buffer.
-
- Operations
-
- asn1_make_etag
- asn1_make_sequence
- asn1_make_set
- asn1_make_tag
- asn1_make_string
-*/
+ * Overview
+ *
+ * Each of these procedures constructs a subpart of an ASN.1
+ * primitive in a coding buffer.
+ *
+ * Operations
+ *
+ * asn1_make_etag
+ * asn1_make_sequence
+ * asn1_make_set
+ * asn1_make_tag
+ * asn1_make_string
+ */
asn1_error_code asn1_make_etag(asn1buf *buf, asn1_class asn1class,
asn1_tagnum tagnum, unsigned int in_len,
unsigned int *retlen);
-/* requires *buf is allocated, in_len is the length of an ASN.1 encoding
- which has just been inserted in *buf
- modifies *buf, *retlen
- effects Inserts an explicit tag with class = asn1class, id# = tag
- length = in_len into *buf.
- Returns the length of this encoding in *retlen.
- Returns ENOMEM if memory runs out. */
+/*
+ * requires *buf is allocated, in_len is the length of an ASN.1 encoding
+ * which has just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects Inserts an explicit tag with class = asn1class, id# = tag
+ * length = in_len into *buf.
+ * Returns the length of this encoding in *retlen.
+ * Returns ENOMEM if memory runs out.
+ */
asn1_error_code asn1_make_tag(asn1buf *buf, asn1_class asn1class,
asn1_construction construction,
asn1_tagnum tagnum, unsigned int in_len,
unsigned int *retlen);
-/* requires *buf is allocated, in_len is the length of an ASN.1 encoding
- which has just been inserted in *buf
- modifies *buf, *retlen
- effects Inserts the encoding of a tag with class = asn1class,
- primitive/constructed staus = construction,
- id# = tag and length = in_len into *buf.
- Returns the length of this encoding in *retlen.
- Returns ENOMEM if memory runs out.
- Returns ASN1_OVERFLOW if tagnum exceeds the limits of
- the implementation. */
+/*
+ * requires *buf is allocated, in_len is the length of an ASN.1 encoding
+ * which has just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects Inserts the encoding of a tag with class = asn1class,
+ * primitive/constructed staus = construction,
+ * id# = tag and length = in_len into *buf.
+ * Returns the length of this encoding in *retlen.
+ * Returns ENOMEM if memory runs out.
+ * Returns ASN1_OVERFLOW if tagnum exceeds the limits of
+ * the implementation.
+ */
asn1_error_code asn1_make_sequence(asn1buf *buf, const unsigned int seq_len,
unsigned int *len);
-/* requires *buf is allocated, seq_len is the length of a series of
- sequence components which have just been inserted in *buf
- modifies *buf, *retlen
- effects Inserts the sequence header for a sequence of length seq_len
- in *buf. Returns the length of this encoding in *retlen.
- Returns ENOMEM if memory runs out. */
+/*
+ * requires *buf is allocated, seq_len is the length of a series of
+ * sequence components which have just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects Inserts the sequence header for a sequence of length seq_len
+ * in *buf. Returns the length of this encoding in *retlen.
+ * Returns ENOMEM if memory runs out.
+ */
asn1_error_code asn1_make_set(asn1buf *buf, const unsigned int set_len,
unsigned int *retlen);
-/* requires *buf is allocated, seq_len is the length of a series of
- sequence components which have just been inserted in *buf
- modifies *buf, *retlen
- effects Inserts the set header for a set of length set_len in *buf.
- Returns the length of this encoding in *retlen.
- Returns ENOMEM if memory runs out. */
+/*
+ * requires *buf is allocated, seq_len is the length of a series of
+ * sequence components which have just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects Inserts the set header for a set of length set_len in *buf.
+ * Returns the length of this encoding in *retlen.
+ * Returns ENOMEM if memory runs out.
+ */
asn1_error_code asn1_make_string(asn1buf *buf, const unsigned int len,
const char *string, int *retlen);
-/* requires *buf is allocated, len is the length of *string
- effects Inserts the encoding of *string (a series of octets) in *buf.
- Returns the length of this encoding in *retlen.
- Returns ENOMEM if memory runs out. */
+/*
+ * requires *buf is allocated, len is the length of *string
+ * effects Inserts the encoding of *string (a series of octets) in *buf.
+ * Returns the length of this encoding in *retlen.
+ * Returns ENOMEM if memory runs out.
+ */
/****************************************************************/
@@ -105,19 +115,23 @@ asn1_error_code asn1_make_string(asn1buf *buf, const unsigned int len,
/* "helper" procedure for asn1_make_tag */
asn1_error_code asn1_make_length(asn1buf *buf, const unsigned int in_len,
unsigned int *retlen);
-/* requires *buf is allocated, in_len is the length of an ASN.1 encoding
- which has just been inserted in *buf
- modifies *buf, *retlen
- effects inserts length octet(s) for in_len into *buf */
+/*
+ * requires *buf is allocated, in_len is the length of an ASN.1 encoding
+ * which has just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects inserts length octet(s) for in_len into *buf
+ */
/* "helper" procedure for asn1_make_tag */
asn1_error_code asn1_make_id(asn1buf *buf, asn1_class asn1class,
asn1_construction construction,
asn1_tagnum tagnum, unsigned int *retlen);
-/* requires *buf is allocated, asn1class and tagnum are appropriate for
- the ASN.1 encoding which has just been inserted in *buf
- modifies *buf, *retlen
- effects Inserts id octet(s) of class asn1class and tag number tagnum
- into *buf */
+/*
+ * requires *buf is allocated, asn1class and tagnum are appropriate for
+ * the ASN.1 encoding which has just been inserted in *buf
+ * modifies *buf, *retlen
+ * effects Inserts id octet(s) of class asn1class and tag number tagnum
+ * into *buf
+ */
#endif