Replace the macros in asn1.h with function equivalents. Also make UTF8Strings
tolerated in certificates.
This commit is contained in:
@@ -60,8 +60,6 @@
|
||||
#include "cryptlib.h"
|
||||
#include <openssl/x509v3.h>
|
||||
|
||||
static ASN1_ENUMERATED *asn1_enumerated_new(void);
|
||||
|
||||
static ENUMERATED_NAMES crl_reasons[] = {
|
||||
{0, "Unspecified", "unspecified"},
|
||||
{1, "Key Compromise", "keyCompromise"},
|
||||
@@ -76,8 +74,8 @@ static ENUMERATED_NAMES crl_reasons[] = {
|
||||
|
||||
X509V3_EXT_METHOD v3_crl_reason = {
|
||||
NID_crl_reason, 0,
|
||||
(X509V3_EXT_NEW)asn1_enumerated_new,
|
||||
(X509V3_EXT_FREE)ASN1_STRING_free,
|
||||
(X509V3_EXT_NEW)ASN1_ENUMERATED_new,
|
||||
(X509V3_EXT_FREE)ASN1_ENUMERATED_free,
|
||||
(X509V3_EXT_D2I)d2i_ASN1_ENUMERATED,
|
||||
(X509V3_EXT_I2D)i2d_ASN1_ENUMERATED,
|
||||
(X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE,
|
||||
@@ -85,11 +83,6 @@ NID_crl_reason, 0,
|
||||
NULL, NULL, NULL, NULL, crl_reasons};
|
||||
|
||||
|
||||
static ASN1_ENUMERATED *asn1_enumerated_new(void)
|
||||
{
|
||||
return ASN1_ENUMERATED_new();
|
||||
}
|
||||
|
||||
char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method,
|
||||
ASN1_ENUMERATED *e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user