[openssl.org #2576] [PATCH] OpenSSL-1.0.0d implicit declaration of getenv()

2011-08-02 Thread Doug Goldstein via RT
I'm receiving the following warning when building openssl-1.0.0d:

making all in crypto/conf...
conf_api.c: In function '_CONF_get_string':
conf_api.c:144:5: warning: implicit declaration of function 'getenv'
conf_api.c:144:6: warning: assignment makes pointer from integer without a cast
conf_api.c:157:3: warning: return makes pointer from integer without a cast

The attached patch resolves the issue for me.

Index: crypto/conf/conf_api.c
===
--- crypto/conf/conf_api.c  (revision 26625)
+++ crypto/conf/conf_api.c  (revision 26626)
@@ -64,6 +64,7 @@
 #endif

 #include assert.h
+#include stdlib.h
 #include string.h
 #include openssl/conf.h
 #include openssl/conf_api.h

-- 
Doug Goldstein



openssl-1.0.0d-getenv.patch
Description: Binary data


[openssl.org #2163] OpenSSL 1.0.0-beta5: header clean ups

2010-02-05 Thread Doug Goldstein via RT
The following patch removes #include lines for headers that are never
needed or used in certain files.

-- 
Doug Goldstein



openssl-1.0.0-beta5-header-cleanups.patch
Description: Binary data


[openssl.org #2161] OpenSSL 1.0.0-beta5: Compile failure with no-dsa no-ecdsa

2010-02-02 Thread Doug Goldstein via RT
If you attempt to build OpenSSL 1.0.0-beta5 with no-dsa and no-ecdsa,
the compile will fail at s3_clnt.c line 2761 due to the use of the
variable j in an unconditionally used chunk of code. However j is
only declared when you have either dsa or ecdsa enabled. The patch
removes the conditional declaration of j and makes it always
visible.

--
Doug Goldstein



openssl-1.0.0-beta5-no-dsa-no-ecdsa.patch
Description: Binary data