1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/sysutils/webjob/files/patch-tools_webjob-dsvtool_ssl.c
Bernard Spil f0d02d0f75 sysutils/webjob: Fix build without SSLv2
PR:		203701
Sponsored by:	BSDCan 2016
2016-06-12 18:18:31 +00:00

13 lines
527 B
C

--- tools/webjob-dsvtool/ssl.c.orig 2015-10-04 14:04:34 UTC
+++ tools/webjob-dsvtool/ssl.c
@@ -241,7 +241,8 @@ SslInitializeCTX(SSL_PROPERTIES *psPrope
*
*********************************************************************
*/
- psProperties->psslCTX = SSL_CTX_new(SSLv3_client_method());
+ psProperties->psslCTX = SSL_CTX_new(SSLv23_client_method());
+ SSL_CTX_set_options(psProperties->psslCTX, SSL_OP_NO_SSL2 );
if (psProperties->psslCTX == NULL)
{
ERR_error_string(ERR_get_error(), acLocalError);