Remove obsolete declarations.
Remove DECLARE_ASN1_SET_OF and DECLARE_PKCS12_STACK_OF these haven't been used internally in OpenSSL for some time. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
@@ -159,8 +159,6 @@ extern "C" {
|
|||||||
struct X509_algor_st;
|
struct X509_algor_st;
|
||||||
DECLARE_STACK_OF(X509_ALGOR)
|
DECLARE_STACK_OF(X509_ALGOR)
|
||||||
|
|
||||||
# define DECLARE_ASN1_SET_OF(type)/* filled in by mkstack.pl */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We MUST make sure that, except for constness, asn1_ctx_st and
|
* We MUST make sure that, except for constness, asn1_ctx_st and
|
||||||
* asn1_const_ctx are exactly the same. Fortunately, as soon as the old ASN1
|
* asn1_const_ctx are exactly the same. Fortunately, as soon as the old ASN1
|
||||||
@@ -521,7 +519,6 @@ typedef const ASN1_ITEM *ASN1_ITEM_EXP (void);
|
|||||||
ASN1_STRFLGS_DUMP_DER)
|
ASN1_STRFLGS_DUMP_DER)
|
||||||
|
|
||||||
DECLARE_STACK_OF(ASN1_INTEGER)
|
DECLARE_STACK_OF(ASN1_INTEGER)
|
||||||
DECLARE_ASN1_SET_OF(ASN1_INTEGER)
|
|
||||||
|
|
||||||
DECLARE_STACK_OF(ASN1_GENERALSTRING)
|
DECLARE_STACK_OF(ASN1_GENERALSTRING)
|
||||||
|
|
||||||
@@ -557,7 +554,6 @@ typedef struct asn1_type_st {
|
|||||||
} ASN1_TYPE;
|
} ASN1_TYPE;
|
||||||
|
|
||||||
DECLARE_STACK_OF(ASN1_TYPE)
|
DECLARE_STACK_OF(ASN1_TYPE)
|
||||||
DECLARE_ASN1_SET_OF(ASN1_TYPE)
|
|
||||||
|
|
||||||
typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;
|
typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;
|
||||||
|
|
||||||
@@ -795,7 +791,6 @@ ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,
|
|||||||
DECLARE_ASN1_ITEM(ASN1_OBJECT)
|
DECLARE_ASN1_ITEM(ASN1_OBJECT)
|
||||||
|
|
||||||
DECLARE_STACK_OF(ASN1_OBJECT)
|
DECLARE_STACK_OF(ASN1_OBJECT)
|
||||||
DECLARE_ASN1_SET_OF(ASN1_OBJECT)
|
|
||||||
|
|
||||||
ASN1_STRING *ASN1_STRING_new(void);
|
ASN1_STRING *ASN1_STRING_new(void);
|
||||||
void ASN1_STRING_free(ASN1_STRING *a);
|
void ASN1_STRING_free(ASN1_STRING *a);
|
||||||
|
@@ -100,7 +100,6 @@ DECLARE_STACK_OF(OCSP_CERTID)
|
|||||||
typedef struct ocsp_one_request_st OCSP_ONEREQ;
|
typedef struct ocsp_one_request_st OCSP_ONEREQ;
|
||||||
|
|
||||||
DECLARE_STACK_OF(OCSP_ONEREQ)
|
DECLARE_STACK_OF(OCSP_ONEREQ)
|
||||||
DECLARE_ASN1_SET_OF(OCSP_ONEREQ)
|
|
||||||
|
|
||||||
typedef struct ocsp_req_info_st OCSP_REQINFO;
|
typedef struct ocsp_req_info_st OCSP_REQINFO;
|
||||||
typedef struct ocsp_signature_st OCSP_SIGNATURE;
|
typedef struct ocsp_signature_st OCSP_SIGNATURE;
|
||||||
@@ -131,7 +130,6 @@ typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
|
|||||||
typedef struct ocsp_single_response_st OCSP_SINGLERESP;
|
typedef struct ocsp_single_response_st OCSP_SINGLERESP;
|
||||||
|
|
||||||
DECLARE_STACK_OF(OCSP_SINGLERESP)
|
DECLARE_STACK_OF(OCSP_SINGLERESP)
|
||||||
DECLARE_ASN1_SET_OF(OCSP_SINGLERESP)
|
|
||||||
|
|
||||||
typedef struct ocsp_response_data_st OCSP_RESPDATA;
|
typedef struct ocsp_response_data_st OCSP_RESPDATA;
|
||||||
|
|
||||||
|
@@ -188,10 +188,6 @@ typedef struct DIST_POINT_st DIST_POINT;
|
|||||||
typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
|
typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
|
||||||
typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
|
typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
|
||||||
|
|
||||||
/* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */
|
|
||||||
# define DECLARE_PKCS12_STACK_OF(type)/* Nothing */
|
|
||||||
# define IMPLEMENT_PKCS12_STACK_OF(type)/* Nothing */
|
|
||||||
|
|
||||||
typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
|
typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
|
||||||
/* Callback types for crypto.h */
|
/* Callback types for crypto.h */
|
||||||
typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
||||||
|
@@ -198,5 +198,3 @@ ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,
|
|||||||
ASN1_OCTET_STRING_free(oct);
|
ASN1_OCTET_STRING_free(oct);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPLEMENT_PKCS12_STACK_OF(PKCS7)
|
|
||||||
|
@@ -124,8 +124,6 @@ typedef struct {
|
|||||||
} PKCS12_SAFEBAG;
|
} PKCS12_SAFEBAG;
|
||||||
|
|
||||||
DECLARE_STACK_OF(PKCS12_SAFEBAG)
|
DECLARE_STACK_OF(PKCS12_SAFEBAG)
|
||||||
DECLARE_ASN1_SET_OF(PKCS12_SAFEBAG)
|
|
||||||
DECLARE_PKCS12_STACK_OF(PKCS12_SAFEBAG)
|
|
||||||
|
|
||||||
typedef struct pkcs12_bag_st {
|
typedef struct pkcs12_bag_st {
|
||||||
ASN1_OBJECT *type;
|
ASN1_OBJECT *type;
|
||||||
|
@@ -101,7 +101,6 @@ typedef struct pkcs7_signer_info_st {
|
|||||||
} PKCS7_SIGNER_INFO;
|
} PKCS7_SIGNER_INFO;
|
||||||
|
|
||||||
DECLARE_STACK_OF(PKCS7_SIGNER_INFO)
|
DECLARE_STACK_OF(PKCS7_SIGNER_INFO)
|
||||||
DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO)
|
|
||||||
|
|
||||||
typedef struct pkcs7_recip_info_st {
|
typedef struct pkcs7_recip_info_st {
|
||||||
ASN1_INTEGER *version; /* version 0 */
|
ASN1_INTEGER *version; /* version 0 */
|
||||||
@@ -112,7 +111,6 @@ typedef struct pkcs7_recip_info_st {
|
|||||||
} PKCS7_RECIP_INFO;
|
} PKCS7_RECIP_INFO;
|
||||||
|
|
||||||
DECLARE_STACK_OF(PKCS7_RECIP_INFO)
|
DECLARE_STACK_OF(PKCS7_RECIP_INFO)
|
||||||
DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO)
|
|
||||||
|
|
||||||
typedef struct pkcs7_signed_st {
|
typedef struct pkcs7_signed_st {
|
||||||
ASN1_INTEGER *version; /* version 1 */
|
ASN1_INTEGER *version; /* version 1 */
|
||||||
@@ -200,8 +198,6 @@ typedef struct pkcs7_st {
|
|||||||
} PKCS7;
|
} PKCS7;
|
||||||
|
|
||||||
DECLARE_STACK_OF(PKCS7)
|
DECLARE_STACK_OF(PKCS7)
|
||||||
DECLARE_ASN1_SET_OF(PKCS7)
|
|
||||||
DECLARE_PKCS12_STACK_OF(PKCS7)
|
|
||||||
|
|
||||||
# define PKCS7_OP_SET_DETACHED_SIGNATURE 1
|
# define PKCS7_OP_SET_DETACHED_SIGNATURE 1
|
||||||
# define PKCS7_OP_GET_DETACHED_SIGNATURE 2
|
# define PKCS7_OP_GET_DETACHED_SIGNATURE 2
|
||||||
|
@@ -2327,237 +2327,6 @@ DECLARE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
|
|||||||
# define sk_OPENSSL_PSTRING_sort(st) SKM_sk_sort(OPENSSL_PSTRING, (st))
|
# define sk_OPENSSL_PSTRING_sort(st) SKM_sk_sort(OPENSSL_PSTRING, (st))
|
||||||
# define sk_OPENSSL_PSTRING_is_sorted(st) SKM_sk_is_sorted(OPENSSL_PSTRING, (st))
|
# define sk_OPENSSL_PSTRING_is_sorted(st) SKM_sk_is_sorted(OPENSSL_PSTRING, (st))
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ACCESS_DESCRIPTION, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ACCESS_DESCRIPTION, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ACCESS_DESCRIPTION(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ACCESS_DESCRIPTION, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ACCESS_DESCRIPTION(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ACCESS_DESCRIPTION, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ASN1_INTEGER(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ASN1_INTEGER, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ASN1_INTEGER(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ASN1_INTEGER, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ASN1_INTEGER(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ASN1_INTEGER, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ASN1_INTEGER(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ASN1_INTEGER, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ASN1_OBJECT(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ASN1_OBJECT, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ASN1_OBJECT(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ASN1_OBJECT, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ASN1_OBJECT(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ASN1_OBJECT, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ASN1_OBJECT(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ASN1_OBJECT, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ASN1_TYPE(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ASN1_TYPE, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ASN1_TYPE(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ASN1_TYPE, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ASN1_TYPE(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ASN1_TYPE, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ASN1_TYPE(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ASN1_TYPE, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ASN1_UTF8STRING(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ASN1_UTF8STRING, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ASN1_UTF8STRING(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ASN1_UTF8STRING, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ASN1_UTF8STRING(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ASN1_UTF8STRING, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ASN1_UTF8STRING(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ASN1_UTF8STRING, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_DIST_POINT(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(DIST_POINT, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_DIST_POINT(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(DIST_POINT, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_DIST_POINT(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(DIST_POINT, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_DIST_POINT(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(DIST_POINT, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_ESS_CERT_ID(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(ESS_CERT_ID, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_ESS_CERT_ID(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(ESS_CERT_ID, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_ESS_CERT_ID(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(ESS_CERT_ID, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_ESS_CERT_ID(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(ESS_CERT_ID, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_EVP_MD(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(EVP_MD, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_EVP_MD(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(EVP_MD, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_EVP_MD(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(EVP_MD, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_EVP_MD(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(EVP_MD, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_GENERAL_NAME(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(GENERAL_NAME, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_GENERAL_NAME(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(GENERAL_NAME, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_GENERAL_NAME(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(GENERAL_NAME, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_GENERAL_NAME(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(GENERAL_NAME, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_OCSP_ONEREQ(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(OCSP_ONEREQ, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_OCSP_ONEREQ(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(OCSP_ONEREQ, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_OCSP_ONEREQ(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(OCSP_ONEREQ, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_OCSP_ONEREQ(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(OCSP_ONEREQ, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_OCSP_SINGLERESP(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(OCSP_SINGLERESP, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_OCSP_SINGLERESP(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(OCSP_SINGLERESP, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_OCSP_SINGLERESP(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(OCSP_SINGLERESP, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_OCSP_SINGLERESP(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(OCSP_SINGLERESP, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_PKCS12_SAFEBAG(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(PKCS12_SAFEBAG, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_PKCS12_SAFEBAG(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(PKCS12_SAFEBAG, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_PKCS12_SAFEBAG(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(PKCS12_SAFEBAG, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_PKCS12_SAFEBAG(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(PKCS12_SAFEBAG, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_PKCS7(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(PKCS7, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_PKCS7(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(PKCS7, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_PKCS7(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(PKCS7, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_PKCS7(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(PKCS7, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(PKCS7_RECIP_INFO, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(PKCS7_RECIP_INFO, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_PKCS7_RECIP_INFO(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(PKCS7_RECIP_INFO, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_PKCS7_RECIP_INFO(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(PKCS7_RECIP_INFO, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(PKCS7_SIGNER_INFO, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(PKCS7_SIGNER_INFO, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_PKCS7_SIGNER_INFO(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(PKCS7_SIGNER_INFO, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_PKCS7_SIGNER_INFO(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(PKCS7_SIGNER_INFO, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_POLICYINFO(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(POLICYINFO, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_POLICYINFO(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(POLICYINFO, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_POLICYINFO(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(POLICYINFO, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_POLICYINFO(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(POLICYINFO, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_POLICYQUALINFO(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(POLICYQUALINFO, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_POLICYQUALINFO(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(POLICYQUALINFO, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_POLICYQUALINFO(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(POLICYQUALINFO, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_POLICYQUALINFO(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(POLICYQUALINFO, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_SXNETID(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(SXNETID, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_SXNETID(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(SXNETID, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_SXNETID(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(SXNETID, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_SXNETID(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(SXNETID, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_ALGOR(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_ALGOR, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_ALGOR(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_ALGOR, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_ALGOR(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_ALGOR, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_ALGOR(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_ALGOR, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_ATTRIBUTE(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_ATTRIBUTE, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_ATTRIBUTE(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_ATTRIBUTE, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_ATTRIBUTE(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_ATTRIBUTE, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_ATTRIBUTE(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_ATTRIBUTE, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_CRL(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_CRL, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_CRL(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_CRL, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_CRL(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_CRL, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_CRL(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_CRL, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_EXTENSION(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_EXTENSION, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_EXTENSION(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_EXTENSION, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_EXTENSION(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_EXTENSION, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_EXTENSION(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_EXTENSION, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_NAME_ENTRY(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_NAME_ENTRY, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_NAME_ENTRY(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_NAME_ENTRY, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_NAME_ENTRY(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_NAME_ENTRY, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_NAME_ENTRY(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_NAME_ENTRY, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_X509_REVOKED(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \
|
|
||||||
SKM_ASN1_SET_OF_d2i(X509_REVOKED, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_X509_REVOKED(st, pp, i2d_func, ex_tag, ex_class, is_set) \
|
|
||||||
SKM_ASN1_SET_OF_i2d(X509_REVOKED, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_X509_REVOKED(st, i2d_func, buf, len) \
|
|
||||||
SKM_ASN1_seq_pack(X509_REVOKED, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_X509_REVOKED(buf, len, d2i_func, free_func) \
|
|
||||||
SKM_ASN1_seq_unpack(X509_REVOKED, (buf), (len), (d2i_func), (free_func))
|
|
||||||
|
|
||||||
# define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \
|
|
||||||
SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
|
|
||||||
|
|
||||||
# define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \
|
|
||||||
SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
|
|
||||||
|
|
||||||
# define lh_ADDED_OBJ_new() LHM_lh_new(ADDED_OBJ,added_obj)
|
# define lh_ADDED_OBJ_new() LHM_lh_new(ADDED_OBJ,added_obj)
|
||||||
# define lh_ADDED_OBJ_insert(lh,inst) LHM_lh_insert(ADDED_OBJ,lh,inst)
|
# define lh_ADDED_OBJ_insert(lh,inst) LHM_lh_insert(ADDED_OBJ,lh,inst)
|
||||||
# define lh_ADDED_OBJ_retrieve(lh,inst) LHM_lh_retrieve(ADDED_OBJ,lh,inst)
|
# define lh_ADDED_OBJ_retrieve(lh,inst) LHM_lh_retrieve(ADDED_OBJ,lh,inst)
|
||||||
|
@@ -213,7 +213,6 @@ typedef struct TS_status_info_st {
|
|||||||
} TS_STATUS_INFO;
|
} TS_STATUS_INFO;
|
||||||
|
|
||||||
DECLARE_STACK_OF(ASN1_UTF8STRING)
|
DECLARE_STACK_OF(ASN1_UTF8STRING)
|
||||||
DECLARE_ASN1_SET_OF(ASN1_UTF8STRING)
|
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
TimeStampResp ::= SEQUENCE {
|
TimeStampResp ::= SEQUENCE {
|
||||||
@@ -254,7 +253,6 @@ typedef struct ESS_cert_id {
|
|||||||
} ESS_CERT_ID;
|
} ESS_CERT_ID;
|
||||||
|
|
||||||
DECLARE_STACK_OF(ESS_CERT_ID)
|
DECLARE_STACK_OF(ESS_CERT_ID)
|
||||||
DECLARE_ASN1_SET_OF(ESS_CERT_ID)
|
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
SigningCertificate ::= SEQUENCE {
|
SigningCertificate ::= SEQUENCE {
|
||||||
@@ -516,7 +514,6 @@ typedef struct TS_resp_ctx {
|
|||||||
} TS_RESP_CTX;
|
} TS_RESP_CTX;
|
||||||
|
|
||||||
DECLARE_STACK_OF(EVP_MD)
|
DECLARE_STACK_OF(EVP_MD)
|
||||||
DECLARE_ASN1_SET_OF(EVP_MD)
|
|
||||||
|
|
||||||
/* Creates a response context that can be used for generating responses. */
|
/* Creates a response context that can be used for generating responses. */
|
||||||
TS_RESP_CTX *TS_RESP_CTX_new(void);
|
TS_RESP_CTX *TS_RESP_CTX_new(void);
|
||||||
|
@@ -130,8 +130,6 @@ struct X509_algor_st {
|
|||||||
ASN1_TYPE *parameter;
|
ASN1_TYPE *parameter;
|
||||||
} /* X509_ALGOR */ ;
|
} /* X509_ALGOR */ ;
|
||||||
|
|
||||||
DECLARE_ASN1_SET_OF(X509_ALGOR)
|
|
||||||
|
|
||||||
typedef STACK_OF(X509_ALGOR) X509_ALGORS;
|
typedef STACK_OF(X509_ALGOR) X509_ALGORS;
|
||||||
|
|
||||||
typedef struct X509_val_st {
|
typedef struct X509_val_st {
|
||||||
@@ -158,7 +156,6 @@ typedef struct X509_name_entry_st {
|
|||||||
} X509_NAME_ENTRY;
|
} X509_NAME_ENTRY;
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509_NAME_ENTRY)
|
DECLARE_STACK_OF(X509_NAME_ENTRY)
|
||||||
DECLARE_ASN1_SET_OF(X509_NAME_ENTRY)
|
|
||||||
|
|
||||||
/* we always keep X509_NAMEs in 2 forms. */
|
/* we always keep X509_NAMEs in 2 forms. */
|
||||||
struct X509_name_st {
|
struct X509_name_st {
|
||||||
@@ -183,7 +180,6 @@ typedef struct X509_extension_st {
|
|||||||
typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
|
typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509_EXTENSION)
|
DECLARE_STACK_OF(X509_EXTENSION)
|
||||||
DECLARE_ASN1_SET_OF(X509_EXTENSION)
|
|
||||||
|
|
||||||
/* a sequence of these are used */
|
/* a sequence of these are used */
|
||||||
typedef struct x509_attributes_st {
|
typedef struct x509_attributes_st {
|
||||||
@@ -202,7 +198,6 @@ typedef struct x509_attributes_st {
|
|||||||
} X509_ATTRIBUTE;
|
} X509_ATTRIBUTE;
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509_ATTRIBUTE)
|
DECLARE_STACK_OF(X509_ATTRIBUTE)
|
||||||
DECLARE_ASN1_SET_OF(X509_ATTRIBUTE)
|
|
||||||
|
|
||||||
typedef struct X509_req_info_st {
|
typedef struct X509_req_info_st {
|
||||||
ASN1_ENCODING enc;
|
ASN1_ENCODING enc;
|
||||||
@@ -276,7 +271,6 @@ struct x509_st {
|
|||||||
} /* X509 */ ;
|
} /* X509 */ ;
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509)
|
DECLARE_STACK_OF(X509)
|
||||||
DECLARE_ASN1_SET_OF(X509)
|
|
||||||
|
|
||||||
/* This is used for a table of trust checking functions */
|
/* This is used for a table of trust checking functions */
|
||||||
|
|
||||||
@@ -408,7 +402,6 @@ struct x509_revoked_st {
|
|||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509_REVOKED)
|
DECLARE_STACK_OF(X509_REVOKED)
|
||||||
DECLARE_ASN1_SET_OF(X509_REVOKED)
|
|
||||||
|
|
||||||
typedef struct X509_crl_info_st {
|
typedef struct X509_crl_info_st {
|
||||||
ASN1_INTEGER *version;
|
ASN1_INTEGER *version;
|
||||||
@@ -444,7 +437,6 @@ struct X509_crl_st {
|
|||||||
} /* X509_CRL */ ;
|
} /* X509_CRL */ ;
|
||||||
|
|
||||||
DECLARE_STACK_OF(X509_CRL)
|
DECLARE_STACK_OF(X509_CRL)
|
||||||
DECLARE_ASN1_SET_OF(X509_CRL)
|
|
||||||
|
|
||||||
typedef struct private_key_st {
|
typedef struct private_key_st {
|
||||||
int version;
|
int version;
|
||||||
|
@@ -218,10 +218,8 @@ typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;
|
|||||||
typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
|
typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
|
||||||
|
|
||||||
DECLARE_STACK_OF(GENERAL_NAME)
|
DECLARE_STACK_OF(GENERAL_NAME)
|
||||||
DECLARE_ASN1_SET_OF(GENERAL_NAME)
|
|
||||||
|
|
||||||
DECLARE_STACK_OF(ACCESS_DESCRIPTION)
|
DECLARE_STACK_OF(ACCESS_DESCRIPTION)
|
||||||
DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION)
|
|
||||||
|
|
||||||
typedef struct DIST_POINT_NAME_st {
|
typedef struct DIST_POINT_NAME_st {
|
||||||
int type;
|
int type;
|
||||||
@@ -257,7 +255,6 @@ struct DIST_POINT_st {
|
|||||||
typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
|
typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
|
||||||
|
|
||||||
DECLARE_STACK_OF(DIST_POINT)
|
DECLARE_STACK_OF(DIST_POINT)
|
||||||
DECLARE_ASN1_SET_OF(DIST_POINT)
|
|
||||||
|
|
||||||
struct AUTHORITY_KEYID_st {
|
struct AUTHORITY_KEYID_st {
|
||||||
ASN1_OCTET_STRING *keyid;
|
ASN1_OCTET_STRING *keyid;
|
||||||
@@ -273,7 +270,6 @@ typedef struct SXNET_ID_st {
|
|||||||
} SXNETID;
|
} SXNETID;
|
||||||
|
|
||||||
DECLARE_STACK_OF(SXNETID)
|
DECLARE_STACK_OF(SXNETID)
|
||||||
DECLARE_ASN1_SET_OF(SXNETID)
|
|
||||||
|
|
||||||
typedef struct SXNET_st {
|
typedef struct SXNET_st {
|
||||||
ASN1_INTEGER *version;
|
ASN1_INTEGER *version;
|
||||||
@@ -300,7 +296,6 @@ typedef struct POLICYQUALINFO_st {
|
|||||||
} POLICYQUALINFO;
|
} POLICYQUALINFO;
|
||||||
|
|
||||||
DECLARE_STACK_OF(POLICYQUALINFO)
|
DECLARE_STACK_OF(POLICYQUALINFO)
|
||||||
DECLARE_ASN1_SET_OF(POLICYQUALINFO)
|
|
||||||
|
|
||||||
typedef struct POLICYINFO_st {
|
typedef struct POLICYINFO_st {
|
||||||
ASN1_OBJECT *policyid;
|
ASN1_OBJECT *policyid;
|
||||||
@@ -310,7 +305,6 @@ typedef struct POLICYINFO_st {
|
|||||||
typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;
|
typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;
|
||||||
|
|
||||||
DECLARE_STACK_OF(POLICYINFO)
|
DECLARE_STACK_OF(POLICYINFO)
|
||||||
DECLARE_ASN1_SET_OF(POLICYINFO)
|
|
||||||
|
|
||||||
typedef struct POLICY_MAPPING_st {
|
typedef struct POLICY_MAPPING_st {
|
||||||
ASN1_OBJECT *issuerDomainPolicy;
|
ASN1_OBJECT *issuerDomainPolicy;
|
||||||
|
@@ -30,12 +30,6 @@ foreach $file (@source) {
|
|||||||
elsif (/^DECLARE_SPECIAL_STACK_OF\(([^,\s]+)\s*,\s*([^>\s]+)\)/) {
|
elsif (/^DECLARE_SPECIAL_STACK_OF\(([^,\s]+)\s*,\s*([^>\s]+)\)/) {
|
||||||
push @sstacklst, [$1, $2];
|
push @sstacklst, [$1, $2];
|
||||||
}
|
}
|
||||||
elsif (/^DECLARE_ASN1_SET_OF\(([^)]+)\)/) {
|
|
||||||
push @asn1setlst, $1;
|
|
||||||
}
|
|
||||||
elsif (/^DECLARE_PKCS12_STACK_OF\(([^)]+)\)/) {
|
|
||||||
push @p12stklst, $1;
|
|
||||||
}
|
|
||||||
elsif (/^DECLARE_LHASH_OF\(([^)]+)\)/) {
|
elsif (/^DECLARE_LHASH_OF\(([^)]+)\)/) {
|
||||||
push @lhashlst, $1;
|
push @lhashlst, $1;
|
||||||
}
|
}
|
||||||
@@ -321,28 +315,6 @@ foreach $type_thing (sort @sstacklst) {
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach $type_thing (sort @asn1setlst) {
|
|
||||||
$new_stackfile .= <<EOF;
|
|
||||||
|
|
||||||
# define d2i_ASN1_SET_OF_${type_thing}(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \\
|
|
||||||
SKM_ASN1_SET_OF_d2i($type_thing, (st), (pp), (length), (d2i_func), (free_func), (ex_tag), (ex_class))
|
|
||||||
# define i2d_ASN1_SET_OF_${type_thing}(st, pp, i2d_func, ex_tag, ex_class, is_set) \\
|
|
||||||
SKM_ASN1_SET_OF_i2d($type_thing, (st), (pp), (i2d_func), (ex_tag), (ex_class), (is_set))
|
|
||||||
# define ASN1_seq_pack_${type_thing}(st, i2d_func, buf, len) \\
|
|
||||||
SKM_ASN1_seq_pack($type_thing, (st), (i2d_func), (buf), (len))
|
|
||||||
# define ASN1_seq_unpack_${type_thing}(buf, len, d2i_func, free_func) \\
|
|
||||||
SKM_ASN1_seq_unpack($type_thing, (buf), (len), (d2i_func), (free_func))
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach $type_thing (sort @p12stklst) {
|
|
||||||
$new_stackfile .= <<EOF;
|
|
||||||
|
|
||||||
# define PKCS12_decrypt_d2i_${type_thing}(algor, d2i_func, free_func, pass, passlen, oct, seq) \\
|
|
||||||
SKM_PKCS12_decrypt_d2i($type_thing, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach $type_thing (sort @lhashlst) {
|
foreach $type_thing (sort @lhashlst) {
|
||||||
my $lc_tt = lc $type_thing;
|
my $lc_tt = lc $type_thing;
|
||||||
$new_stackfile .= <<EOF;
|
$new_stackfile .= <<EOF;
|
||||||
|
Reference in New Issue
Block a user