diff options
author | markus <> | 2002-09-05 12:51:50 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 12:51:50 +0000 |
commit | 15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (patch) | |
tree | bf939e82d7fd73cc8a01cf6959002209972091bc /src/lib/libcrypto/x509v3/v3_enum.c | |
parent | 027351f729b9e837200dae6e1520cda6577ab930 (diff) | |
download | openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.gz openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.bz2 openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.zip |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_enum.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_enum.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_enum.c b/src/lib/libcrypto/x509v3/v3_enum.c index db423548ff..010c9d6260 100644 --- a/src/lib/libcrypto/x509v3/v3_enum.c +++ b/src/lib/libcrypto/x509v3/v3_enum.c | |||
@@ -60,8 +60,6 @@ | |||
60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
61 | #include <openssl/x509v3.h> | 61 | #include <openssl/x509v3.h> |
62 | 62 | ||
63 | static ASN1_ENUMERATED *asn1_enumerated_new(void); | ||
64 | |||
65 | static ENUMERATED_NAMES crl_reasons[] = { | 63 | static ENUMERATED_NAMES crl_reasons[] = { |
66 | {0, "Unspecified", "unspecified"}, | 64 | {0, "Unspecified", "unspecified"}, |
67 | {1, "Key Compromise", "keyCompromise"}, | 65 | {1, "Key Compromise", "keyCompromise"}, |
@@ -75,20 +73,13 @@ static ENUMERATED_NAMES crl_reasons[] = { | |||
75 | }; | 73 | }; |
76 | 74 | ||
77 | X509V3_EXT_METHOD v3_crl_reason = { | 75 | X509V3_EXT_METHOD v3_crl_reason = { |
78 | NID_crl_reason, 0, | 76 | NID_crl_reason, 0, ASN1_ITEM_ref(ASN1_ENUMERATED), |
79 | (X509V3_EXT_NEW)asn1_enumerated_new, | 77 | 0,0,0,0, |
80 | (X509V3_EXT_FREE)ASN1_STRING_free, | ||
81 | (X509V3_EXT_D2I)d2i_ASN1_ENUMERATED, | ||
82 | (X509V3_EXT_I2D)i2d_ASN1_ENUMERATED, | ||
83 | (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE, | 78 | (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE, |
84 | (X509V3_EXT_S2I)NULL, | 79 | 0, |
85 | NULL, NULL, NULL, NULL, crl_reasons}; | 80 | 0,0,0,0, |
86 | 81 | crl_reasons}; | |
87 | 82 | ||
88 | static ASN1_ENUMERATED *asn1_enumerated_new(void) | ||
89 | { | ||
90 | return ASN1_ENUMERATED_new(); | ||
91 | } | ||
92 | 83 | ||
93 | char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, | 84 | char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, |
94 | ASN1_ENUMERATED *e) | 85 | ASN1_ENUMERATED *e) |