2015-01-22 11:40:55 +08:00
|
|
|
/*
|
2021-04-08 20:04:41 +08:00
|
|
|
* Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
|
1999-02-19 09:29:29 +08:00
|
|
|
*
|
2018-12-06 21:00:54 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 02:51:26 +08:00
|
|
|
* 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
|
1999-02-19 09:29:29 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 22:56:48 +08:00
|
|
|
#include "internal/cryptlib.h"
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/x509v3.h>
|
2015-09-05 20:32:58 +08:00
|
|
|
#include "ext_dat.h"
|
1999-02-19 09:29:29 +08:00
|
|
|
|
2021-03-09 08:52:15 +08:00
|
|
|
const X509V3_EXT_METHOD ossl_v3_crl_num = {
|
2015-01-22 11:40:55 +08:00
|
|
|
NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER),
|
|
|
|
0, 0, 0, 0,
|
|
|
|
(X509V3_EXT_I2S)i2s_ASN1_INTEGER,
|
|
|
|
0,
|
|
|
|
0, 0, 0, 0, NULL
|
|
|
|
};
|
2004-03-08 21:56:31 +08:00
|
|
|
|
2021-03-09 08:52:15 +08:00
|
|
|
const X509V3_EXT_METHOD ossl_v3_delta_crl = {
|
2015-01-22 11:40:55 +08:00
|
|
|
NID_delta_crl, 0, ASN1_ITEM_ref(ASN1_INTEGER),
|
|
|
|
0, 0, 0, 0,
|
|
|
|
(X509V3_EXT_I2S)i2s_ASN1_INTEGER,
|
|
|
|
0,
|
|
|
|
0, 0, 0, 0, NULL
|
|
|
|
};
|
2004-03-08 21:56:31 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
static void *s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx,
|
2016-06-13 00:20:40 +08:00
|
|
|
const char *value)
|
2015-01-22 11:40:55 +08:00
|
|
|
{
|
|
|
|
return s2i_ASN1_INTEGER(meth, value);
|
|
|
|
}
|
1999-02-19 09:29:29 +08:00
|
|
|
|
2021-03-09 08:52:15 +08:00
|
|
|
const X509V3_EXT_METHOD ossl_v3_inhibit_anyp = {
|
2015-01-22 11:40:55 +08:00
|
|
|
NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER),
|
|
|
|
0, 0, 0, 0,
|
|
|
|
(X509V3_EXT_I2S)i2s_ASN1_INTEGER,
|
|
|
|
(X509V3_EXT_S2I)s2i_asn1_int,
|
|
|
|
0, 0, 0, 0, NULL
|
|
|
|
};
|