ASN.1 encoding in MIT Kerberos

Ken Raeburn raeburn at MIT.EDU
Tue Oct 21 20:06:26 EDT 2008

On Oct 21, 2008, at 19:25, Paul Moore wrote:
> have u looked at the ber encoder in the openldap project, it is 100%
> separable from the ldap code base and is a joy to use
> it uses the printf and scanf idioms to read and write ber/der packets

I had not looked at it; thanks for the pointer.

It looks like the encoder does some extra copying when you have  
sequences containing sequences containing... which we do.  Still, it's  
probably better than the backwards copying we do (twice!).  The use of  
printf/scanf idioms are interesting, though I'm a little concerned  
about the lack of type checking with that style of interface.  Still,  
unlike the other ASN.1 packages I've seen, it looks like this would be  
more easily adaptable to our existing data structures.  We should  
definitely look into this one further when we have time to do real  
work on our ASN.1 code...


More information about the krbdev mailing list