/* Copyright (C) 2003 Frédéric Giudicelli (contact_nos@yahoo.com). All rights reserved. This product includes cryptographic software written by Eric Young (eay@cryptsoft.com) This program is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ ASN1_SEQUENCE(STORED_ENTITY_CONF) = { ASN1_SIMPLE(STORED_ENTITY_CONF, conf, ENTITY_CONF), ASN1_SIMPLE(STORED_ENTITY_CONF, certificate, X509), }ASN1_SEQUENCE_END(STORED_ENTITY_CONF) IMPLEMENT_ASN1_FUNCTIONS(STORED_ENTITY_CONF) ASN1_SEQUENCE(PKI_CONF, LocalEntityConf) = { ASN1_SEQUENCE_OF(PKI_CONF, confs, STORED_ENTITY_CONF), ASN1_SIMPLE(PKI_CONF, crypt_confs, EXPORTED_PKI_CONF), ASN1_SEQUENCE_OF(PKI_CONF, Repositories, REP_ENTRY_INFO), ASN1_SIMPLE(PKI_CONF, cas, INTERNAL_PKI_CA), ASN1_SIMPLE(PKI_CONF, Publications, PUBS_INFO), ASN1_SIMPLE(PKI_CONF, conf, ENTITY_CONF), ASN1_SEQUENCE_OF(PKI_CONF, links, ENTITY_LINKS), }ASN1_SEQUENCE_END(PKI_CONF) IMPLEMENT_ASN1_ENCRYPT_SIGN(PKI_CONF) <-- BEGIN H HEADER COPY BLOCK --> #include "Entity.h" #include #include /*! This structure represent an entity conf. */ typedef struct st_STORED_ENTITY_CONF { ENTITY_CONF * conf; //!< The conf. X509 * certificate; //!< The certificate of the entity. }STORED_ENTITY_CONF; DECLARE_ASN1_ITEM(STORED_ENTITY_CONF) /*! This structure represent the local conf. */ typedef struct st_PKI_CONF { STACK_OF(STORED_ENTITY_CONF) * confs; //!< The confs in "clear text" format EXPORTED_PKI_CONF * crypt_confs; //!< The same as confs but crypted for the entities STACK_OF(REP_ENTRY_INFO) * Repositories; //!< The repositories list PUBS_INFO * Publications; //!< The Publications list INTERNAL_PKI_CA * cas; //!< The PKI internal CA. ENTITY_CONF * conf; //!< The PKI entity conf STACK_OF(ENTITY_LINKS) * links; //!< The entities links }PKI_CONF; DECLARE_ASN1_ITEM(PKI_CONF) <-- END H HEADER COPY BLOCK -->