| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
These are the only ElementTree implementations that have been tested to
provide the needed functionality (mostly namespaces).
|
|
|
|
|
| |
This introduces the getint() and getbool() functions in parse to avoid
some code duplication.
|
|
|
|
|
|
|
|
|
|
|
| |
When using a recent enough lxml, even Python 2.6 should work now. The
most important requirement is that the findall() function supports the
namespaces argument.
This also now catches all exceptions when parsing the PSKC file fails
and wraps it in ParseError because various implementations raise
different exceptions, even between versions (Python 2.6's ElementTree
raises ExpatError, lxml raises XMLSyntaxError).
|
|
|
|
|
|
|
|
| |
This changes the parse module functions to better match the ElementTree
API and extends it with findint(), findtime() and findbin().
It also passes the namespaces to all calls that require it without
duplicating this throughout the normal code.
|
| |
|
|
|
|
| |
This also splits the parsing to a parse() function for consistency.
|
|
|
|
|
| |
This documents most of the API of the parsing functions and the PSKC
class.
|
|
|
|
| |
This also allows re-organising the imports a bit.
|
| |
|
|
|
|
|
| |
This implements message message authentication code checking for the
encrypted values if MACMethod and ValueMAC are present.
|
|
|
|
|
| |
This adds an encryption module that provides wrappers for handling
decryption.
|
|
|
|
|
| |
This ensures that DataType values are retrieved dynamically instead of
at the time the PSKC file was parsed in order to make decryption work.
|
|
|
|
|
| |
This parses key policy from PSKC files and provides a few utility
methods to help with policy validation.
|
| |
|
|
|
|
|
| |
This gets most simple string values from the KeyPackage as well as some
integer and boolean values.
|
| |
|
|
This class is used for handling PSKC files. It will parse the file and
store relevant properties for easy access. The Key class corresponds to
a single key defined in the PSKC file.
This is a very minimal implementation that only provides some meta-data
from the file and keys (work in progress).
|