In order for asn1_encode_oid to be called from DEFLENFNTYPE it needs
authorSam Hartman <hartmans@mit.edu>
Mon, 19 Sep 2011 00:34:44 +0000 (00:34 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 19 Sep 2011 00:34:44 +0000 (00:34 +0000)
to take void * like all the other string encoders.

asn1_encode_oid: take void not asn1_octet

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25188 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1_encode.c
src/lib/krb5/asn.1/asn1_encode.h

index d31cefa5ff001285b5d1402185ffdf289c551b87..7eb646e03ccc5bd744a4259a305f459822d7dedf 100644 (file)
@@ -176,7 +176,7 @@ encode_bytestring_with_tag(asn1buf *buf, unsigned int len,
 }
 
 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,
index 04d92fc90a70225ab903b9ec6c8835d512e86b72..97256a73ae88ef41d29df2ebc0ffd88205afb030 100644 (file)
@@ -90,7 +90,7 @@ asn1_error_code asn1_encode_octetstring(asn1buf *buf, unsigned int len,
 #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