summaryrefslogtreecommitdiff
path: root/xmlsecurity/tools/standalone/mscsfit/verifier.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/tools/standalone/mscsfit/verifier.cxx')
-rw-r--r--xmlsecurity/tools/standalone/mscsfit/verifier.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/xmlsecurity/tools/standalone/mscsfit/verifier.cxx b/xmlsecurity/tools/standalone/mscsfit/verifier.cxx
index fa4325718fd1..4907f38a1ee4 100644
--- a/xmlsecurity/tools/standalone/mscsfit/verifier.cxx
+++ b/xmlsecurity/tools/standalone/mscsfit/verifier.cxx
@@ -45,19 +45,19 @@ using namespace ::com::sun::star::xml::crypto ;
int SAL_CALL main( int argc, char **argv )
{
- const char* n_pCertStore ;
- HCERTSTORE n_hStoreHandle ;
-
- xmlDocPtr doc = NULL ;
- xmlNodePtr tplNode ;
- xmlNodePtr tarNode ;
- xmlAttrPtr idAttr ;
- xmlChar* idValue ;
- xmlAttrPtr uriAttr ;
- xmlChar* uriValue ;
- OUString* uri = NULL ;
- Reference< XUriBinding > xUriBinding ;
- FILE* dstFile = NULL ;
+ const char* n_pCertStore ;
+ HCERTSTORE n_hStoreHandle ;
+
+ xmlDocPtr doc = NULL ;
+ xmlNodePtr tplNode ;
+ xmlNodePtr tarNode ;
+ xmlAttrPtr idAttr ;
+ xmlChar* idValue ;
+ xmlAttrPtr uriAttr ;
+ xmlChar* uriValue ;
+ OUString* uri = NULL ;
+ Reference< XUriBinding > xUriBinding ;
+ FILE* dstFile = NULL ;
if( argc !=3 && argc != 4 ) {
fprintf( stderr, "Usage: %s <file_url> <rdb file>\n" , argv[0] ) ;
@@ -74,7 +74,7 @@ int SAL_CALL main( int argc, char **argv )
xmlSubstituteEntitiesDefault(1);
#ifndef XMLSEC_NO_XSLT
- xmlIndentTreeOutput = 1;
+ xmlIndentTreeOutput = 1;
#endif // XMLSEC_NO_XSLT
//Initialize the crypto engine
@@ -110,7 +110,7 @@ int SAL_CALL main( int argc, char **argv )
if( tarNode == NULL ) {
tarNode = xmlSecFindNode( xmlDocGetRootElement( doc ), ( xmlChar* )"document", NULL ) ;
}
-
+
//Find the "id" attrbute in the element
if( tarNode != NULL ) {
if( ( idAttr = xmlHasProp( tarNode, ( xmlChar* )"id" ) ) != NULL ) {
@@ -121,7 +121,7 @@ int SAL_CALL main( int argc, char **argv )
idAttr = NULL ;
}
}
-
+
//Add ID to DOM
if( idAttr != NULL ) {
idValue = xmlNodeListGetString( tarNode->doc, idAttr->children, 1 ) ;
@@ -129,7 +129,7 @@ int SAL_CALL main( int argc, char **argv )
fprintf( stderr , "### the ID value is NULL!\n" ) ;
goto done ;
}
-
+
if( xmlAddID( NULL, doc, idValue, idAttr ) == NULL ) {
fprintf( stderr , "### Can not add the ID value!\n" ) ;
goto done ;
@@ -160,7 +160,7 @@ int SAL_CALL main( int argc, char **argv )
if( strchr( ( const char* )uriValue, '/' ) != NULL && strchr( ( const char* )uriValue, '#' ) == NULL ) {
fprintf( stdout , "### Find a stream URI [%s]\n", uriValue ) ;
- // uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
+ // uri = new ::rtl::OUString( ( const sal_Unicode* )uriValue ) ;
uri = new ::rtl::OUString( ( const sal_Char* )uriValue, xmlStrlen( uriValue ), RTL_TEXTENCODING_ASCII_US ) ;
}
@@ -287,9 +287,9 @@ int SAL_CALL main( int argc, char **argv )
//perform validation
xTemplate = xSigner->validate( xTemplate , xSecCtx ) ;
-
+
com::sun::star::xml::crypto::SecurityOperationStatus m_nStatus = xTemplate->getStatus();
-
+
if (m_nStatus == SecurityOperationStatus_OPERATION_SUCCEEDED)
{
fprintf( stdout, "Operation succeeds.\n") ;
@@ -317,7 +317,7 @@ done :
/* Shutdown libxslt/libxml */
#ifndef XMLSEC_NO_XSLT
- xsltCleanupGlobals();
+ xsltCleanupGlobals();
#endif /* XMLSEC_NO_XSLT */
xmlCleanupParser();