svn commit: samba r20251 - in branches/SAMBA_4_0/source: libnet librpc/idl torture/rpc

simo idra at samba.org
Tue Dec 19 14:55:57 GMT 2006


On Tue, 2006-12-19 at 15:49 +0100, Love Hörnquist Åstrand wrote:
> >> if someone knows how the encoding works, please tell me:-)
> >> I assume some ASN.1 encoding...
> >
> > ok, I found the encoding of the first byte, which represents the  
> > first 2
> > numbers of the oid string.
> 
> int
> der_get_oid (const unsigned char *p, size_t len,
> 	     heim_oid *data, size_t *size);
> 
> in heimdal/lib/asn1/der_get.c will parse it for you.

or libcli/util/asn1.c asn1_read_OID()/asn1_write_OID() :-)

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list