Package ldaptor :: Package protocols :: Module pureber
[show private | hide private]
[frames | no frames]

Module ldaptor.protocols.pureber

Pure, simple, BER encoding and decoding
Classes
BERBase  
BERBoolean  
BERDecoderContext  
BEREnumerated  
BERInteger  
BERNull  
BEROctetString  
BERSequence  
BERSequenceOf  
BERSet  
BERStructured  

Exceptions
BERException  
BERExceptionInsufficientData  
UnknownBERTag  

Function Summary
  ber2int(e, signed)
  berDecodeLength(m, offset)
Return a tuple of (length, lengthLength).
  berDecodeMultiple(content, berdecoder)
berDecodeMultiple(content, berdecoder) -> [objects]
  berDecodeObject(context, m)
berDecodeObject(context, string) -> (berobject, bytesUsed) berobject may be None.
  int2ber(i, signed)
  int2berlen(i)
  need(buf, n)

Variable Summary
int CLASS_APPLICATION = 64                                                                    
int CLASS_CONTEXT = 128                                                                   
int CLASS_MASK = 192                                                                   
int CLASS_PRIVATE = 192                                                                   
int CLASS_UNIVERSAL = 0                                                                     
int NOT_STRUCTURED = 0                                                                     
int STRUCTURED = 32                                                                    
int STRUCTURED_MASK = 32                                                                    
int TAG_MASK = 31                                                                    

Function Details

berDecodeLength(m, offset=0)

Return a tuple of (length, lengthLength). m must be atleast one byte long.

berDecodeMultiple(content, berdecoder)

berDecodeMultiple(content, berdecoder) -> [objects]

Decodes everything in content and returns a list of decoded objects.

All of content will be decoded, and content must contain complete BER objects.

berDecodeObject(context, m)

berDecodeObject(context, string) -> (berobject, bytesUsed) berobject may be None.

Variable Details

CLASS_APPLICATION

Type:
int
Value:
64                                                                    

CLASS_CONTEXT

Type:
int
Value:
128                                                                   

CLASS_MASK

Type:
int
Value:
192                                                                   

CLASS_PRIVATE

Type:
int
Value:
192                                                                   

CLASS_UNIVERSAL

Type:
int
Value:
0                                                                     

NOT_STRUCTURED

Type:
int
Value:
0                                                                     

STRUCTURED

Type:
int
Value:
32                                                                    

STRUCTURED_MASK

Type:
int
Value:
32                                                                    

TAG_MASK

Type:
int
Value:
31                                                                    

Generated by Epydoc 2.1 on Fri May 6 14:58:11 2005 http://epydoc.sf.net