From 4700aea951dcba9b1e3b724bf4d8f0c712578892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulf=20M=C3=B6ller?= Date: Tue, 11 Apr 2006 21:34:21 +0000 Subject: Add BeOS support. PR: 1312 Submitted by: Oliver Tappe Reviewed by: Ulf Moeller --- crypto/dso/Makefile | 4 ++-- crypto/dso/dso.h | 8 ++++++++ crypto/dso/dso_err.c | 5 +++++ crypto/dso/dso_openssl.c | 2 ++ 4 files changed, 17 insertions(+), 2 deletions(-) (limited to 'crypto/dso') diff --git a/crypto/dso/Makefile b/crypto/dso/Makefile index 07f5d8d159..105d1e056b 100644 --- a/crypto/dso/Makefile +++ b/crypto/dso/Makefile @@ -18,9 +18,9 @@ APPS= LIB=$(TOP)/libcrypto.a LIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \ - dso_openssl.c dso_win32.c dso_vms.c + dso_openssl.c dso_win32.c dso_vms.c dso_beos.c LIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \ - dso_openssl.o dso_win32.o dso_vms.o + dso_openssl.o dso_win32.o dso_vms.o dso_beos.o SRC= $(LIBSRC) diff --git a/crypto/dso/dso.h b/crypto/dso/dso.h index 8934c4ee21..3aa4f7aee5 100644 --- a/crypto/dso/dso.h +++ b/crypto/dso/dso.h @@ -322,6 +322,9 @@ int DSO_pathbyaddr(void *addr,char *path,int sz); * itself or libsocket. */ void *DSO_global_lookup(const char *name); +/* If BeOS is defined, use shared images. If not, return NULL. */ +DSO_METHOD *DSO_METHOD_beos(void); + /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. @@ -331,6 +334,11 @@ void ERR_load_DSO_strings(void); /* Error codes for the DSO functions. */ /* Function codes. */ +#define DSO_F_BEOS_BIND_FUNC 130 +#define DSO_F_BEOS_BIND_VAR 131 +#define DSO_F_BEOS_LOAD 132 +#define DSO_F_BEOS_NAME_CONVERTER 133 +#define DSO_F_BEOS_UNLOAD 134 #define DSO_F_DLFCN_BIND_FUNC 100 #define DSO_F_DLFCN_BIND_VAR 101 #define DSO_F_DLFCN_LOAD 102 diff --git a/crypto/dso/dso_err.c b/crypto/dso/dso_err.c index 009a543445..d7c6087a9d 100644 --- a/crypto/dso/dso_err.c +++ b/crypto/dso/dso_err.c @@ -70,6 +70,11 @@ static ERR_STRING_DATA DSO_str_functs[]= { +{ERR_FUNC(DSO_F_BEOS_BIND_FUNC), "BEOS_BIND_FUNC"}, +{ERR_FUNC(DSO_F_BEOS_BIND_VAR), "BEOS_BIND_VAR"}, +{ERR_FUNC(DSO_F_BEOS_LOAD), "BEOS_LOAD"}, +{ERR_FUNC(DSO_F_BEOS_NAME_CONVERTER), "BEOS_NAME_CONVERTER"}, +{ERR_FUNC(DSO_F_BEOS_UNLOAD), "BEOS_UNLOAD"}, {ERR_FUNC(DSO_F_DLFCN_BIND_FUNC), "DLFCN_BIND_FUNC"}, {ERR_FUNC(DSO_F_DLFCN_BIND_VAR), "DLFCN_BIND_VAR"}, {ERR_FUNC(DSO_F_DLFCN_LOAD), "DLFCN_LOAD"}, diff --git a/crypto/dso/dso_openssl.c b/crypto/dso/dso_openssl.c index a4395ebffe..b17e8e8e9e 100644 --- a/crypto/dso/dso_openssl.c +++ b/crypto/dso/dso_openssl.c @@ -74,6 +74,8 @@ DSO_METHOD *DSO_METHOD_openssl(void) return(DSO_METHOD_win32()); #elif defined(DSO_VMS) return(DSO_METHOD_vms()); +#elif defined(DSO_BEOS) + return(DSO_METHOD_beos()); #else return(DSO_METHOD_null()); #endif -- cgit v1.2.3