[23190] in Kerberos
use of asn1_encode_oid in MIT Kerberos 5
daemon@ATHENA.MIT.EDU (Ahluwalia, Ish)
Thu Jan 13 16:40:50 2005
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Date: Thu, 13 Jan 2005 10:43:34 -0500
Message-ID: <A3863F3136CBC546A40A61BA9CBA9D93ABD6A0@sonusmail03.sonusnet.com>
From: "Ahluwalia, Ish" <iahluwalia@sonusnet.com>
To: <kerberos@mit.edu>
Content-Transfer-Encoding: 8bit
Errors-To: kerberos-bounces@mit.edu
Hi:
I'm trying to use "asn1_encode_oid" function defined in asn.1 directory. This is how I'm using it:
krb5_addlenfield(rep->oid.length,rep->oid.data,0,asn1_encode_oid);
Is this the proper way to use it? I've defined the oid as krb5_data.
Also, when using this function - how does the function "asn1_encode_oid" expecting the data to be? Should the OID string be passed as
"{iso(1) member-body(2) United States(840) mit(113554) infosys(1) gssapi(2) generic(1) user_name(1)}" or as already DER encode string like ""\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"?
Please advice. Any explaination will be highly appreciated.
Thanks.
Ish....
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos