2015-01-22 03:40:55 +00:00
|
|
|
/*
|
2016-05-17 18:52:22 +00:00
|
|
|
* Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
|
2000-12-08 19:09:35 +00:00
|
|
|
*
|
2016-05-17 18:52:22 +00: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 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
#include <stddef.h>
|
1999-07-21 22:10:23 +00:00
|
|
|
#include <openssl/x509.h>
|
2000-12-08 19:09:35 +00:00
|
|
|
#include <openssl/asn1.h>
|
|
|
|
#include <openssl/asn1t.h>
|
2015-03-15 13:43:56 +00:00
|
|
|
#include "x509_lcl.h"
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
ASN1_SEQUENCE(X509_EXTENSION) = {
|
2015-01-22 03:40:55 +00:00
|
|
|
ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT),
|
|
|
|
ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN),
|
2015-10-11 19:44:07 +00:00
|
|
|
ASN1_EMBED(X509_EXTENSION, value, ASN1_OCTET_STRING)
|
2001-02-23 12:47:06 +00:00
|
|
|
} ASN1_SEQUENCE_END(X509_EXTENSION)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
ASN1_ITEM_TEMPLATE(X509_EXTENSIONS) =
|
|
|
|
ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION)
|
2007-09-26 21:56:59 +00:00
|
|
|
ASN1_ITEM_TEMPLATE_END(X509_EXTENSIONS)
|
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS(X509_EXTENSION)
|
2007-09-26 21:56:59 +00:00
|
|
|
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
|
2001-07-27 02:22:42 +00:00
|
|
|
IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION)
|