1262445Serwin/* crypto/asn1/x_val.c */ 2262445Serwin/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3262445Serwin * All rights reserved. 4262445Serwin * 5262445Serwin * This package is an SSL implementation written 6262445Serwin * by Eric Young (eay@cryptsoft.com). 7262445Serwin * The implementation was written so as to conform with Netscapes SSL. 8262445Serwin * 9262445Serwin * This library is free for commercial and non-commercial use as long as 10262445Serwin * the following conditions are aheared to. The following conditions 11262445Serwin * apply to all code found in this distribution, be it the RC4, RSA, 12262445Serwin * lhash, DES, etc., code; not just the SSL code. The SSL documentation 13262445Serwin * included with this distribution is covered by the same copyright terms 14262445Serwin * except that the holder is Tim Hudson (tjh@cryptsoft.com). 15262445Serwin * 16262445Serwin * Copyright remains Eric Young's, and as such any Copyright notices in 17262445Serwin * the code are not to be removed. 18262445Serwin * If this package is used in a product, Eric Young should be given attribution 19262445Serwin * as the author of the parts of the library used. 20262445Serwin * This can be in the form of a textual message at program startup or 21262445Serwin * in documentation (online or textual) provided with the package. 22262445Serwin * 23262445Serwin * Redistribution and use in source and binary forms, with or without 24262445Serwin * modification, are permitted provided that the following conditions 25262445Serwin * are met: 26262445Serwin * 1. Redistributions of source code must retain the copyright 27262445Serwin * notice, this list of conditions and the following disclaimer. 28262445Serwin * 2. Redistributions in binary form must reproduce the above copyright 29262445Serwin * notice, this list of conditions and the following disclaimer in the 30262445Serwin * documentation and/or other materials provided with the distribution. 31262445Serwin * 3. All advertising materials mentioning features or use of this software 32262445Serwin * must display the following acknowledgement: 33262445Serwin * "This product includes cryptographic software written by 34262445Serwin * Eric Young (eay@cryptsoft.com)" 35262445Serwin * The word 'cryptographic' can be left out if the rouines from the library 36262445Serwin * being used are not cryptographic related :-). 37262445Serwin * 4. If you include any Windows specific code (or a derivative thereof) from 38262445Serwin * the apps directory (application code) you must include an acknowledgement: 39262445Serwin * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 40262445Serwin * 41262445Serwin * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 42262445Serwin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43262445Serwin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 44262445Serwin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45262445Serwin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46262445Serwin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 47262445Serwin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48262445Serwin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 49262445Serwin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 50262445Serwin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51262445Serwin * SUCH DAMAGE. 52262445Serwin * 53262445Serwin * The licence and distribution terms for any publically available version or 54262445Serwin * derivative of this code cannot be changed. i.e. this code cannot simply be 55262445Serwin * copied and put under another distribution licence 56262445Serwin * [including the GNU Public Licence.] 57262445Serwin */ 58262445Serwin 59262445Serwin#include <stdio.h> 60262445Serwin#include "cryptlib.h" 61262445Serwin#include <openssl/asn1t.h> 62262445Serwin#include <openssl/x509.h> 63262445Serwin 64262445SerwinASN1_SEQUENCE(X509_VAL) = { 65262445Serwin ASN1_SIMPLE(X509_VAL, notBefore, ASN1_TIME), 66262445Serwin ASN1_SIMPLE(X509_VAL, notAfter, ASN1_TIME) 67262445Serwin} ASN1_SEQUENCE_END(X509_VAL) 68262445Serwin 69262445SerwinIMPLEMENT_ASN1_FUNCTIONS(X509_VAL) 70262445Serwin