summaryrefslogtreecommitdiff
path: root/xmlsecurity/tools/standalone/csfit/certmngr.cxx
diff options
context:
space:
mode:
authorMichael Mi <mmi@openoffice.org>2004-07-19 10:37:12 +0000
committerMichael Mi <mmi@openoffice.org>2004-07-19 10:37:12 +0000
commit6c639c2acca70087234b0b5af4c7ff6af01a4b76 (patch)
treed707213cd3bd1aecf75c14a96810b810e41f492c /xmlsecurity/tools/standalone/csfit/certmngr.cxx
parent40df6fd2accc5e328f9dfc48a30ec8a7dc0f3049 (diff)
Issue number:
Submitted by: Reviewed by: Add certificate status testing codes.
Diffstat (limited to 'xmlsecurity/tools/standalone/csfit/certmngr.cxx')
-rw-r--r--xmlsecurity/tools/standalone/csfit/certmngr.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmlsecurity/tools/standalone/csfit/certmngr.cxx b/xmlsecurity/tools/standalone/csfit/certmngr.cxx
index 843963de182d..d4623c9c9c96 100644
--- a/xmlsecurity/tools/standalone/csfit/certmngr.cxx
+++ b/xmlsecurity/tools/standalone/csfit/certmngr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: certmngr.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mmi $ $Date: 2004-07-15 08:22:31 $
+ * last change: $Author: mmi $ $Date: 2004-07-19 11:37:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -181,6 +181,14 @@ int SAL_CALL main( int argc, char **argv )
if( !xcert.is() ) {
fprintf( stdout, "The personal certificate is not in the certificate database\n" ) ;
}
+
+ //Get the certificate characters
+ sal_Int32 chars = pSecEnv->getCertificateCharacters( xPersonalCerts[i] ) ;
+ fprintf( stdout, "The certificate characters are %d\n", chars ) ;
+
+ //Get the certificate status
+ sal_Int32 validity = pSecEnv->verifyCertificate( xPersonalCerts[i] ) ;
+ fprintf( stdout, "The certificate validities are %d\n", validity ) ;
}
} catch( Exception& e ) {
fprintf( stderr , "Error Message: %s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ) ;