| 1 |
// Written by Dr Stephen N Henson ([email protected]) for the OpenSSL project 1999. |
| 2 |
// Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. |
| 3 |
// SPDX-License-Identifier: Apache-2.0 |
| 4 |
|
| 5 |
#include <stdio.h> |
| 6 |
|
| 7 |
#include <openssl/obj.h> |
| 8 |
#include <openssl/x509.h> |
| 9 |
|
| 10 |
|
| 11 |
static char *i2s_ASN1_INTEGER_cb(const X509V3_EXT_METHOD *method, void *ext) { |
| 12 |
return i2s_ASN1_INTEGER(method, ext); |
| 13 |
} |
| 14 |
|
| 15 |
static void *s2i_asn1_int(const X509V3_EXT_METHOD *meth, const X509V3_CTX *ctx, |
| 16 |
const char *value) { |
| 17 |
return s2i_ASN1_INTEGER(meth, value); |
| 18 |
} |
| 19 |
|
| 20 |
const X509V3_EXT_METHOD v3_crl_num = { |
| 21 |
NID_crl_number, |
| 22 |
0, |
| 23 |
ASN1_ITEM_ref(ASN1_INTEGER), |
| 24 |
0, |
| 25 |
0, |
| 26 |
0, |
| 27 |
0, |
| 28 |
i2s_ASN1_INTEGER_cb, |
| 29 |
0, |
| 30 |
0, |
| 31 |
0, |
| 32 |
0, |
| 33 |
0, |
| 34 |
NULL, |
| 35 |
}; |
| 36 |
|
| 37 |
const X509V3_EXT_METHOD v3_delta_crl = { |
| 38 |
NID_delta_crl, |
| 39 |
0, |
| 40 |
ASN1_ITEM_ref(ASN1_INTEGER), |
| 41 |
0, |
| 42 |
0, |
| 43 |
0, |
| 44 |
0, |
| 45 |
i2s_ASN1_INTEGER_cb, |
| 46 |
0, |
| 47 |
0, |
| 48 |
0, |
| 49 |
0, |
| 50 |
0, |
| 51 |
NULL, |
| 52 |
}; |
| 53 |
|
| 54 |
const X509V3_EXT_METHOD v3_inhibit_anyp = { |
| 55 |
NID_inhibit_any_policy, |
| 56 |
0, |
| 57 |
ASN1_ITEM_ref(ASN1_INTEGER), |
| 58 |
0, |
| 59 |
0, |
| 60 |
0, |
| 61 |
0, |
| 62 |
i2s_ASN1_INTEGER_cb, |
| 63 |
s2i_asn1_int, |
| 64 |
0, |
| 65 |
0, |
| 66 |
0, |
| 67 |
0, |
| 68 |
NULL, |
| 69 |
}; |