1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#include <stdio.h> 11e1051a39Sopenharmony_ci#include "internal/cryptlib.h" 12e1051a39Sopenharmony_ci#include <openssl/x509v3.h> 13e1051a39Sopenharmony_ci#include "ext_dat.h" 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ciconst X509V3_EXT_METHOD ossl_v3_crl_num = { 16e1051a39Sopenharmony_ci NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER), 17e1051a39Sopenharmony_ci 0, 0, 0, 0, 18e1051a39Sopenharmony_ci (X509V3_EXT_I2S)i2s_ASN1_INTEGER, 19e1051a39Sopenharmony_ci 0, 20e1051a39Sopenharmony_ci 0, 0, 0, 0, NULL 21e1051a39Sopenharmony_ci}; 22e1051a39Sopenharmony_ci 23e1051a39Sopenharmony_ciconst X509V3_EXT_METHOD ossl_v3_delta_crl = { 24e1051a39Sopenharmony_ci NID_delta_crl, 0, ASN1_ITEM_ref(ASN1_INTEGER), 25e1051a39Sopenharmony_ci 0, 0, 0, 0, 26e1051a39Sopenharmony_ci (X509V3_EXT_I2S)i2s_ASN1_INTEGER, 27e1051a39Sopenharmony_ci 0, 28e1051a39Sopenharmony_ci 0, 0, 0, 0, NULL 29e1051a39Sopenharmony_ci}; 30e1051a39Sopenharmony_ci 31e1051a39Sopenharmony_cistatic void *s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, 32e1051a39Sopenharmony_ci const char *value) 33e1051a39Sopenharmony_ci{ 34e1051a39Sopenharmony_ci return s2i_ASN1_INTEGER(meth, value); 35e1051a39Sopenharmony_ci} 36e1051a39Sopenharmony_ci 37e1051a39Sopenharmony_ciconst X509V3_EXT_METHOD ossl_v3_inhibit_anyp = { 38e1051a39Sopenharmony_ci NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER), 39e1051a39Sopenharmony_ci 0, 0, 0, 0, 40e1051a39Sopenharmony_ci (X509V3_EXT_I2S)i2s_ASN1_INTEGER, 41e1051a39Sopenharmony_ci (X509V3_EXT_S2I)s2i_asn1_int, 42e1051a39Sopenharmony_ci 0, 0, 0, 0, NULL 43e1051a39Sopenharmony_ci}; 44