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

(-)a/ccast/ccpacket.c (-3 / +6 lines)
Lines 156-161 Link Here
156
#ifdef USING_AXTLS
156
#ifdef USING_AXTLS
157
	if ((p->ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER, 1)) == NULL)
157
	if ((p->ctx = ssl_ctx_new(SSL_SERVER_VERIFY_LATER, 1)) == NULL)
158
#else
158
#elif OPENSSL_VERSION_NUMBER < 0x10100000L
159
	// Want to use TLS_client_method(), but older OpenSSL doesn't have it...
160
	if ((p->ctx = SSL_CTX_new(TLSv1_client_method())) == NULL)
159
	if ((p->ctx = SSL_CTX_new(TLSv1_client_method())) == NULL)
160
#else
161
	if ((p->ctx = SSL_CTX_new(TLS_client_method())) == NULL)
161
#endif
162
#endif
Lines 584-591 Link Here
584
	ccpacket *p = NULL;
584
	ccpacket *p = NULL;
585
585
586
#ifndef USING_AXTLS
586
#if OPENSSL_VERSION_NUMBER < 0x10100000L
587
	SSL_load_error_strings();
587
	SSL_load_error_strings();
588
	SSL_library_init();
588
	SSL_library_init();
589
#elif !defined USING_AXTLS
590
	OPENSSL_init_ssl(0, NULL);
589
#endif
591
#endif
590
592
591
	if ((p = (ccpacket *)calloc(1, sizeof(ccpacket))) == NULL) {
593
	if ((p = (ccpacket *)calloc(1, sizeof(ccpacket))) == NULL) {

Return to bug 650224