Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 646888
Collapse All | Expand All

(-)pgpool-II-3.7.1.orig/src/main/main.c (-1 / +1 lines)
Lines 186-192 int main(int argc, char **argv) Link Here
186
	}
186
	}
187
#ifdef USE_SSL
187
#ifdef USE_SSL
188
	/* global ssl init */
188
	/* global ssl init */
189
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
189
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
190
	OPENSSL_init_ssl(0, NULL);
190
	OPENSSL_init_ssl(0, NULL);
191
#else
191
#else
192
	SSL_library_init();
192
	SSL_library_init();
(-)pgpool-II-3.7.1.orig/src/utils/pool_ssl.c (-1 / +1 lines)
Lines 253-259 static int init_ssl_ctx(POOL_CONNECTION Link Here
253
	char *cacert = NULL, *cacert_dir = NULL;
253
	char *cacert = NULL, *cacert_dir = NULL;
254
254
255
	/* initialize SSL members */
255
	/* initialize SSL members */
256
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
256
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
257
		cp->ssl_ctx = SSL_CTX_new(TLS_method());
257
		cp->ssl_ctx = SSL_CTX_new(TLS_method());
258
#else
258
#else
259
		cp->ssl_ctx = SSL_CTX_new(SSLv23_method());
259
		cp->ssl_ctx = SSL_CTX_new(SSLv23_method());
(-)pgpool-II-3.7.1.orig/src/watchdog/wd_utils.c (-2 / +2 lines)
Lines 154-160 static void calculate_hmac_sha256(const Link Here
154
	unsigned int res_len = WD_AUTH_HASH_LEN;
154
	unsigned int res_len = WD_AUTH_HASH_LEN;
155
	HMAC_CTX *ctx = NULL;
155
	HMAC_CTX *ctx = NULL;
156
156
157
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
157
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
158
	ctx = HMAC_CTX_new();
158
	ctx = HMAC_CTX_new();
159
	HMAC_CTX_reset(ctx);
159
	HMAC_CTX_reset(ctx);
160
#else
160
#else
Lines 165-171 static void calculate_hmac_sha256(const Link Here
165
	HMAC_Init_ex(ctx, key, strlen(key), EVP_sha256(), NULL);
165
	HMAC_Init_ex(ctx, key, strlen(key), EVP_sha256(), NULL);
166
	HMAC_Update(ctx, (unsigned char*)data, len);
166
	HMAC_Update(ctx, (unsigned char*)data, len);
167
	HMAC_Final(ctx, (unsigned char*)str, &res_len);
167
	HMAC_Final(ctx, (unsigned char*)str, &res_len);
168
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
168
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER))
169
	HMAC_CTX_reset(ctx);
169
	HMAC_CTX_reset(ctx);
170
	HMAC_CTX_free(ctx);
170
	HMAC_CTX_free(ctx);
171
#else
171
#else

Return to bug 646888