Eneboo - Documentación para desarrolladores
src/libdigidoc/DigiDocEncSAXParser.h
Ir a la documentación de este archivo.
00001 #ifndef __DIGIDOC_ENC_SAX_PARSER_H__
00002 #define __DIGIDOC_ENC_SAX_PARSER_H__
00003 //==================================================
00004 // FILE:        DigiDocEncSAXParser.h
00005 // PROJECT:     Digi Doc Encryption 
00006 // DESCRIPTION: DigiDocEnc XML SAX parsing
00007 // AUTHOR:  Veiko Sinivee, S|E|B IT Partner Estonia
00008 //==================================================
00009 // Copyright (C) AS Sertifitseerimiskeskus
00010 // This library is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU Lesser General Public
00012 // License as published by the Free Software Foundation; either
00013 // version 2.1 of the License, or (at your option) any later version.
00014 // This library is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 // GNU Lesser General Public Licence is available at
00019 // http://www.gnu.org/copyleft/lesser.html
00020 //==========< HISTORY >=============================
00021 //      11.10.2004      Veiko Sinivee
00022 //                      Creation
00023 //==================================================
00024 
00025 
00026 #include <libdigidoc/DigiDocEnc.h>
00027 #include <libdigidoc/DigiDocDefs.h>
00028 
00029 #ifdef  __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033   //--------------------------------------------------
00034   // Reads in encrypted XML document.
00035   // ppEncData - address for new encrypted data object [REQUIRED]
00036   // szFileName - input file name
00037   // returns error code or ERR_OK
00038   //--------------------------------------------------
00039   EXP_OPTION int dencSaxReadEncryptedData(DEncEncryptedData** ppEncData, const char* szFileName);
00040 
00041   //--------------------------------------------------
00042   // Decrypts an encrypted XML document and stores the
00043   // cleartext data in another document. Please note that szCertCN 
00044   // parameter is no longer required as the users cert will
00045   // bea read from smartcard using PKCS#11
00046   // szInputFileName - input file name [REQUIRED]
00047   // szOutputFileName - output file name [REQUIRED]
00048   // szPin - PIN1 of the id-card to decrypt the transport key [REQUIRED]
00049   // returns error code or ERR_OK
00050   //--------------------------------------------------
00051   EXP_OPTION int dencSaxReadDecryptFile(const char* szInputFileName, 
00052                                         const char* szOutputFileName, 
00053                                         const char* szPin);
00054 
00055 
00056 #ifdef  __cplusplus
00057 }
00058 #endif
00059 
00060 
00061 #endif // __DIGIDOC_ENC_SAX_PARSER_H__
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'