diff options
author | doug <> | 2015-02-07 13:19:15 +0000 |
---|---|---|
committer | doug <> | 2015-02-07 13:19:15 +0000 |
commit | bd790e322a40e6362231f517d5795d4079eeb2a2 (patch) | |
tree | 1f11c8eab9ee5f3f265f1010c299c7fd574d9cdf /src/lib/libcrypto/dso | |
parent | ff826d3cb94a579275eb6e97b3cf80ca69016d4b (diff) | |
download | openbsd-bd790e322a40e6362231f517d5795d4079eeb2a2.tar.gz openbsd-bd790e322a40e6362231f517d5795d4079eeb2a2.tar.bz2 openbsd-bd790e322a40e6362231f517d5795d4079eeb2a2.zip |
Delete a lot of #if 0 code in libressl.
There are a few instances where #if 1 is removed but the code remains.
Based on the following OpenSSL commits. Some of the commits weren't
strictly deletions so they are going to be split up into separate commits.
6f91b017bbb7140f816721141ac156d1b828a6b3
3d47c1d331fdc7574d2275cda1a630ccdb624b08
dfb56425b68314b2b57e17c82c1df42e7a015132
c8fa2356a00cbaada8963f739e5570298311a060
f16a64d11f55c01f56baa62ebf1dec7f8fe718cb
9ccc00ef6ea65567622e40c49aca43f2c6d79cdb
02a938c953b3e1ced71d9a832de1618f907eb96d
75d0ebef2aef7a2c77b27575b8da898e22f3ccd5
d6fbb194095312f4722c81c9362dbd0de66cb656
6f1a93ad111c7dfe36a09a976c4c009079b19ea1
1a5adcfb5edfe23908b350f8757df405b0f5f71f
8de24b792743d11e1d5a0dcd336a49368750c577
a2b18e657ea1a932d125154f4e13ab2258796d90
8e964419603d2478dfb391c66e7ccb2dcc9776b4
32dfde107636ac9bc62a5b3233fe2a54dbc27008
input + ok jsing@, miod@, tedu@
Diffstat (limited to 'src/lib/libcrypto/dso')
-rw-r--r-- | src/lib/libcrypto/dso/dso.h | 12 | ||||
-rw-r--r-- | src/lib/libcrypto/dso/dso_dlfcn.c | 8 |
2 files changed, 2 insertions, 18 deletions
diff --git a/src/lib/libcrypto/dso/dso.h b/src/lib/libcrypto/dso/dso.h index 52d391c0a4..42de08089e 100644 --- a/src/lib/libcrypto/dso/dso.h +++ b/src/lib/libcrypto/dso/dso.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dso.h,v 1.10 2014/08/14 17:55:28 tobias Exp $ */ | 1 | /* $OpenBSD: dso.h,v 1.11 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -149,13 +149,6 @@ typedef struct dso_meth_st { | |||
149 | * alone a DSO_METHOD implemented for them. */ | 149 | * alone a DSO_METHOD implemented for them. */ |
150 | DSO_FUNC_TYPE (*dso_bind_func)(DSO *dso, const char *symname); | 150 | DSO_FUNC_TYPE (*dso_bind_func)(DSO *dso, const char *symname); |
151 | 151 | ||
152 | /* I don't think this would actually be used in any circumstances. */ | ||
153 | #if 0 | ||
154 | /* Unbinds a variable */ | ||
155 | int (*dso_unbind_var)(DSO *dso, char *symname, void *symptr); | ||
156 | /* Unbinds a function */ | ||
157 | int (*dso_unbind_func)(DSO *dso, char *symname, DSO_FUNC_TYPE symptr); | ||
158 | #endif | ||
159 | /* The generic (yuck) "ctrl()" function. NB: Negative return | 152 | /* The generic (yuck) "ctrl()" function. NB: Negative return |
160 | * values (rather than zero) indicate errors. */ | 153 | * values (rather than zero) indicate errors. */ |
161 | long (*dso_ctrl)(DSO *dso, int cmd, long larg, void *parg); | 154 | long (*dso_ctrl)(DSO *dso, int cmd, long larg, void *parg); |
@@ -309,9 +302,6 @@ int DSO_pathbyaddr(void *addr, char *path, int sz); | |||
309 | * itself or libsocket. */ | 302 | * itself or libsocket. */ |
310 | void *DSO_global_lookup(const char *name); | 303 | void *DSO_global_lookup(const char *name); |
311 | 304 | ||
312 | /* If BeOS is defined, use shared images. If not, return NULL. */ | ||
313 | DSO_METHOD *DSO_METHOD_beos(void); | ||
314 | |||
315 | /* BEGIN ERROR CODES */ | 305 | /* BEGIN ERROR CODES */ |
316 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 306 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
317 | * made after this point may be overwritten when the script is next run. | 307 | * made after this point may be overwritten when the script is next run. |
diff --git a/src/lib/libcrypto/dso/dso_dlfcn.c b/src/lib/libcrypto/dso/dso_dlfcn.c index b75c9e23e0..f22e641bab 100644 --- a/src/lib/libcrypto/dso/dso_dlfcn.c +++ b/src/lib/libcrypto/dso/dso_dlfcn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dso_dlfcn.c,v 1.27 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dso_dlfcn.c,v 1.28 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -82,12 +82,6 @@ static int dlfcn_load(DSO *dso); | |||
82 | static int dlfcn_unload(DSO *dso); | 82 | static int dlfcn_unload(DSO *dso); |
83 | static void *dlfcn_bind_var(DSO *dso, const char *symname); | 83 | static void *dlfcn_bind_var(DSO *dso, const char *symname); |
84 | static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname); | 84 | static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname); |
85 | #if 0 | ||
86 | static int dlfcn_unbind(DSO *dso, char *symname, void *symptr); | ||
87 | static int dlfcn_init(DSO *dso); | ||
88 | static int dlfcn_finish(DSO *dso); | ||
89 | static long dlfcn_ctrl(DSO *dso, int cmd, long larg, void *parg); | ||
90 | #endif | ||
91 | static char *dlfcn_name_converter(DSO *dso, const char *filename); | 85 | static char *dlfcn_name_converter(DSO *dso, const char *filename); |
92 | static char *dlfcn_merger(DSO *dso, const char *filespec1, | 86 | static char *dlfcn_merger(DSO *dso, const char *filespec1, |
93 | const char *filespec2); | 87 | const char *filespec2); |