2015-01-22 03:40:55 +00:00
|
|
|
/*
|
2016-05-17 18:51:26 +00:00
|
|
|
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1999-02-19 01:29:29 +00:00
|
|
|
*
|
2016-05-17 18:51:26 +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
|
1999-02-19 01:29:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 14:56:48 +00:00
|
|
|
#include "internal/cryptlib.h"
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/x509v3.h>
|
2015-09-05 12:32:58 +00:00
|
|
|
#include "ext_dat.h"
|
1999-02-19 01:29:29 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
const X509V3_EXT_METHOD v3_crl_num = {
|
|
|
|
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 13:56:31 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
const X509V3_EXT_METHOD v3_delta_crl = {
|
|
|
|
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 13:56:31 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
static void *s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx,
|
|
|
|
char *value)
|
|
|
|
{
|
|
|
|
return s2i_ASN1_INTEGER(meth, value);
|
|
|
|
}
|
1999-02-19 01:29:29 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
const X509V3_EXT_METHOD v3_inhibit_anyp = {
|
|
|
|
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
|
|
|
|
};
|