2015-01-22 11:40:55 +08:00
|
|
|
/*
|
2016-05-18 02:52:22 +08:00
|
|
|
* Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
|
2000-12-09 03:09:35 +08:00
|
|
|
*
|
2016-05-18 02:52:22 +08:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1998-12-21 18:52:47 +08:00
|
|
|
*/
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
#include <stddef.h>
|
1999-07-22 06:10:23 +08:00
|
|
|
#include <openssl/x509.h>
|
2000-12-09 03:09:35 +08:00
|
|
|
#include <openssl/asn1.h>
|
|
|
|
#include <openssl/asn1t.h>
|
2015-03-15 21:43:56 +08:00
|
|
|
#include "x509_lcl.h"
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
ASN1_SEQUENCE(X509_EXTENSION) = {
|
2015-01-22 11:40:55 +08:00
|
|
|
ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT),
|
|
|
|
ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN),
|
2015-10-12 03:44:07 +08:00
|
|
|
ASN1_EMBED(X509_EXTENSION, value, ASN1_OCTET_STRING)
|
2001-02-23 20:47:06 +08:00
|
|
|
} ASN1_SEQUENCE_END(X509_EXTENSION)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
ASN1_ITEM_TEMPLATE(X509_EXTENSIONS) =
|
|
|
|
ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION)
|
2007-09-27 05:56:59 +08:00
|
|
|
ASN1_ITEM_TEMPLATE_END(X509_EXTENSIONS)
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS(X509_EXTENSION)
|
2007-09-27 05:56:59 +08:00
|
|
|
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
|
2001-07-27 10:22:42 +08:00
|
|
|
IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION)
|