svn rev #25188: trunk/src/lib/krb5/asn.1/

hartmans@MIT.EDU hartmans at MIT.EDU
Sun Sep 18 20:34:44 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25188
Commit By: hartmans
Log Message:
asn1_encode_oid: take void not asn1_octet

In order for asn1_encode_oid to be called from DEFLENFNTYPE it needs
to take void * like all the other string encoders.


Changed Files:
U   trunk/src/lib/krb5/asn.1/asn1_encode.c
U   trunk/src/lib/krb5/asn.1/asn1_encode.h
Modified: trunk/src/lib/krb5/asn.1/asn1_encode.c
===================================================================
--- trunk/src/lib/krb5/asn.1/asn1_encode.c	2011-09-19 00:34:40 UTC (rev 25187)
+++ trunk/src/lib/krb5/asn.1/asn1_encode.c	2011-09-19 00:34:44 UTC (rev 25188)
@@ -176,7 +176,7 @@
 }
 
 asn1_error_code
-asn1_encode_oid(asn1buf *buf, unsigned int len, const asn1_octet *val,
+asn1_encode_oid(asn1buf *buf, unsigned int len, const void *val,
                 unsigned int *retlen)
 {
     return encode_bytestring_with_tag(buf, len, val, ASN1_OBJECTIDENTIFIER,

Modified: trunk/src/lib/krb5/asn.1/asn1_encode.h
===================================================================
--- trunk/src/lib/krb5/asn.1/asn1_encode.h	2011-09-19 00:34:40 UTC (rev 25187)
+++ trunk/src/lib/krb5/asn.1/asn1_encode.h	2011-09-19 00:34:44 UTC (rev 25188)
@@ -90,7 +90,7 @@
 #define asn1_encode_charstring asn1_encode_octetstring
 
 asn1_error_code asn1_encode_oid(asn1buf *buf, unsigned int len,
-                                const asn1_octet *val, unsigned int *retlen);
+                                const void *val, unsigned int *retlen);
 /*
  * requires  *buf is allocated
  * modifies  *buf, *retlen




More information about the cvs-krb5 mailing list