summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_locl.h')
-rw-r--r--src/lib/libcrypto/asn1/asn1_locl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h
index 2c6087bf02..64bf8ec2fa 100644
--- a/src/lib/libcrypto/asn1/asn1_locl.h
+++ b/src/lib/libcrypto/asn1/asn1_locl.h
@@ -61,18 +61,18 @@
61/* ASN1 print context structure */ 61/* ASN1 print context structure */
62 62
63struct asn1_pctx_st 63struct asn1_pctx_st
64 { 64{
65 unsigned long flags; 65 unsigned long flags;
66 unsigned long nm_flags; 66 unsigned long nm_flags;
67 unsigned long cert_flags; 67 unsigned long cert_flags;
68 unsigned long oid_flags; 68 unsigned long oid_flags;
69 unsigned long str_flags; 69 unsigned long str_flags;
70 } /* ASN1_PCTX */; 70} /* ASN1_PCTX */;
71 71
72/* ASN1 public key method structure */ 72/* ASN1 public key method structure */
73 73
74struct evp_pkey_asn1_method_st 74struct evp_pkey_asn1_method_st
75 { 75{
76 int pkey_id; 76 int pkey_id;
77 int pkey_base_id; 77 int pkey_base_id;
78 unsigned long pkey_flags; 78 unsigned long pkey_flags;
@@ -123,7 +123,7 @@ struct evp_pkey_asn1_method_st
123 X509_ALGOR *alg1, X509_ALGOR *alg2, 123 X509_ALGOR *alg1, X509_ALGOR *alg2,
124 ASN1_BIT_STRING *sig); 124 ASN1_BIT_STRING *sig);
125 125
126 } /* EVP_PKEY_ASN1_METHOD */; 126} /* EVP_PKEY_ASN1_METHOD */;
127 127
128/* Method to handle CRL access. 128/* Method to handle CRL access.
129 * In general a CRL could be very large (several Mb) and can consume large 129 * In general a CRL could be very large (several Mb) and can consume large
@@ -135,14 +135,14 @@ struct evp_pkey_asn1_method_st
135#define X509_CRL_METHOD_DYNAMIC 1 135#define X509_CRL_METHOD_DYNAMIC 1
136 136
137struct x509_crl_method_st 137struct x509_crl_method_st
138 { 138{
139 int flags; 139 int flags;
140 int (*crl_init)(X509_CRL *crl); 140 int (*crl_init)(X509_CRL *crl);
141 int (*crl_free)(X509_CRL *crl); 141 int (*crl_free)(X509_CRL *crl);
142 int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, 142 int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret,
143 ASN1_INTEGER *ser, X509_NAME *issuer); 143 ASN1_INTEGER *ser, X509_NAME *issuer);
144 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk); 144 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk);
145 }; 145};
146 146
147/* 147/*
148 * Unicode codepoint constants 148 * Unicode codepoint constants
@@ -154,3 +154,5 @@ struct x509_crl_method_st
154#define UNICODE_IS_SURROGATE(x) \ 154#define UNICODE_IS_SURROGATE(x) \
155 ((x) >= UNICODE_SURROGATE_MIN && (x) <= UNICODE_SURROGATE_MAX) 155 ((x) >= UNICODE_SURROGATE_MIN && (x) <= UNICODE_SURROGATE_MAX)
156 156
157int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
158int UTF8_putc(unsigned char *str, int len, unsigned long value);