use of asn1_encode_oid in MIT Kerberos 5

Ahluwalia, Ish iahluwalia at sonusnet.com
Thu Jan 13 10:43:34 EST 2005


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....



More information about the Kerberos mailing list