pem_xaux.c revision 296341
1285242Sachim/* pem_xaux.c */ 2285242Sachim/* 3285242Sachim * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project 4285242Sachim * 2001. 5285242Sachim */ 6285242Sachim/* ==================================================================== 7285242Sachim * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 8285242Sachim * 9285242Sachim * Redistribution and use in source and binary forms, with or without 10285242Sachim * modification, are permitted provided that the following conditions 11285242Sachim * are met: 12285242Sachim * 13285242Sachim * 1. Redistributions of source code must retain the above copyright 14285242Sachim * notice, this list of conditions and the following disclaimer. 15285242Sachim * 16285242Sachim * 2. Redistributions in binary form must reproduce the above copyright 17285242Sachim * notice, this list of conditions and the following disclaimer in 18285242Sachim * the documentation and/or other materials provided with the 19285242Sachim * distribution. 20285242Sachim * 21285242Sachim * 3. All advertising materials mentioning features or use of this 22285242Sachim * software must display the following acknowledgment: 23285242Sachim * "This product includes software developed by the OpenSSL Project 24285242Sachim * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 25285242Sachim * 26285242Sachim * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27285242Sachim * endorse or promote products derived from this software without 28285242Sachim * prior written permission. For written permission, please contact 29285242Sachim * licensing@OpenSSL.org. 30285242Sachim * 31285242Sachim * 5. Products derived from this software may not be called "OpenSSL" 32285242Sachim * nor may "OpenSSL" appear in their names without prior written 33285242Sachim * permission of the OpenSSL Project. 34285242Sachim * 35285242Sachim * 6. Redistributions of any form whatsoever must retain the following 36285242Sachim * acknowledgment: 37285242Sachim * "This product includes software developed by the OpenSSL Project 38285242Sachim * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 39285242Sachim * 40285242Sachim * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41285242Sachim * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42285242Sachim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43285242Sachim * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44285242Sachim * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45285242Sachim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46285242Sachim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47285242Sachim * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48285242Sachim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49285242Sachim * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50285242Sachim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51285242Sachim * OF THE POSSIBILITY OF SUCH DAMAGE. 52285242Sachim * ==================================================================== 53285242Sachim * 54285242Sachim * This product includes cryptographic software written by Eric Young 55285242Sachim * (eay@cryptsoft.com). This product includes software written by Tim 56285242Sachim * Hudson (tjh@cryptsoft.com). 57285242Sachim * 58285242Sachim */ 59285242Sachim 60285242Sachim#include <stdio.h> 61285242Sachim#include "cryptlib.h" 62285242Sachim#include <openssl/bio.h> 63285242Sachim#include <openssl/evp.h> 64285242Sachim#include <openssl/x509.h> 65285242Sachim#include <openssl/pkcs7.h> 66285242Sachim#include <openssl/pem.h> 67285242Sachim 68285242SachimIMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX) 69285242SachimIMPLEMENT_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR, PEM_STRING_X509_PAIR, 70285242Sachim X509_CERT_PAIR) 71285242Sachim