summaryrefslogtreecommitdiffstats
path: root/crypto/store/str_meth.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-06-26 10:26:42 +0000
committerRichard Levitte <levitte@openssl.org>2003-06-26 10:26:42 +0000
commited5fae580e88ce5612be3152ba739a208c61fcdd (patch)
tree7f38609bfbbf140fd222f3408150c1f294aafd41 /crypto/store/str_meth.c
parentd55141ed7a844b4a0b8c75169267566695642840 (diff)
Implement missing functions.
Have the f parameter to _ctrl functions have the prototype (*)(void) rather than (*)(), for the sake of C++ compilers. Disable unimplemented functionality.
Diffstat (limited to 'crypto/store/str_meth.c')
-rw-r--r--crypto/store/str_meth.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/crypto/store/str_meth.c b/crypto/store/str_meth.c
index e1c39bf06a..648c08d76d 100644
--- a/crypto/store/str_meth.c
+++ b/crypto/store/str_meth.c
@@ -81,6 +81,18 @@ void STORE_destroy_method(STORE_METHOD *store_method)
OPENSSL_free(store_method);
}
+int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f)
+ {
+ sm->init = init_f;
+ return 1;
+ }
+
+int STORE_method_set_cleanup_function(STORE_METHOD *sm, STORE_CLEANUP_FUNC_PTR clean_f)
+ {
+ sm->clean = clean_f;
+ return 1;
+ }
+
int STORE_method_set_generate_function(STORE_METHOD *sm, STORE_GENERATE_OBJECT_FUNC_PTR generate_f)
{
sm->generate_object = generate_f;
@@ -99,6 +111,12 @@ int STORE_method_set_store_function(STORE_METHOD *sm, STORE_STORE_OBJECT_FUNC_PT
return 1;
}
+int STORE_method_set_modify_function(STORE_METHOD *sm, STORE_MODIFY_OBJECT_FUNC_PTR modify_f)
+ {
+ sm->modify_object = modify_f;
+ return 1;
+ }
+
int STORE_method_set_revoke_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR revoke_f)
{
sm->revoke_object = revoke_f;
@@ -153,6 +171,16 @@ int STORE_method_set_ctrl_function(STORE_METHOD *sm, STORE_CTRL_FUNC_PTR ctrl_f)
return 1;
}
+STORE_INITIALISE_FUNC_PTR STORE_method_get_initialise_function(STORE_METHOD *sm)
+ {
+ return sm->init;
+ }
+
+STORE_CLEANUP_FUNC_PTR STORE_method_get_cleanup_function(STORE_METHOD *sm)
+ {
+ return sm->clean;
+ }
+
STORE_GENERATE_OBJECT_FUNC_PTR STORE_method_get_generate_function(STORE_METHOD *sm)
{
return sm->generate_object;
@@ -168,6 +196,11 @@ STORE_STORE_OBJECT_FUNC_PTR STORE_method_get_store_function(STORE_METHOD *sm)
return sm->store_object;
}
+STORE_MODIFY_OBJECT_FUNC_PTR STORE_method_get_modify_function(STORE_METHOD *sm)
+ {
+ return sm->modify_object;
+ }
+
STORE_HANDLE_OBJECT_FUNC_PTR STORE_method_get_revoke_function(STORE_METHOD *sm)
{
return sm->revoke_object;