diff options
author | Geoff Thorpe <geoff@openssl.org> | 2000-10-08 22:36:49 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2000-10-08 22:36:49 +0000 |
commit | 75a382bd901a671575213ffd757a3f83369715ec (patch) | |
tree | 672cb04a4f7b6eda8bb30b556c8d79d2c1de823e /crypto/dso/dso_dl.c | |
parent | 5b0a0544f2a7e4cc0666aea72fc45da2f17473a4 (diff) |
None of the DSO_METHOD's were handling anything except generic messages.
These are now processed inside DSO_ctrl() itself.
Diffstat (limited to 'crypto/dso/dso_dl.c')
-rw-r--r-- | crypto/dso/dso_dl.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c index 69810fc3bb..7a6770ef6d 100644 --- a/crypto/dso/dso_dl.c +++ b/crypto/dso/dso_dl.c @@ -81,8 +81,8 @@ static int dl_unbind_var(DSO *dso, char *symname, void *symptr); static int dl_unbind_func(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); static int dl_init(DSO *dso); static int dl_finish(DSO *dso); -#endif static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg); +#endif static DSO_METHOD dso_meth_dl = { "OpenSSL 'dl' shared library method", @@ -95,7 +95,7 @@ static DSO_METHOD dso_meth_dl = { NULL, /* unbind_var */ NULL, /* unbind_func */ #endif - dl_ctrl, + NULL, /* ctrl */ NULL, /* init */ NULL /* finish */ }; @@ -224,28 +224,4 @@ static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname) return((DSO_FUNC_TYPE)sym); } -static int dl_ctrl(DSO *dso, int cmd, long larg, void *parg) - { - if(dso == NULL) - { - DSOerr(DSO_F_DL_CTRL,ERR_R_PASSED_NULL_PARAMETER); - return(-1); - } - switch(cmd) - { - case DSO_CTRL_GET_FLAGS: - return dso->flags; - case DSO_CTRL_SET_FLAGS: - dso->flags = (int)larg; - return(0); - case DSO_CTRL_OR_FLAGS: - dso->flags |= (int)larg; - return(0); - default: - break; - } - DSOerr(DSO_F_DL_CTRL,DSO_R_UNKNOWN_COMMAND); - return(-1); - } - #endif /* DSO_DL */ |