Changeset 1973


Ignore:
Timestamp:
09/01/07 09:40:54 (13 years ago)
Author:
pjkersha
Message:

Working version of enveloped signature (XMLSec.XMLSecDoc class) validated against XMLSec 'C' library.

python/Tests/xmlsec/Makefile: updates following re-install of XMLSec, libxml2 and libxslt in /usr/local to allow
build of sign3 and verify3 XMLSec example code. verify3 was used to verify enveloped signature generated by
XMLSec.XMLSecDoc.applyEnvelopedSignature.

python/ndg.security.common/ndg/security/common/XMLSec.py: corrected missing namespace qualifier 'ec' for
InclusiveNamespaces? element in the transforms for the reference.

python/ndg.security.common/ndg/security/common/wsSecurity.py: cosmetic correction to formatting.

Location:
TI12-security/trunk/python
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/xmlsec/Makefile

    r1415 r1973  
    1 PROGRAM = encrypt4 
     1PROGRAM = verify3 
    22PROGRAM_FILES = $(PROGRAM).c 
    33VALGRIND_FLAGS=-O0 -O1 
    44 
    5 PKG_CONFIG_PATH=/usr/local/NDG/lib/pkgconfig 
     5#PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ 
    66 
    77CFLAGS  += -g $(VALGRIND_FLAGS) \ 
    8 $(shell pkg-config \ 
    9 --define-variable=prefix=/usr/local/NDG \ 
    10 --define-variable=libdir=/usr/local/NDG/lib --cflags xmlsec1) 
    11 LDFLAGS += #-L/usr/local/NDG/lib  
    12 LIBS    += $(shell pkg-config \ 
    13 --define-variable=prefix=/usr/local/NDG \ 
    14 --define-variable=libdir=/usr/local/NDG/lib --libs xmlsec1) 
     8$(shell pkg-config --cflags xmlsec1) 
     9LIBS   += $(shell pkg-config --libs xmlsec1) 
     10 
     11#CFLAGS += -g $(VALGRIND_FLAGS) \ 
     12#$(shell pkg-config \ 
     13#--define-variable=prefix=/usr/local \ 
     14#--define-variable=libdir=/usr/local/lib --cflags xmlsec1) 
     15#LDFLAGS        += #-L/usr/local/lib  
     16#LIBS   += $(shell pkg-config \ 
     17#--define-variable=prefix=/usr/local \ 
     18#--define-variable=libdir=/usr/local/lib --libs xmlsec1) 
    1519 
    1620all: $(PROGRAM) 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/XMLSec.py

    r1967 r1973  
    459459         
    460460        inclNamespacesNode = self.__docNode.createElementNS(\ 
    461                                                        DSIG.C14N_EXCL, 
    462                                                        'InclusiveNamespaces') 
     461                                                   DSIG.C14N_EXCL, 
     462                                                   'ec:InclusiveNamespaces') 
    463463        inclNamespacesNode.setAttribute('PrefixList', 
    464464                                ' '.join(refC14nKw['unsuppressedPrefixes'])) 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/wsSecurity.py

    r1857 r1973  
    143143        c14nMethodElem.node.setAttribute('Algorithm', DSIG.C14N_EXCL) 
    144144        c14nInclNamespacesElem = c14nMethodElem.createAppendElement(\ 
    145                                                 DSIG.C14N_EXCL, 
    146                                                 'InclusiveNamespaces') 
     145                                                    DSIG.C14N_EXCL, 
     146                                                    'InclusiveNamespaces') 
    147147        c14nInclNamespacesElem.node.setAttribute('PrefixList',  
    148148                        ' '.join(signedInfoC14nKw['unsuppressedPrefixes'])) 
Note: See TracChangeset for help on using the changeset viewer.