| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #include <openssl/asn1.h> |
| 16 | #include <openssl/asn1t.h> |
| 17 | #include <openssl/cipher.h> |
| 18 | #include <openssl/x509.h> |
| 19 |
| 20 | #include "internal.h" |
| 21 |
| 22 |
| 23 | ASN1_SEQUENCE(X509_EXTENSION) = { |
| 24 | ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT), |
| 25 | ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN), |
| 26 | ASN1_SIMPLE(X509_EXTENSION, value, ASN1_OCTET_STRING), |
| 27 | } ASN1_SEQUENCE_END(X509_EXTENSION) |
| 28 |
| 29 | ASN1_ITEM_TEMPLATE(X509_EXTENSIONS) = |
| 30 | ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION) |
| 31 | ASN1_ITEM_TEMPLATE_END(X509_EXTENSIONS) |
| 32 |
| 33 | IMPLEMENT_ASN1_FUNCTIONS_const(X509_EXTENSION) |
| 34 | IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(X509_EXTENSIONS, X509_EXTENSIONS, |
| 35 | X509_EXTENSIONS) |
| 36 | IMPLEMENT_ASN1_DUP_FUNCTION_const(X509_EXTENSION) |
| 37 |