aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_dl.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-04-25 22:40:55 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-04-25 22:40:55 +0000
commitb7b6c047ca5badf3d76187ad2640e5f088e96ecd (patch)
tree3fa0de874be0b8dd7a2ade692bdaffea9ce4198a /crypto/dso/dso_dl.c
parent0ea659475c634933126386dc31d6589ecf10d3fc (diff)
downloadopenssl-b7b6c047ca5badf3d76187ad2640e5f088e96ecd.tar.gz
This change to the "dl", "dlfcn", and "win32" DSO_METHODs adds the filename
or symbol name to the error stack in the event a load or bind operation failed.
Diffstat (limited to 'crypto/dso/dso_dl.c')
-rw-r--r--crypto/dso/dso_dl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c
index 4dbb51fb8c..a831877c07 100644
--- a/crypto/dso/dso_dl.c
+++ b/crypto/dso/dso_dl.c
@@ -130,6 +130,7 @@ static int dl_load(DSO *dso)
if(ptr == NULL)
{
DSOerr(DSO_F_DL_LOAD,DSO_R_LOAD_FAILED);
+ ERR_add_error_data(3, "filename(", filename, ")");
goto err;
}
if(!sk_push(dso->meth_data, (char *)ptr))
@@ -198,6 +199,7 @@ static void *dl_bind_var(DSO *dso, const char *symname)
if (shl_findsym(&ptr, symname, TYPE_UNDEFINED, &sym) < 0)
{
DSOerr(DSO_F_DL_BIND_VAR,DSO_R_SYM_FAILURE);
+ ERR_add_error_data(3, "symname(", symname, ")");
return(NULL);
}
return(sym);
@@ -227,6 +229,7 @@ static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname)
if (shl_findsym(&ptr, symname, TYPE_UNDEFINED, &sym) < 0)
{
DSOerr(DSO_F_DL_BIND_FUNC,DSO_R_SYM_FAILURE);
+ ERR_add_error_data(3, "symname(", symname, ")");
return(NULL);
}
return((DSO_FUNC_TYPE)sym);