pem_xaux.c revision 160814
1139825Simp/* pem_xaux.c */
21541Srgrimes/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
31541Srgrimes * project 2001.
41541Srgrimes */
51541Srgrimes/* ====================================================================
61541Srgrimes * Copyright (c) 2001 The OpenSSL Project.  All rights reserved.
71541Srgrimes *
81541Srgrimes * Redistribution and use in source and binary forms, with or without
91541Srgrimes * modification, are permitted provided that the following conditions
101541Srgrimes * are met:
111541Srgrimes *
121541Srgrimes * 1. Redistributions of source code must retain the above copyright
131541Srgrimes *    notice, this list of conditions and the following disclaimer.
141541Srgrimes *
151541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
161541Srgrimes *    notice, this list of conditions and the following disclaimer in
171541Srgrimes *    the documentation and/or other materials provided with the
181541Srgrimes *    distribution.
191541Srgrimes *
201541Srgrimes * 3. All advertising materials mentioning features or use of this
211541Srgrimes *    software must display the following acknowledgment:
221541Srgrimes *    "This product includes software developed by the OpenSSL Project
231541Srgrimes *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
241541Srgrimes *
251541Srgrimes * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
261541Srgrimes *    endorse or promote products derived from this software without
271541Srgrimes *    prior written permission. For written permission, please contact
281541Srgrimes *    licensing@OpenSSL.org.
291541Srgrimes *
301541Srgrimes * 5. Products derived from this software may not be called "OpenSSL"
311541Srgrimes *    nor may "OpenSSL" appear in their names without prior written
321541Srgrimes *    permission of the OpenSSL Project.
331541Srgrimes *
341541Srgrimes * 6. Redistributions of any form whatsoever must retain the following
3550477Speter *    acknowledgment:
361541Srgrimes *    "This product includes software developed by the OpenSSL Project
371541Srgrimes *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
381541Srgrimes *
391541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
401541Srgrimes * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4155206Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4233847Smsmith * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
4392727Salfred * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4492727Salfred * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4592727Salfred * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4633847Smsmith * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4792727Salfred * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48222586Skib * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49233001Skib * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50233001Skib * OF THE POSSIBILITY OF SUCH DAMAGE.
51222586Skib * ====================================================================
52233001Skib *
53233001Skib * This product includes cryptographic software written by Eric Young
54222586Skib * (eay@cryptsoft.com).  This product includes software written by Tim
5592029Seivind * Hudson (tjh@cryptsoft.com).
565455Sdg *
57 */
58
59#include <stdio.h>
60#undef SSLEAY_MACROS
61#include "cryptlib.h"
62#include <openssl/bio.h>
63#include <openssl/evp.h>
64#include <openssl/x509.h>
65#include <openssl/pkcs7.h>
66#include <openssl/pem.h>
67
68IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX)
69IMPLEMENT_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR, PEM_STRING_X509_PAIR, X509_CERT_PAIR)
70