00001 /* parse_certificate_files.c -- Parses PEM or PKCS12 formatted cert. files 00002 * 00003 * GPLv2 only - Copyright (C) 2008 - 2010 00004 * David Sommerseth <dazo@users.sourceforge.net> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; version 2 00009 * of the License. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 */ 00021 00032 #ifndef PARSE_CERTIFICATE_FILES_H_ 00033 # define PARSE_CERTIFICATE_FILES_H_ 00034 00035 #include <certinfo.h> 00036 00037 #ifdef HAVE_OPENSSL 00038 #define CERTFILE_PEM 0x01 00039 #define CERTFILE_PKCS12 0x02 00041 #ifndef _PARSE_CERTFICIATE_FILES_C 00042 00051 #define Cert_ParseFile(cfile,cformat) _Cert_ParseFile(MODULE, cfile, cformat) 00052 certinfo *_Cert_ParseFile(const char *module, const char *certfile, int certfile_format); 00053 00054 #endif /* !_PARSE_CERTIFICATE_FILES_C */ 00055 00056 #endif /* HAVE OPENSSL */ 00057 #endif /* !PARSE_CERTIFICATE_FILES_H_ */
1.7.1