aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/asn.1/asn1buf.h
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-02-22 03:08:52 +0000
committerKeith Vetter <keithv@fusion.com>1995-02-22 03:08:52 +0000
commitb71f3e8737fa16380f27deaafe5ef63c21cda99f (patch)
tree091abf6a3e566bce4606ecd0f0e8182d61041c88 /src/lib/krb5/asn.1/asn1buf.h
parent33c00b7abb78bb72077129f37d6d0df87e1f6a70 (diff)
downloadkrb5-b71f3e8737fa16380f27deaafe5ef63c21cda99f.zip
krb5-b71f3e8737fa16380f27deaafe5ef63c21cda99f.tar.gz
krb5-b71f3e8737fa16380f27deaafe5ef63c21cda99f.tar.bz2
Converted krb5/des425 and krb5/asn.1 to the PC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4970 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1buf.h')
-rw-r--r--src/lib/krb5/asn.1/asn1buf.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/lib/krb5/asn.1/asn1buf.h b/src/lib/krb5/asn.1/asn1buf.h
index 3edda85..2c0ff17 100644
--- a/src/lib/krb5/asn.1/asn1buf.h
+++ b/src/lib/krb5/asn.1/asn1buf.h
@@ -47,12 +47,12 @@ typedef struct code_buffer_rep {
(asn1buf_len)
*/
-asn1_error_code asn1buf_create
+asn1_error_code INTERFACE asn1buf_create
PROTOTYPE((asn1buf **buf));
/* effects Creates a new encoding buffer pointed to by *buf.
Returns ENOMEM if the buffer can't be created. */
-asn1_error_code asn1buf_wrap_data
+asn1_error_code INTERFACE asn1buf_wrap_data
PROTOTYPE((asn1buf *buf, const krb5_data *code));
/* requires *buf has already been allocated
effects Turns *buf into a "wrapper" for *code. i.e. *buf is set up
@@ -60,7 +60,7 @@ asn1_error_code asn1buf_wrap_data
is the top of *code.
Returns ASN1_MISSING_FIELD if code is empty. */
-asn1_error_code asn1buf_imbed
+asn1_error_code INTERFACE asn1buf_imbed
PROTOTYPE((asn1buf *subbuf, const asn1buf *buf, const int length));
/* requires *subbuf and *buf are allocated
effects *subbuf becomes a sub-buffer of *buf. *subbuf begins
@@ -69,22 +69,22 @@ asn1_error_code asn1buf_imbed
that case, ASN1_OVERRUN is returned) *subbuf's current
position starts at the beginning of *subbuf. */
-void asn1buf_sync
+void INTERFACE asn1buf_sync
PROTOTYPE((asn1buf *buf, asn1buf *subbuf));
/* requires *subbuf is a sub-buffer of *buf, as created by asn1buf_imbed.
effects Synchronizes *buf's current position to match that of *subbuf. */
-asn1_error_code asn1buf_destroy
+asn1_error_code INTERFACE asn1buf_destroy
PROTOTYPE((asn1buf **buf));
/* effects Deallocates **buf, sets *buf to NULL. */
-asn1_error_code asn1buf_insert_octet
- PROTOTYPE((asn1buf *buf, const /*asn1_octet*/int o));
+asn1_error_code INTERFACE asn1buf_insert_octet
+ PROTOTYPE((asn1buf *buf, const asn1_octet o));
/* requires *buf is allocated
effects Inserts o into the buffer *buf, expanding the buffer if
necessary. Returns ENOMEM memory is exhausted. */
-asn1_error_code asn1buf_insert_octetstring
+asn1_error_code INTERFACE asn1buf_insert_octetstring
PROTOTYPE((asn1buf *buf, const int len, const asn1_octet *s));
/* requires *buf is allocated
modifies *buf
@@ -92,7 +92,7 @@ asn1_error_code asn1buf_insert_octetstring
into the buffer *buf, expanding the buffer if necessary.
Returns ENOMEM if memory is exhausted. */
-asn1_error_code asn1buf_insert_charstring
+asn1_error_code INTERFACE asn1buf_insert_charstring
PROTOTYPE((asn1buf *buf, const int len, const char *s));
/* requires *buf is allocated
modifies *buf
@@ -100,14 +100,14 @@ asn1_error_code asn1buf_insert_charstring
into the buffer *buf, expanding the buffer if necessary.
Returns ENOMEM if memory is exhuasted. */
-asn1_error_code asn1buf_remove_octet
+asn1_error_code INTERFACE asn1buf_remove_octet
PROTOTYPE((asn1buf *buf, asn1_octet *o));
/* requires *buf is allocated
effects Returns *buf's current octet in *o and advances to
the next octet.
Returns ASN1_OVERRUN if *buf has already been exhuasted. */
-asn1_error_code asn1buf_remove_octetstring
+asn1_error_code INTERFACE asn1buf_remove_octetstring
PROTOTYPE((asn1buf *buf, const int len, asn1_octet **s));
/* requires *buf is allocated
effects Removes the next len octets of *buf and returns them in **s.
@@ -115,7 +115,7 @@ asn1_error_code asn1buf_remove_octetstring
left in *buf.
Returns ENOMEM if *s could not be allocated. */
-asn1_error_code asn1buf_remove_charstring
+asn1_error_code INTERFACE asn1buf_remove_charstring
PROTOTYPE((asn1buf *buf, const int len,
char **s));
/* requires *buf is allocated
@@ -124,43 +124,43 @@ asn1_error_code asn1buf_remove_charstring
left in *buf.
Returns ENOMEM if *s could not be allocated. */
-asn1_error_code asn1buf_unparse
+asn1_error_code INTERFACE asn1buf_unparse
PROTOTYPE((const asn1buf *buf, char **s));
/* modifies *s
effects Returns a human-readable representation of *buf in *s,
where each octet in *buf is represented by a character in *s. */
-asn1_error_code asn1buf_hex_unparse
+asn1_error_code INTERFACE asn1buf_hex_unparse
PROTOTYPE((const asn1buf *buf, char **s));
/* modifies *s
effects Returns a human-readable representation of *buf in *s,
where each octet in *buf is represented by a 2-digit
hexadecimal number in *s. */
-asn1_error_code asn12krb5_buf
+asn1_error_code INTERFACE asn12krb5_buf
PROTOTYPE((const asn1buf *buf, krb5_data **code));
/* modifies *code
effects Instantiates **code with the krb5_data representation of **buf. */
-int asn1buf_remains
+int INTERFACE asn1buf_remains
PROTOTYPE((const asn1buf *buf));
/* effects Returns the number of unprocessed octets remaining in *buf. */
/**************** Private Procedures ****************/
-int asn1buf_size
+int INTERFACE asn1buf_size
PROTOTYPE((const asn1buf *buf));
/* requires *buf has been created and not destroyed
effects Returns the total size
PROTOTYPE((in octets) of buf's octet buffer. */
-int asn1buf_free
+int INTERFACE asn1buf_free
PROTOTYPE((const asn1buf *buf));
/* requires *buf is allocated
effects Returns the number of unused, allocated octets in *buf. */
-asn1_error_code asn1buf_ensure_space
+asn1_error_code INTERFACE asn1buf_ensure_space
PROTOTYPE((asn1buf *buf, const int amount));
/* requires *buf is allocated
modifies *buf
@@ -168,14 +168,14 @@ asn1_error_code asn1buf_ensure_space
expanded to have at least amount octets of free space.
Returns ENOMEM memory is exhausted. */
-asn1_error_code asn1buf_expand
+asn1_error_code INTERFACE asn1buf_expand
PROTOTYPE((asn1buf *buf, const int inc));
/* requires *buf is allocated
modifies *buf
effects Expands *buf by allocating space for inc more octets.
Returns ENOMEM if memory is exhausted. */
-int asn1buf_len
+int INTERFACE asn1buf_len
PROTOTYPE((const asn1buf *buf));
/* requires *buf is allocated
effects Returns the length of the encoding in *buf. */