Add the possibility to hand execution parameters (for example
authorRichard Levitte <levitte@openssl.org>
Wed, 7 May 2003 21:06:15 +0000 (21:06 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 7 May 2003 21:06:15 +0000 (21:06 +0000)
authentication material) to the STORE functions.
Suggested by Götz Babin-Ebell <babin-ebell@trustcenter.de>.

crypto/store/store.h
crypto/store/str_lib.c
crypto/store/str_mem.c

index d1e38628010e50b1c99fb730e52638036d7f977f..64a3f3dae601f9e7bbc580884f6d70efdc36e6b0 100644 (file)
@@ -226,64 +226,90 @@ void STORE_OBJECT_free(STORE_OBJECT *data);
 
 /* The following functions handle the storage. They return 0, a negative number
    or NULL on error, anything else on success. */
 
 /* The following functions handle the storage. They return 0, a negative number
    or NULL on error, anything else on success. */
-X509 *STORE_get_certificate(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_store_certificate(STORE *e, X509 *data, OPENSSL_ITEM attributes[]);
+X509 *STORE_get_certificate(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_store_certificate(STORE *e, X509 *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 int STORE_modify_certificate(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_certificate(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-int STORE_revoke_certificate(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_delete_certificate(STORE *e, OPENSSL_ITEM attributes[]);
-void *STORE_list_certificate_start(STORE *e, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+int STORE_revoke_certificate(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_delete_certificate(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+void *STORE_list_certificate_start(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 X509 *STORE_list_certificate_next(STORE *e, void *handle);
 int STORE_list_certificate_end(STORE *e, void *handle);
 int STORE_list_certificate_endp(STORE *e, void *handle);
 X509 *STORE_list_certificate_next(STORE *e, void *handle);
 int STORE_list_certificate_end(STORE *e, void *handle);
 int STORE_list_certificate_endp(STORE *e, void *handle);
-EVP_PKEY *STORE_generate_key(STORE *e,
-       int evp_type, size_t bits, OPENSSL_ITEM attributes[]);
-EVP_PKEY *STORE_get_private_key(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_store_private_key(STORE *e, EVP_PKEY *data, OPENSSL_ITEM attributes[]);
+EVP_PKEY *STORE_generate_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+EVP_PKEY *STORE_get_private_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_store_private_key(STORE *e, EVP_PKEY *data,
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 int STORE_modify_private_key(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_private_key(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-int STORE_revoke_private_key(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_delete_private_key(STORE *e, OPENSSL_ITEM attributes[]);
-void *STORE_list_private_key_start(STORE *e, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+int STORE_revoke_private_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_delete_private_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+void *STORE_list_private_key_start(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 EVP_PKEY *STORE_list_private_key_next(STORE *e, void *handle);
 int STORE_list_private_key_end(STORE *e, void *handle);
 int STORE_list_private_key_endp(STORE *e, void *handle);
 EVP_PKEY *STORE_list_private_key_next(STORE *e, void *handle);
 int STORE_list_private_key_end(STORE *e, void *handle);
 int STORE_list_private_key_endp(STORE *e, void *handle);
-EVP_PKEY *STORE_get_public_key(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_store_public_key(STORE *e, EVP_PKEY *data, OPENSSL_ITEM attributes[]);
+EVP_PKEY *STORE_get_public_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_store_public_key(STORE *e, EVP_PKEY *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 int STORE_modify_public_key(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_public_key(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-int STORE_revoke_public_key(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_delete_public_key(STORE *e, OPENSSL_ITEM attributes[]);
-void *STORE_list_public_key_start(STORE *e, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+int STORE_revoke_public_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_delete_public_key(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+void *STORE_list_public_key_start(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 EVP_PKEY *STORE_list_public_key_next(STORE *e, void *handle);
 int STORE_list_public_key_end(STORE *e, void *handle);
 int STORE_list_public_key_endp(STORE *e, void *handle);
 EVP_PKEY *STORE_list_public_key_next(STORE *e, void *handle);
 int STORE_list_public_key_end(STORE *e, void *handle);
 int STORE_list_public_key_endp(STORE *e, void *handle);
-X509_CRL *STORE_generate_crl(STORE *e, OPENSSL_ITEM attributes[]);
-X509_CRL *STORE_get_crl(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_store_crl(STORE *e, X509_CRL *data, OPENSSL_ITEM attributes[]);
+X509_CRL *STORE_generate_crl(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+X509_CRL *STORE_get_crl(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_store_crl(STORE *e, X509_CRL *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 int STORE_modify_crl(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_crl(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-int STORE_delete_crl(STORE *e, OPENSSL_ITEM attributes[]);
-void *STORE_list_crl_start(STORE *e, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+int STORE_delete_crl(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+void *STORE_list_crl_start(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 X509_CRL *STORE_list_crl_next(STORE *e, void *handle);
 int STORE_list_crl_end(STORE *e, void *handle);
 int STORE_list_crl_endp(STORE *e, void *handle);
 X509_CRL *STORE_list_crl_next(STORE *e, void *handle);
 int STORE_list_crl_end(STORE *e, void *handle);
 int STORE_list_crl_endp(STORE *e, void *handle);
-int STORE_store_number(STORE *e, BIGNUM *data, OPENSSL_ITEM attributes[]);
+int STORE_store_number(STORE *e, BIGNUM *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 int STORE_modify_number(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_number(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-BIGNUM *STORE_get_number(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_delete_number(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_store_arbitrary(STORE *e, BUF_MEM *data, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+BIGNUM *STORE_get_number(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_delete_number(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_store_arbitrary(STORE *e, BUF_MEM *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 int STORE_modify_arbitrary(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
 int STORE_modify_arbitrary(STORE *e, OPENSSL_ITEM search_attributes[],
        OPENSSL_ITEM add_sttributes[], OPENSSL_ITEM modify_attributes[],
-       OPENSSL_ITEM delete_attributes[]);
-BUF_MEM *STORE_get_arbitrary(STORE *e, OPENSSL_ITEM attributes[]);
-int STORE_delete_arbitrary(STORE *e, OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+BUF_MEM *STORE_get_arbitrary(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+int STORE_delete_arbitrary(STORE *e, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 
 
 /* Create and manipulate methods */
 
 
 /* Create and manipulate methods */
@@ -293,15 +319,15 @@ void STORE_destroy_method(STORE_METHOD *store_method);
 /* These callback types are use for store handlers */
 typedef int (*STORE_INITIALISE_FUNC_PTR)(STORE *);
 typedef void (*STORE_CLEANUP_FUNC_PTR)(STORE *);
 /* These callback types are use for store handlers */
 typedef int (*STORE_INITIALISE_FUNC_PTR)(STORE *);
 typedef void (*STORE_CLEANUP_FUNC_PTR)(STORE *);
-typedef STORE_OBJECT *(*STORE_GENERATE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM parameters[], OPENSSL_ITEM attributes[]);
-typedef STORE_OBJECT *(*STORE_GET_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[]);
-typedef void *(*STORE_START_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[]);
+typedef STORE_OBJECT *(*STORE_GENERATE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
+typedef STORE_OBJECT *(*STORE_GET_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
+typedef void *(*STORE_START_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 typedef STORE_OBJECT *(*STORE_NEXT_OBJECT_FUNC_PTR)(STORE *, void *handle);
 typedef int (*STORE_END_OBJECT_FUNC_PTR)(STORE *, void *handle);
 typedef STORE_OBJECT *(*STORE_NEXT_OBJECT_FUNC_PTR)(STORE *, void *handle);
 typedef int (*STORE_END_OBJECT_FUNC_PTR)(STORE *, void *handle);
-typedef int (*STORE_HANDLE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[]);
-typedef int (*STORE_STORE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, STORE_OBJECT *data, OPENSSL_ITEM attributes[]);
-typedef int (*STORE_MODIFY_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[]);
-typedef int (*STORE_GENERIC_FUNC_PTR)(STORE *, OPENSSL_ITEM attributes[]);
+typedef int (*STORE_HANDLE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
+typedef int (*STORE_STORE_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, STORE_OBJECT *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
+typedef int (*STORE_MODIFY_OBJECT_FUNC_PTR)(STORE *, STORE_OBJECT_TYPES type, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[]);
+typedef int (*STORE_GENERIC_FUNC_PTR)(STORE *, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 typedef int (*STORE_CTRL_FUNC_PTR)(STORE *, int cmd, long l, void *p, void (*f)());
 
 int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR gen_f);
 typedef int (*STORE_CTRL_FUNC_PTR)(STORE *, int cmd, long l, void *p, void (*f)());
 
 int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR gen_f);
index 3528ebec94e122a2ad25f37af70b699d58b09de6..dbcf3a07bd0676d37d33fd81672df46aa7204e1f 100644 (file)
@@ -232,7 +232,8 @@ const STORE_METHOD *STORE_set_method(STORE *store, const STORE_METHOD *meth)
 
 /* API functions */
 
 
 /* API functions */
 
-X509 *STORE_get_certificate(STORE *s, OPENSSL_ITEM attributes[])
+X509 *STORE_get_certificate(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        X509 *x;
        {
        STORE_OBJECT *object;
        X509 *x;
@@ -240,7 +241,8 @@ X509 *STORE_get_certificate(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_CERTIFICATE,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_CERTIFICATE,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE,
+               attributes, parameters);
        if (!object || !object->data.x509.certificate)
                {
                STOREerr(STORE_F_STORE_GET_CERTIFICATE,
        if (!object || !object->data.x509.certificate)
                {
                STOREerr(STORE_F_STORE_GET_CERTIFICATE,
@@ -256,7 +258,8 @@ X509 *STORE_get_certificate(STORE *s, OPENSSL_ITEM attributes[])
        return x;
        }
 
        return x;
        }
 
-int store_certificate(STORE *s, X509 *data, OPENSSL_ITEM attributes[])
+int store_certificate(STORE *s, X509 *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -277,7 +280,8 @@ int store_certificate(STORE *s, X509 *data, OPENSSL_ITEM attributes[])
 #endif
        object->data.x509.certificate = data;
 
 #endif
        object->data.x509.certificate = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE,
+               object, attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -290,12 +294,14 @@ int store_certificate(STORE *s, X509 *data, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-int STORE_revoke_certificate(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_revoke_certificate(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_REVOKE_CERTIFICATE,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
        {
        check_store(s,STORE_F_STORE_REVOKE_CERTIFICATE,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
-       if (!s->meth->revoke_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes))
+       if (!s->meth->revoke_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE,
+                   attributes, parameters))
                {
                STOREerr(STORE_F_STORE_REVOKE_CERTIFICATE,
                        STORE_R_FAILED_REVOKING_CERTIFICATE);
                {
                STOREerr(STORE_F_STORE_REVOKE_CERTIFICATE,
                        STORE_R_FAILED_REVOKING_CERTIFICATE);
@@ -304,12 +310,14 @@ int STORE_revoke_certificate(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-int STORE_delete_certificate(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_certificate(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_CERTIFICATE,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
 
        {
        check_store(s,STORE_F_STORE_DELETE_CERTIFICATE,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
 
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CERTIFICATE,
+                   attributes, parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_CERTIFICATE,
                        STORE_R_FAILED_DELETING_CERTIFICATE);
                {
                STOREerr(STORE_F_STORE_DELETE_CERTIFICATE,
                        STORE_R_FAILED_DELETING_CERTIFICATE);
@@ -318,14 +326,16 @@ int STORE_delete_certificate(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-void *STORE_list_certificate_start(STORE *s, OPENSSL_ITEM attributes[])
+void *STORE_list_certificate_start(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_CERTIFICATE_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_CERTIFICATE_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
-       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes);
+       handle = s->meth->list_object_start(s,
+               STORE_OBJECT_TYPE_X509_CERTIFICATE, attributes, parameters);
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_CERTIFICATE_START,
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_CERTIFICATE_START,
@@ -387,26 +397,17 @@ int STORE_list_certificate_endp(STORE *s, void *handle)
        return 1;
        }
 
        return 1;
        }
 
-EVP_PKEY *STORE_generate_key(STORE *s,
-       int evp_type, size_t bits, OPENSSL_ITEM attributes[])
+EVP_PKEY *STORE_generate_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
-       OPENSSL_ITEM params[3];
-
-       params[0].code = STORE_PARAM_EVP_TYPE;
-       params[0].value = &evp_type;
-       params[0].value_size = sizeof(evp_type);
-       params[1].code = STORE_PARAM_BITS;
-       params[1].value = &bits;
-       params[1].value_size = sizeof(bits);
-       params[2].code = 0;
 
        check_store(s,STORE_F_STORE_GENERATE_KEY,
                generate_object,STORE_R_NO_GENERATE_OBJECT_FUNCTION);
 
        object = s->meth->generate_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
 
        check_store(s,STORE_F_STORE_GENERATE_KEY,
                generate_object,STORE_R_NO_GENERATE_OBJECT_FUNCTION);
 
        object = s->meth->generate_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
-               params, attributes);
+               attributes, parameters);
        if (!object || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GENERATE_KEY,
        if (!object || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GENERATE_KEY,
@@ -422,7 +423,8 @@ EVP_PKEY *STORE_generate_key(STORE *s,
        return pkey;
        }
 
        return pkey;
        }
 
-EVP_PKEY *STORE_get_private_key(STORE *s, OPENSSL_ITEM attributes[])
+EVP_PKEY *STORE_get_private_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
@@ -430,7 +432,8 @@ EVP_PKEY *STORE_get_private_key(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_PRIVATE_KEY,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_PRIVATE_KEY,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
+               attributes, parameters);
        if (!object || !object->data.key || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GET_PRIVATE_KEY,
        if (!object || !object->data.key || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GET_PRIVATE_KEY,
@@ -446,7 +449,8 @@ EVP_PKEY *STORE_get_private_key(STORE *s, OPENSSL_ITEM attributes[])
        return pkey;
        }
 
        return pkey;
        }
 
-int store_private_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
+int store_private_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -474,7 +478,8 @@ int store_private_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
 #endif
        object->data.key = data;
 
 #endif
        object->data.key = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, object,
+               attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -487,14 +492,16 @@ int store_private_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
        return i;
        }
 
        return i;
        }
 
-int STORE_revoke_private_key(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_revoke_private_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        int i;
 
        check_store(s,STORE_F_STORE_REVOKE_PRIVATE_KEY,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
        {
        int i;
 
        check_store(s,STORE_F_STORE_REVOKE_PRIVATE_KEY,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
-       i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, attributes);
+       i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
+               attributes, parameters);
 
        if (!i)
                {
 
        if (!i)
                {
@@ -505,12 +512,14 @@ int STORE_revoke_private_key(STORE *s, OPENSSL_ITEM attributes[])
        return i;
        }
 
        return i;
        }
 
-int STORE_delete_private_key(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_private_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_PRIVATE_KEY,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
        {
        check_store(s,STORE_F_STORE_DELETE_PRIVATE_KEY,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
+                   attributes, parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_PRIVATE_KEY,
                        STORE_R_FAILED_DELETING_KEY);
                {
                STOREerr(STORE_F_STORE_DELETE_PRIVATE_KEY,
                        STORE_R_FAILED_DELETING_KEY);
@@ -519,14 +528,16 @@ int STORE_delete_private_key(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-void *STORE_list_private_key_start(STORE *s, OPENSSL_ITEM attributes[])
+void *STORE_list_private_key_start(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_PRIVATE_KEY_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
-       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PRIVATE_KEY, attributes);
+       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PRIVATE_KEY,
+               attributes, parameters);
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_START,
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_PRIVATE_KEY_START,
@@ -588,7 +599,8 @@ int STORE_list_private_key_endp(STORE *s, void *handle)
        return 1;
        }
 
        return 1;
        }
 
-EVP_PKEY *STORE_get_public_key(STORE *s, OPENSSL_ITEM attributes[])
+EVP_PKEY *STORE_get_public_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
        {
        STORE_OBJECT *object;
        EVP_PKEY *pkey;
@@ -596,7 +608,8 @@ EVP_PKEY *STORE_get_public_key(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_PUBLIC_KEY,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_PUBLIC_KEY,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY,
+               attributes, parameters);
        if (!object || !object->data.key || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GET_PUBLIC_KEY,
        if (!object || !object->data.key || !object->data.key)
                {
                STOREerr(STORE_F_STORE_GET_PUBLIC_KEY,
@@ -612,7 +625,8 @@ EVP_PKEY *STORE_get_public_key(STORE *s, OPENSSL_ITEM attributes[])
        return pkey;
        }
 
        return pkey;
        }
 
-int store_public_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
+int store_public_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -640,7 +654,8 @@ int store_public_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
 #endif
        object->data.key = data;
 
 #endif
        object->data.key = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, object,
+               attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -653,14 +668,16 @@ int store_public_key(STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[])
        return i;
        }
 
        return i;
        }
 
-int STORE_revoke_public_key(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_revoke_public_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        int i;
 
        check_store(s,STORE_F_STORE_REVOKE_PUBLIC_KEY,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
        {
        int i;
 
        check_store(s,STORE_F_STORE_REVOKE_PUBLIC_KEY,
                revoke_object,STORE_R_NO_REVOKE_OBJECT_FUNCTION);
 
-       i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, attributes);
+       i = s->meth->revoke_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY,
+               attributes, parameters);
 
        if (!i)
                {
 
        if (!i)
                {
@@ -671,12 +688,14 @@ int STORE_revoke_public_key(STORE *s, OPENSSL_ITEM attributes[])
        return i;
        }
 
        return i;
        }
 
-int STORE_delete_public_key(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_public_key(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_PUBLIC_KEY,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
        {
        check_store(s,STORE_F_STORE_DELETE_PUBLIC_KEY,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_PUBLIC_KEY,
+                   attributes, parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_PUBLIC_KEY,
                        STORE_R_FAILED_DELETING_KEY);
                {
                STOREerr(STORE_F_STORE_DELETE_PUBLIC_KEY,
                        STORE_R_FAILED_DELETING_KEY);
@@ -685,14 +704,16 @@ int STORE_delete_public_key(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-void *STORE_list_public_key_start(STORE *s, OPENSSL_ITEM attributes[])
+void *STORE_list_public_key_start(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_PUBLIC_KEY_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
-       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PUBLIC_KEY, attributes);
+       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_PUBLIC_KEY,
+               attributes, parameters);
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_START,
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_PUBLIC_KEY_START,
@@ -754,7 +775,8 @@ int STORE_list_public_key_endp(STORE *s, void *handle)
        return 1;
        }
 
        return 1;
        }
 
-X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[])
+X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        X509_CRL *crl;
        {
        STORE_OBJECT *object;
        X509_CRL *crl;
@@ -762,7 +784,8 @@ X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GENERATE_CRL,
                generate_object,STORE_R_NO_GENERATE_CRL_FUNCTION);
 
        check_store(s,STORE_F_STORE_GENERATE_CRL,
                generate_object,STORE_R_NO_GENERATE_CRL_FUNCTION);
 
-       object = s->meth->generate_object(s, STORE_OBJECT_TYPE_X509_CRL, 0, attributes);
+       object = s->meth->generate_object(s, STORE_OBJECT_TYPE_X509_CRL,
+               attributes, parameters);
        if (!object || !object->data.crl)
                {
                STOREerr(STORE_F_STORE_GENERATE_CRL,
        if (!object || !object->data.crl)
                {
                STOREerr(STORE_F_STORE_GENERATE_CRL,
@@ -778,7 +801,8 @@ X509_CRL *STORE_generate_crl(STORE *s, OPENSSL_ITEM attributes[])
        return crl;
        }
 
        return crl;
        }
 
-X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[])
+X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        X509_CRL *crl;
        {
        STORE_OBJECT *object;
        X509_CRL *crl;
@@ -786,7 +810,8 @@ X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_CRL,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_CRL,
                get_object,STORE_R_NO_GET_OBJECT_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CRL, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_X509_CRL,
+               attributes, parameters);
        if (!object || !object->data.crl)
                {
                STOREerr(STORE_F_STORE_GET_CRL,
        if (!object || !object->data.crl)
                {
                STOREerr(STORE_F_STORE_GET_CRL,
@@ -802,7 +827,8 @@ X509_CRL *STORE_get_crl(STORE *s, OPENSSL_ITEM attributes[])
        return crl;
        }
 
        return crl;
        }
 
-int store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[])
+int store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -823,7 +849,8 @@ int store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[])
 #endif
        object->data.crl = data;
 
 #endif
        object->data.crl = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CRL, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_X509_CRL, object,
+               attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -836,12 +863,14 @@ int store_crl(STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[])
        return i;
        }
 
        return i;
        }
 
-int STORE_delete_crl(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_crl(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_CRL,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
        {
        check_store(s,STORE_F_STORE_DELETE_CRL,
                delete_object,STORE_R_NO_DELETE_OBJECT_FUNCTION);
        
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CRL, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_X509_CRL,
+                   attributes, parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_CRL,
                        STORE_R_FAILED_DELETING_KEY);
                {
                STOREerr(STORE_F_STORE_DELETE_CRL,
                        STORE_R_FAILED_DELETING_KEY);
@@ -850,14 +879,16 @@ int STORE_delete_crl(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-void *STORE_list_crl_start(STORE *s, OPENSSL_ITEM attributes[])
+void *STORE_list_crl_start(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_CRL_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
        {
        void *handle;
 
        check_store(s,STORE_F_STORE_LIST_CRL_START,
                list_object_start,STORE_R_NO_LIST_OBJECT_START_FUNCTION);
 
-       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_X509_CRL, attributes);
+       handle = s->meth->list_object_start(s, STORE_OBJECT_TYPE_X509_CRL,
+               attributes, parameters);
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_CRL_START,
        if (!handle)
                {
                STOREerr(STORE_F_STORE_LIST_CRL_START,
@@ -919,7 +950,8 @@ int STORE_list_crl_endp(STORE *s, void *handle)
        return 1;
        }
 
        return 1;
        }
 
-int store_number(STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[])
+int store_number(STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -936,7 +968,8 @@ int store_number(STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[])
        
        object->data.number = data;
 
        
        object->data.number = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_NUMBER, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_NUMBER, object,
+               attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -949,7 +982,8 @@ int store_number(STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-BIGNUM *STORE_get_number(STORE *s, OPENSSL_ITEM attributes[])
+BIGNUM *STORE_get_number(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        BIGNUM *n;
        {
        STORE_OBJECT *object;
        BIGNUM *n;
@@ -957,7 +991,8 @@ BIGNUM *STORE_get_number(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_NUMBER,
                get_object,STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_NUMBER,
                get_object,STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_NUMBER, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_NUMBER, attributes,
+               parameters);
        if (!object || !object->data.number)
                {
                STOREerr(STORE_F_STORE_GET_NUMBER,
        if (!object || !object->data.number)
                {
                STOREerr(STORE_F_STORE_GET_NUMBER,
@@ -970,12 +1005,14 @@ BIGNUM *STORE_get_number(STORE *s, OPENSSL_ITEM attributes[])
        return n;
        }
 
        return n;
        }
 
-int STORE_delete_number(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_number(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_NUMBER,
                delete_object,STORE_R_NO_DELETE_NUMBER_FUNCTION);
 
        {
        check_store(s,STORE_F_STORE_DELETE_NUMBER,
                delete_object,STORE_R_NO_DELETE_NUMBER_FUNCTION);
 
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_NUMBER, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_NUMBER, attributes,
+                   parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_NUMBER,
                        STORE_R_FAILED_DELETING_NUMBER);
                {
                STOREerr(STORE_F_STORE_DELETE_NUMBER,
                        STORE_R_FAILED_DELETING_NUMBER);
@@ -984,7 +1021,8 @@ int STORE_delete_number(STORE *s, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-int store_arbitrary(STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[])
+int store_arbitrary(STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
        {
        STORE_OBJECT *object = STORE_OBJECT_new();
        int i;
@@ -1001,7 +1039,8 @@ int store_arbitrary(STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[])
        
        object->data.arbitrary = data;
 
        
        object->data.arbitrary = data;
 
-       i = s->meth->store_object(s, STORE_OBJECT_TYPE_ARBITRARY, object, attributes);
+       i = s->meth->store_object(s, STORE_OBJECT_TYPE_ARBITRARY, object,
+               attributes, parameters);
 
        STORE_OBJECT_free(object);
 
 
        STORE_OBJECT_free(object);
 
@@ -1014,7 +1053,8 @@ int store_arbitrary(STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[])
        return 1;
        }
 
        return 1;
        }
 
-BUF_MEM *STORE_get_arbitrary(STORE *s, OPENSSL_ITEM attributes[])
+BUF_MEM *STORE_get_arbitrary(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STORE_OBJECT *object;
        BUF_MEM *b;
        {
        STORE_OBJECT *object;
        BUF_MEM *b;
@@ -1022,7 +1062,8 @@ BUF_MEM *STORE_get_arbitrary(STORE *s, OPENSSL_ITEM attributes[])
        check_store(s,STORE_F_STORE_GET_ARBITRARY,
                get_object,STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION);
 
        check_store(s,STORE_F_STORE_GET_ARBITRARY,
                get_object,STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION);
 
-       object = s->meth->get_object(s, STORE_OBJECT_TYPE_ARBITRARY, attributes);
+       object = s->meth->get_object(s, STORE_OBJECT_TYPE_ARBITRARY,
+               attributes, parameters);
        if (!object || !object->data.arbitrary)
                {
                STOREerr(STORE_F_STORE_GET_ARBITRARY,
        if (!object || !object->data.arbitrary)
                {
                STOREerr(STORE_F_STORE_GET_ARBITRARY,
@@ -1035,12 +1076,14 @@ BUF_MEM *STORE_get_arbitrary(STORE *s, OPENSSL_ITEM attributes[])
        return b;
        }
 
        return b;
        }
 
-int STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[])
+int STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        check_store(s,STORE_F_STORE_DELETE_ARBITRARY,
                delete_object,STORE_R_NO_DELETE_ARBITRARY_FUNCTION);
 
        {
        check_store(s,STORE_F_STORE_DELETE_ARBITRARY,
                delete_object,STORE_R_NO_DELETE_ARBITRARY_FUNCTION);
 
-       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_ARBITRARY, attributes))
+       if (!s->meth->delete_object(s, STORE_OBJECT_TYPE_ARBITRARY, attributes,
+                   parameters))
                {
                STOREerr(STORE_F_STORE_DELETE_ARBITRARY,
                        STORE_R_FAILED_DELETING_ARBITRARY);
                {
                STOREerr(STORE_F_STORE_DELETE_ARBITRARY,
                        STORE_R_FAILED_DELETING_ARBITRARY);
index 595f40397db86ff7bc9d9667675363769ea489c8..7480de00292bb98b582a0527e03bf0da7949eb36 100644 (file)
@@ -105,23 +105,27 @@ struct mem_ctx_st
 static int mem_init(STORE *s);
 static void mem_clean(STORE *s);
 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
 static int mem_init(STORE *s);
 static void mem_clean(STORE *s);
 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM parameters[], OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
-       STORE_OBJECT *data, OPENSSL_ITEM attributes[]);
+       STORE_OBJECT *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
        OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[],
 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
        OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[],
-       OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[]);
+       OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[],
+       OPENSSL_ITEM parameters[]);
 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[]);
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]);
 static STORE_OBJECT *mem_list_next(STORE *s, void *handle);
 static int mem_list_end(STORE *s, void *handle);
 static int mem_list_endp(STORE *s, void *handle);
 static STORE_OBJECT *mem_list_next(STORE *s, void *handle);
 static int mem_list_end(STORE *s, void *handle);
 static int mem_list_endp(STORE *s, void *handle);
-static int mem_lock(STORE *s, OPENSSL_ITEM attributes[]);
-static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[]);
+static int mem_lock(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
+static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[]);
 static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)());
 
 static STORE_METHOD store_memory =
 static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)());
 
 static STORE_METHOD store_memory =
@@ -161,15 +165,15 @@ static void mem_clean(STORE *s)
        }
 
 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
        }
 
 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM parameters[], OPENSSL_ITEM attributes[])
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
        {
        STOREerr(STORE_F_MEM_GENERATE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
        {
        STOREerr(STORE_F_MEM_GENERATE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[])
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
        {
        {
-       void *context = mem_list_start(s, type, attributes);
+       void *context = mem_list_start(s, type, attributes, parameters);
        
        if (context)
                {
        
        if (context)
                {
@@ -181,20 +185,22 @@ static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
        return NULL;
        }
 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
        return NULL;
        }
 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
-       STORE_OBJECT *data, OPENSSL_ITEM attributes[])
+       STORE_OBJECT *data, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STOREerr(STORE_F_MEM_STORE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
        OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[],
        {
        STOREerr(STORE_F_MEM_STORE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
        OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[],
-       OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[])
+       OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[],
+       OPENSSL_ITEM parameters[])
        {
        STOREerr(STORE_F_MEM_STORE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
        {
        STOREerr(STORE_F_MEM_STORE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        }
 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[])
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
        {
        STOREerr(STORE_F_MEM_DELETE, STORE_R_NOT_IMPLEMENTED);
        return 0;
        {
        STOREerr(STORE_F_MEM_DELETE, STORE_R_NOT_IMPLEMENTED);
        return 0;
@@ -208,7 +214,7 @@ static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
    of attribute bits above the starting point may match the searched
    for bit pattern...). */
 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
    of attribute bits above the starting point may match the searched
    for bit pattern...). */
 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
-       OPENSSL_ITEM attributes[])
+       OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
        {
        struct mem_ctx_st *context =
                (struct mem_ctx_st *)OPENSSL_malloc(sizeof(struct mem_ctx_st));
        {
        struct mem_ctx_st *context =
                (struct mem_ctx_st *)OPENSSL_malloc(sizeof(struct mem_ctx_st));
@@ -333,11 +339,13 @@ static int mem_list_endp(STORE *s, void *handle)
                return 1;
        return 0;
        }
                return 1;
        return 0;
        }
-static int mem_lock(STORE *s, OPENSSL_ITEM attributes[])
+static int mem_lock(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        return 1;
        }
        {
        return 1;
        }
-static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[])
+static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[],
+       OPENSSL_ITEM parameters[])
        {
        return 1;
        }
        {
        return 1;
        }