FreeBSD Bugzilla – Attachment 192565 Details for
Bug 223486
www/e2guardian: Fix certificate verification with SSL_MITM option enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
legacy e2guardian3 with cert patch applied
e2guardian.shar (text/plain), 24.24 KB, created by
marcellocoutinho
on 2018-04-16 17:47:52 UTC
(
hide
)
Description:
legacy e2guardian3 with cert patch applied
Filename:
MIME Type:
Creator:
marcellocoutinho
Created:
2018-04-16 17:47:52 UTC
Size:
24.24 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># e2guardian ># e2guardian/pkg-descr ># e2guardian/distinfo ># e2guardian/Makefile ># e2guardian/pkg-plist ># e2guardian/files ># e2guardian/files/patch-src__CertificateAuthority.cpp ># e2guardian/files/patch-src__CertificateAuthority.hpp ># e2guardian/files/patch-configure.ac ># e2guardian/files/e2guardian.in ># e2guardian/pkg-message ># >echo c - e2guardian >mkdir -p e2guardian > /dev/null 2>&1 >echo x - e2guardian/pkg-descr >sed 's/^X//' >e2guardian/pkg-descr << '5f729cb88b3df75506da41880cf01e36' >Xe2guardian is a content filtering proxy that works in conjunction with another >Xcaching proxy such as Squid or Oops. More information can be found in the >Xe2guardian man page, the "doc" subdirectory and the in the configuration files. >X >Xe2guardian is a fork of DansGuardian and the maintainers fully acknowledge the >Xwork carried out by and the copyright of Daniel Baron and other contributors to >Xthe Dansguardian project. >X >XE2Guardian Main features: >XBuilt-in content scanner plugin system which includes AV scanning. >XCan be configured to have multiple filter configurations including groups >XSSL Inspection and Blanket SSL blocking >XNTLM, Digest, Basic, IP and DNS authentication >XHeader analysis and manipulation - you can also manipulate cookies - >XLarge file (2GB+) download & scanning support >XBlacklist, Greylist domains >XDeny regular Expressions on urls, body content, and headers >XDeep URL scanning to spot URLs in URLs >XAdvanced advert blocking >XUpdates to handle all current web technology trends >XTime Based Blocking >X >XWWW: http://e2guardian.org >5f729cb88b3df75506da41880cf01e36 >echo x - e2guardian/distinfo >sed 's/^X//' >e2guardian/distinfo << '9d1c560b0c842ca3e841a44e4eece31c' >XTIMESTAMP = 1491014016 >XSHA256 (e2guardian-e2guardian-v3.5.1_GH0.tar.gz) = 700d951aec61113513ed3bd139028bd944790e09712646a54143a73851356527 >XSIZE (e2guardian-e2guardian-v3.5.1_GH0.tar.gz) = 529677 >9d1c560b0c842ca3e841a44e4eece31c >echo x - e2guardian/Makefile >sed 's/^X//' >e2guardian/Makefile << '988b65728bf5f05662a4236f477251eb' >X# Created by: Marcello Coutinho >X# $FreeBSD$ >X >XPORTNAME= e2guardian >XPORTVERSION= 3.5.1 >XDISTVERSIONPREFIX= v >XPORTREVISION= 1 >XCATEGORIES= www >X >XMAINTAINER= marcellocoutinho@gmail.com >XCOMMENT= Dansguardian fork with many improvements and bug fixes >X >XLICENSE= GPLv2 >X >XBUILD_DEPENDS= rst2man:textproc/py-docutils >XLIB_DEPENDS= libpcre.so:devel/pcre >X >XUSES= autoreconf libtool iconv pkgconfig >XUSE_GITHUB= yes >XUSE_RC_SUBR= e2guardian >XGNU_CONFIGURE= yes >XCONFIGURE_ARGS= --localstatedir=/var \ >X --with-logdir=/var/log \ >X --with-piddir=/var/run \ >X --enable-fancydm >X >XOPTIONS_DEFINE= APACHE TRICKLE CLISCAN CLAMD ICAP KAV NTLM DNS EMAIL DEBUG SSL DOCS >XOPTIONS_DEFAULT=TRICKLE 1024 >XOPTIONS_SUB= yes >X >XAPACHE_DESC= Enable Apache support for access denied page >XTRICKLE_DESC= Enable the trickle download manager >XCLISCAN_DESC= Enable support for CLI content scanners >XCLAMD_DESC= Enable ClamD AV content scanner >XICAP_DESC= Enable ICAP AV content scanner support >XKAV_DESC= Enable Kaspersky AV support >XNTLM_DESC= Include NTLM authentication plugin >XDNS_DESC= Include DNS authetication plugin >XEMAIL_DESC= Enable e-mail reporting support >X >XOPTIONS_RADIO= DESCRIPTORS >XOPTIONS_RADIO_DESCRIPTORS= 1024 2048 4096 8192 >X >X1024_DESC= Enable default file descriptors >X2048_DESC= Enable 2048 file descriptors >X4096_DESC= Enable 4096 file descriptors >X8192_DESC= Enable 8192 file descriptors >X >XCONFDIR= ${PREFIX}/etc/e2guardian >X >XCPPFLAGS+= -I${LOCALBASE}/include >XCFLAGS+= -I${LOCALBASE}/include >X >XAPACHE_USE= APACHE_RUN=22+ >XTRICKLE_CONFIGURE_ENABLE= trickledm >XCLISCAN_CONFIGURE_ENABLE= commandline >XCLAMD_CONFIGURE_ENABLE= clamd=yes >XCLAMD_RUN_DEPENDS= ${LOCALBASE}/sbin/clamd:security/clamav >XICAP_CONFIGURE_ENABLE= icap >XKAV_CONFIGURE_ENABLE= kavd >XNTLM_CONFIGURE_ENABLE= ntlm >XNTLM_RUN_DEPENDS= ${LOCALBASE}/bin/iconv:converters/libiconv >XNTLM_USES= iconv >XDNS_CONFIGURE_ENABLE= dnsauth >XEMAIL_CONFIGURE_ENABLE= email >XDEBUG_CONFIGURE_ON= --with-dgdebug=on >X1024_CONFIGURE_ON= --with-filedescriptors=1024 >X2048_CONFIGURE_ON= --with-filedescriptors=2048 >X4096_CONFIGURE_ON= --with-filedescriptors=4096 >X8192_CONFIGURE_ON= --with-filedescriptors=8192 >XSSL_LDFLAGS= -lssl -lcrypto >XSSL_CFLAGS= -D__SSLMITM -D__SSLCERT >X >X.include <bsd.port.options.mk> >X >X.if ${PORT_OPTIONS:MCLAMD} || ${PORT_OPTIONS:MICAP} || \ >X ${PORT_OPTIONS:MKAV} || ${PORT_OPTIONS:MCLISCAN} >XPLIST_SUB+= SCANNERS="" >X.else >XPLIST_SUB+= SCANNERS="@comment " >X.endif >X >Xpost-extract: >X.if ${PORT_OPTIONS:M2048} || ${PORT_OPTIONS:M4096} || ${PORT_OPTIONS:M8192} >X @${ECHO_MSG} "" >X @${ECHO_MSG} "######################################################" >X @${ECHO_MSG} "WARNING! Filedescriptors option higher then 1024." >X @${ECHO_MSG} "Check/raise FD_SETSIZE in /usr/include/sys/select.h" >X @${ECHO_MSG} "before preceeding with e2guardian compilation" >X @${ECHO_MSG} "######################################################" >X @${ECHO_MSG} "" >X @sleep 3 >X.endif >X >Xpre-configure: >X @cd ${WRKSRC} && ${SH} ${WRKSRC}/autogen.sh >X >Xpost-install: >X @${FIND} ${STAGEDIR}${ETCDIR} -type f \ >X \( -name '*.conf' -or -name '*list' \) -exec ${MV} {} {}.sample \; >X @${MV} ${STAGEDIR}${ETCDIR}/lists/authplugins/ipgroups \ >X ${STAGEDIR}${ETCDIR}/lists/authplugins/ipgroups.sample >X @${MV} ${STAGEDIR}${ETCDIR}/lists/authplugins/portgroups \ >X ${STAGEDIR}${ETCDIR}/lists/authplugins/portgroups.sample >X @${MV} ${STAGEDIR}${ETCDIR}/lists/bannedrooms/default \ >X ${STAGEDIR}${ETCDIR}/lists/bannedrooms/default.sample >X >X.include <bsd.port.mk> >988b65728bf5f05662a4236f477251eb >echo x - e2guardian/pkg-plist >sed 's/^X//' >e2guardian/pkg-plist << 'c40ee3112a58f8c0dbbc56dd780039af' >X%%DNS%%@sample %%ETCDIR%%/authplugins/dnsauth.conf.sample >X@sample %%ETCDIR%%/authplugins/ident.conf.sample >X@sample %%ETCDIR%%/authplugins/ip.conf.sample >X@sample %%ETCDIR%%/authplugins/port.conf.sample >X@sample %%ETCDIR%%/authplugins/proxy-basic.conf.sample >X@sample %%ETCDIR%%/authplugins/proxy-digest.conf.sample >X@sample %%ETCDIR%%/authplugins/proxy-header.conf.sample >X%%TRICKLE%%@sample %%ETCDIR%%/downloadmanagers/trickle.conf.sample >X%%NTLM%%@sample %%ETCDIR%%/authplugins/proxy-ntlm.conf.sample >X%%CLAMD%%@sample %%ETCDIR%%/contentscanners/clamdscan.conf.sample >X%%ICAP%%@sample %%ETCDIR%%/contentscanners/icapscan.conf.sample >X%%CLISCAN%%@sample %%ETCDIR%%/contentscanners/commandlinescan.conf.sample >X%%KAV%%@sample %%ETCDIR%%/contentscanners/kavdscan.conf.sample >X@sample %%ETCDIR%%/downloadmanagers/default.conf.sample >X@sample %%ETCDIR%%/downloadmanagers/fancy.conf.sample >X@sample %%ETCDIR%%/e2guardian.conf.sample >X@sample %%ETCDIR%%/e2guardianf1.conf.sample >X@sample %%ETCDIR%%/lists/addheaderregexplist.sample >X%%DNS%%@sample %%ETCDIR%%/lists/authexceptionsitelist.sample >X%%DNS%%@sample %%ETCDIR%%/lists/authexceptionurllist.sample >X@sample %%ETCDIR%%/lists/authplugins/ipgroups.sample >X@sample %%ETCDIR%%/lists/authplugins/portgroups.sample >X@sample %%ETCDIR%%/lists/bannedextensionlist.sample >X@sample %%ETCDIR%%/lists/bannediplist.sample >X@sample %%ETCDIR%%/lists/bannedmimetypelist.sample >X@sample %%ETCDIR%%/lists/bannedphraselist.sample >X@sample %%ETCDIR%%/lists/bannedregexpheaderlist.sample >X@sample %%ETCDIR%%/lists/bannedregexpurllist.sample >X@sample %%ETCDIR%%/lists/bannedrooms/default.sample >X@sample %%ETCDIR%%/lists/bannedsearchlist.sample >X@sample %%ETCDIR%%/lists/bannedsitelist.sample >X@sample %%ETCDIR%%/lists/bannedsslsitelist.sample >X@sample %%ETCDIR%%/lists/bannedurllist.sample >X@sample %%ETCDIR%%/lists/contentregexplist.sample >X%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirusextensionlist.sample >X%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirusmimetypelist.sample >X%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirussitelist.sample >X%%SCANNERS%%@sample %%ETCDIR%%/lists/contentscanners/exceptionvirusurllist.sample >X@sample %%ETCDIR%%/lists/downloadmanagers/managedextensionlist.sample >X@sample %%ETCDIR%%/lists/downloadmanagers/managedmimetypelist.sample >X@sample %%ETCDIR%%/lists/embededreferersitelist.sample >X@sample %%ETCDIR%%/lists/embededrefererurllist.sample >X@sample %%ETCDIR%%/lists/exceptionextensionlist.sample >X@sample %%ETCDIR%%/lists/exceptionfilesitelist.sample >X@sample %%ETCDIR%%/lists/exceptionfileurllist.sample >X@sample %%ETCDIR%%/lists/exceptioniplist.sample >X@sample %%ETCDIR%%/lists/exceptionmimetypelist.sample >X@sample %%ETCDIR%%/lists/exceptionphraselist.sample >X@sample %%ETCDIR%%/lists/exceptionregexpurllist.sample >X@sample %%ETCDIR%%/lists/exceptionsitelist.sample >X@sample %%ETCDIR%%/lists/exceptionurllist.sample >X@sample %%ETCDIR%%/lists/filtergroupslist.sample >X@sample %%ETCDIR%%/lists/greysitelist.sample >X@sample %%ETCDIR%%/lists/greysslsitelist.sample >X@sample %%ETCDIR%%/lists/greyurllist.sample >X@sample %%ETCDIR%%/lists/headerregexplist.sample >X@sample %%ETCDIR%%/lists/localbannedsearchlist.sample >X@sample %%ETCDIR%%/lists/localbannedsitelist.sample >X@sample %%ETCDIR%%/lists/localbannedsslsitelist.sample >X@sample %%ETCDIR%%/lists/localbannedurllist.sample >X@sample %%ETCDIR%%/lists/localexceptionsitelist.sample >X@sample %%ETCDIR%%/lists/localexceptionurllist.sample >X@sample %%ETCDIR%%/lists/localgreysitelist.sample >X@sample %%ETCDIR%%/lists/localgreysslsitelist.sample >X@sample %%ETCDIR%%/lists/localgreyurllist.sample >X@sample %%ETCDIR%%/lists/logregexpurllist.sample >X@sample %%ETCDIR%%/lists/logsitelist.sample >X@sample %%ETCDIR%%/lists/logurllist.sample >X@sample %%ETCDIR%%/lists/nocheckcertsitelist.sample >X%%ETCDIR%%/lists/phraselists/badwords/weighted_dutch >X%%ETCDIR%%/lists/phraselists/badwords/weighted_french >X%%ETCDIR%%/lists/phraselists/badwords/weighted_german >X%%ETCDIR%%/lists/phraselists/badwords/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/badwords/weighted_spanish >X%%ETCDIR%%/lists/phraselists/chat/weighted >X%%ETCDIR%%/lists/phraselists/chat/weighted_italian >X%%ETCDIR%%/lists/phraselists/conspiracy/weighted >X%%ETCDIR%%/lists/phraselists/domainsforsale/weighted >X%%ETCDIR%%/lists/phraselists/drugadvocacy/weighted >X%%ETCDIR%%/lists/phraselists/forums/weighted >X%%ETCDIR%%/lists/phraselists/gambling/banned >X%%ETCDIR%%/lists/phraselists/gambling/banned_portuguese >X%%ETCDIR%%/lists/phraselists/gambling/weighted >X%%ETCDIR%%/lists/phraselists/gambling/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/games/weighted >X%%ETCDIR%%/lists/phraselists/goodphrases/exception >X%%ETCDIR%%/lists/phraselists/goodphrases/exception_email >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_danish >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_dutch >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_malay >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_polish >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_portuguese >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_general_swedish >X%%ETCDIR%%/lists/phraselists/goodphrases/weighted_news >X%%ETCDIR%%/lists/phraselists/googlesearches/banned >X%%ETCDIR%%/lists/phraselists/gore/weighted >X%%ETCDIR%%/lists/phraselists/gore/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/idtheft/weighted >X%%ETCDIR%%/lists/phraselists/illegaldrugs/banned >X%%ETCDIR%%/lists/phraselists/illegaldrugs/weighted >X%%ETCDIR%%/lists/phraselists/illegaldrugs/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/intolerance/banned_portuguese >X%%ETCDIR%%/lists/phraselists/intolerance/weighted >X%%ETCDIR%%/lists/phraselists/intolerance/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/legaldrugs/weighted >X%%ETCDIR%%/lists/phraselists/malware/weighted >X%%ETCDIR%%/lists/phraselists/music/weighted >X%%ETCDIR%%/lists/phraselists/news/weighted >X%%ETCDIR%%/lists/phraselists/nudism/weighted >X%%ETCDIR%%/lists/phraselists/peer2peer/weighted >X%%ETCDIR%%/lists/phraselists/personals/weighted >X%%ETCDIR%%/lists/phraselists/personals/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/pornography/banned >X%%ETCDIR%%/lists/phraselists/pornography/banned_portuguese >X%%ETCDIR%%/lists/phraselists/pornography/weighted >X%%ETCDIR%%/lists/phraselists/pornography/weighted_chinese >X%%ETCDIR%%/lists/phraselists/pornography/weighted_danish >X%%ETCDIR%%/lists/phraselists/pornography/weighted_dutch >X%%ETCDIR%%/lists/phraselists/pornography/weighted_french >X%%ETCDIR%%/lists/phraselists/pornography/weighted_german >X%%ETCDIR%%/lists/phraselists/pornography/weighted_italian >X%%ETCDIR%%/lists/phraselists/pornography/weighted_japanese >X%%ETCDIR%%/lists/phraselists/pornography/weighted_malay >X%%ETCDIR%%/lists/phraselists/pornography/weighted_norwegian >X%%ETCDIR%%/lists/phraselists/pornography/weighted_polish >X%%ETCDIR%%/lists/phraselists/pornography/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/pornography/weighted_russian >X%%ETCDIR%%/lists/phraselists/pornography/weighted_russian_utf8 >X%%ETCDIR%%/lists/phraselists/pornography/weighted_spanish >X%%ETCDIR%%/lists/phraselists/pornography/weighted_swedish >X%%ETCDIR%%/lists/phraselists/proxies/weighted >X%%ETCDIR%%/lists/phraselists/rta/banned >X%%ETCDIR%%/lists/phraselists/safelabel/banned >X%%ETCDIR%%/lists/phraselists/secretsocieties/weighted >X%%ETCDIR%%/lists/phraselists/sport/weighted >X%%ETCDIR%%/lists/phraselists/translation/weighted >X%%ETCDIR%%/lists/phraselists/travel/weighted >X%%ETCDIR%%/lists/phraselists/upstreamfilter/weighted >X%%ETCDIR%%/lists/phraselists/violence/weighted >X%%ETCDIR%%/lists/phraselists/violence/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/warezhacking/weighted >X%%ETCDIR%%/lists/phraselists/weapons/weighted >X%%ETCDIR%%/lists/phraselists/weapons/weighted_portuguese >X%%ETCDIR%%/lists/phraselists/webmail/weighted >X%%ETCDIR%%/lists/pics >X@sample %%ETCDIR%%/lists/refererexceptionsitelist.sample >X@sample %%ETCDIR%%/lists/refererexceptionurllist.sample >X@sample %%ETCDIR%%/lists/searchregexplist.sample >X@sample %%ETCDIR%%/lists/sslsiteregexplist.sample >X@sample %%ETCDIR%%/lists/urlredirectregexplist.sample >X@sample %%ETCDIR%%/lists/urlregexplist.sample >X@sample %%ETCDIR%%/lists/weightedphraselist.sample >Xman/man8/e2guardian.8.gz >Xsbin/e2guardian >X%%PORTDOCS%%%%DOCSDIR%%/AuthPlugins >X%%PORTDOCS%%%%DOCSDIR%%/ContentScanners >X%%PORTDOCS%%%%DOCSDIR%%/DownloadManagers >X%%PORTDOCS%%%%DOCSDIR%%/FAQ >X%%PORTDOCS%%%%DOCSDIR%%/FAQ.html >X%%PORTDOCS%%%%DOCSDIR%%/Plugins >X%%DATADIR%%/e2guardian.pl >X%%DATADIR%%/languages/arspanish/fancydmtemplate.html >X%%DATADIR%%/languages/arspanish/messages >X%%DATADIR%%/languages/arspanish/template.html >X%%DATADIR%%/languages/bulgarian/fancydmtemplate.html >X%%DATADIR%%/languages/bulgarian/messages >X%%DATADIR%%/languages/bulgarian/template.html >X%%DATADIR%%/languages/chinesebig5/fancydmtemplate.html >X%%DATADIR%%/languages/chinesebig5/messages >X%%DATADIR%%/languages/chinesebig5/template.html >X%%DATADIR%%/languages/chinesegb2312/fancydmtemplate.html >X%%DATADIR%%/languages/chinesegb2312/messages >X%%DATADIR%%/languages/chinesegb2312/template.html >X%%DATADIR%%/languages/czech/fancydmtemplate.html >X%%DATADIR%%/languages/czech/messages >X%%DATADIR%%/languages/czech/template.html >X%%DATADIR%%/languages/danish/fancydmtemplate.html >X%%DATADIR%%/languages/danish/messages >X%%DATADIR%%/languages/danish/template.html >X%%DATADIR%%/languages/dutch/fancydmtemplate.html >X%%DATADIR%%/languages/dutch/messages >X%%DATADIR%%/languages/dutch/template.html >X%%DATADIR%%/languages/french/fancydmtemplate.html >X%%DATADIR%%/languages/french/messages >X%%DATADIR%%/languages/french/template.html >X%%DATADIR%%/languages/german/fancydmtemplate.html >X%%DATADIR%%/languages/german/messages >X%%DATADIR%%/languages/german/template.html >X%%DATADIR%%/languages/hebrew/fancydmtemplate.html >X%%DATADIR%%/languages/hebrew/messages >X%%DATADIR%%/languages/hebrew/template.html >X%%DATADIR%%/languages/hungarian/fancydmtemplate.html >X%%DATADIR%%/languages/hungarian/messages >X%%DATADIR%%/languages/hungarian/template.html >X%%DATADIR%%/languages/indonesian/fancydmtemplate.html >X%%DATADIR%%/languages/indonesian/messages >X%%DATADIR%%/languages/indonesian/template.html >X%%DATADIR%%/languages/italian/fancydmtemplate.html >X%%DATADIR%%/languages/italian/messages >X%%DATADIR%%/languages/italian/template.html >X%%DATADIR%%/languages/japanese/fancydmtemplate.html >X%%DATADIR%%/languages/japanese/messages >X%%DATADIR%%/languages/japanese/template.html >X%%DATADIR%%/languages/lithuanian/fancydmtemplate.html >X%%DATADIR%%/languages/lithuanian/messages >X%%DATADIR%%/languages/lithuanian/template.html >X%%DATADIR%%/languages/malay/fancydmtemplate.html >X%%DATADIR%%/languages/malay/messages >X%%DATADIR%%/languages/malay/template.html >X%%DATADIR%%/languages/mxspanish/fancydmtemplate.html >X%%DATADIR%%/languages/mxspanish/messages >X%%DATADIR%%/languages/mxspanish/template.html >X%%DATADIR%%/languages/polish/fancydmtemplate.html >X%%DATADIR%%/languages/polish/messages >X%%DATADIR%%/languages/polish/template.html >X%%DATADIR%%/languages/portuguese/fancydmtemplate.html >X%%DATADIR%%/languages/portuguese/messages >X%%DATADIR%%/languages/portuguese/messagesaccents >X%%DATADIR%%/languages/portuguese/template.html >X%%DATADIR%%/languages/ptbrazilian/fancydmtemplate.html >X%%DATADIR%%/languages/ptbrazilian/messages >X%%DATADIR%%/languages/ptbrazilian/template.html >X%%DATADIR%%/languages/russian-1251/fancydmtemplate.html >X%%DATADIR%%/languages/russian-1251/messages >X%%DATADIR%%/languages/russian-1251/template.html >X%%DATADIR%%/languages/russian-koi8-r/fancydmtemplate.html >X%%DATADIR%%/languages/russian-koi8-r/messages >X%%DATADIR%%/languages/russian-koi8-r/template.html >X%%DATADIR%%/languages/slovak/fancydmtemplate.html >X%%DATADIR%%/languages/slovak/messages >X%%DATADIR%%/languages/slovak/template.html >X%%DATADIR%%/languages/spanish/fancydmtemplate.html >X%%DATADIR%%/languages/spanish/messages >X%%DATADIR%%/languages/spanish/template.html >X%%DATADIR%%/languages/swedish/fancydmtemplate.html >X%%DATADIR%%/languages/swedish/messages >X%%DATADIR%%/languages/swedish/template.html >X%%DATADIR%%/languages/turkish/fancydmtemplate.html >X%%DATADIR%%/languages/turkish/messages >X%%DATADIR%%/languages/turkish/template.html >X%%DATADIR%%/languages/ukenglish/fancydmtemplate.html >X%%DATADIR%%/languages/ukenglish/messages >X%%DATADIR%%/languages/ukenglish/messages.alt >X%%DATADIR%%/languages/ukenglish/template.html >X%%DATADIR%%/scripts/bsd-init >X%%DATADIR%%/scripts/e2guardian >X%%DATADIR%%/scripts/e2guardian.service >X%%DATADIR%%/scripts/logrotation >X%%DATADIR%%/scripts/solaris-init >X%%DATADIR%%/scripts/systemv-init >X%%DATADIR%%/transparent1x1.gif >X%%DATADIR%%/blockedflash.swf >c40ee3112a58f8c0dbbc56dd780039af >echo c - e2guardian/files >mkdir -p e2guardian/files > /dev/null 2>&1 >echo x - e2guardian/files/patch-src__CertificateAuthority.cpp >sed 's/^X//' >e2guardian/files/patch-src__CertificateAuthority.cpp << '7f477037c8fe128d670e4509ba1776f0' >X--- src/CertificateAuthority.cpp.orig 2017-03-13 16:05:36 UTC >X+++ src/CertificateAuthority.cpp >X@@ -61,7 +61,7 @@ CertificateAuthority::CertificateAuthori >X _caCert = PEM_read_X509(fp, NULL, NULL, NULL); >X if (_caCert == NULL) { >X //syslog(LOG_ERR, "Couldn't load ca certificate"); >X- log_ssl_errors("Couldn't load ca certificatei from %s", caCert); >X+ log_ssl_errors("Couldn't load ca certificate from %s", caCert); >X //ERR_print_errors_fp(stderr); >X exit(1); >X } >X@@ -118,7 +118,7 @@ bool CertificateAuthority::getSerial(con >X // added to generate different serial number than previous versions >X // needs to be added as an option >X std::string sname(commonname ); >X- sname += "A"; >X+ sname += "B"; >X >X #ifdef DGDEBUG >X std::cout << "Generating serial no for " << commonname << std::endl; >X@@ -133,8 +133,6 @@ bool CertificateAuthority::getSerial(con >X failed = true; >X } >X >X- >X-// if (!failed && EVP_DigestUpdate(&mdctx, commonname, strlen(commonname)) < 1) { >X if (!failed && EVP_DigestUpdate(&mdctx, sname.c_str(), strlen(sname.c_str())) < 1) { >X failed = true; >X } >X@@ -182,7 +180,7 @@ bool CertificateAuthority::writeCertific >X // make directory path >X int rc = mkpath(dirpath.c_str(), 0700); // only want e2g to have access to these dir >X if (rc != 0) { >X- syslog(LOG_ERR, "error creating certificate sub-directory"); >X+ syslog(LOG_ERR, "error creating certificate sub-directory: %s", dirpath.c_str()); >X exit(1); >X } >X >X@@ -350,8 +348,6 @@ X509 *CertificateAuthority::generateCert >X return NULL; >X } >X >X- unsigned char *cn = (unsigned char *)commonname; >X- >X //add the cn of the site we want a cert for the destination >X ERR_clear_error(); >X int rc = X509_NAME_add_entry_by_txt(name, "CN", >X@@ -389,6 +385,15 @@ X509 *CertificateAuthority::generateCert >X X509_free(newCert); >X return NULL; >X } >X+ { >X+ String temp1 = "DNS:"; >X+ String temp2 = commonname; >X+ temp1 = temp1 + temp2; >X+ char *value = (char*) temp1.toCharArray(); >X+ if( !addExtension(newCert, NID_subject_alt_name, value)) >X+ log_ssl_errors("Error adding subjectAltName to the request", commonname); >X+ } >X+ >X >X //sign it using the ca >X ERR_clear_error(); >X@@ -521,4 +526,18 @@ CertificateAuthority::~CertificateAuthor >X if (_caPrivKey) EVP_PKEY_free(_caPrivKey); >X if (_certPrivKey) EVP_PKEY_free(_certPrivKey); >X } >X+ >X+bool CertificateAuthority::addExtension(X509 *cert, int nid, char *value) >X+{ >X+ X509_EXTENSION *ex = NULL; >X+ >X+ ex = X509V3_EXT_conf_nid(NULL,NULL , nid, value); >X+ >X+ int result = X509_add_ext(cert, ex, -1); >X+ >X+ X509_EXTENSION_free(ex); >X+ >X+ return (result > 0) ? true : false; >X+} >X+ >X #endif //__SSLMITM >7f477037c8fe128d670e4509ba1776f0 >echo x - e2guardian/files/patch-src__CertificateAuthority.hpp >sed 's/^X//' >e2guardian/files/patch-src__CertificateAuthority.hpp << '01da42e398ef169449e7f742e3d6ae9d' >X--- src/CertificateAuthority.hpp.orig 2017-03-13 16:05:36 UTC >X+++ src/CertificateAuthority.hpp >X@@ -25,6 +25,7 @@ class CertificateAuthority >X time_t _ca_end; >X static int do_mkdir(const char *path, mode_t mode); >X int mkpath(const char *path, mode_t mode); >X+ bool addExtension(X509 *cert, int nid, char *value); >X >X public: >X CertificateAuthority(const char *caCert, >01da42e398ef169449e7f742e3d6ae9d >echo x - e2guardian/files/patch-configure.ac >sed 's/^X//' >e2guardian/files/patch-configure.ac << '44fcbb5a9c8248c5051fd412348367b6' >X--- configure.ac.orig 2017-03-13 16:05:36 UTC >X+++ configure.ac >X@@ -614,7 +614,6 @@ else >X AC_MSG_RESULT(yes) >X dnsauth=true >X DNSAUTHSUPPORT="" >X- LIBS="${LIBS} -lresolv" >X AC_DEFINE([PRT_DNSAUTH],[],[Define to enable DNS auth plugin]) >X fi], >X [ >44fcbb5a9c8248c5051fd412348367b6 >echo x - e2guardian/files/e2guardian.in >sed 's/^X//' >e2guardian/files/e2guardian.in << '05d1baeb1475dfdaf43cf046815660ca' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X >X# PROVIDE: e2guardian >X# REQUIRE: NETWORKING SERVERS squid clamav_clamd >X# BEFORE: DAEMON >X# KEYWORD: shutdown >X >X# >X# Add the following line to /etc/rc.conf to enable e2guardian: >X# e2guardian_enable (bool): Set to "NO" by default. >X# Set it to "YES" to enable e2guardian. >X# e2guardian_flags (text): Set e2guardian extra flags >X >X. /etc/rc.subr >X >Xname=e2guardian >Xrcvar=e2guardian_enable >Xdesc="e2guardian startup script" >X >Xload_rc_config $name >X >X: ${e2guardian_enable:=NO} >X: ${e2guardian_config="%%PREFIX%%/etc/${name}/${name}.conf"} >X >Xcommand=%%PREFIX%%/sbin/${name} >Xpidfile=/var/run/${name}.pid >Xstop_postcmd="e2guardian_stop_postcmd" >Xreload_cmd="e2guardian_reload_cmd" >Xextra_commands="reload" >X >Xcommand_args="-p $pidfile -f $e2guardian_config $e2guardian_flags" >X >Xe2guardian_reload_cmd() { >X if [ -f "${pidfile}" ]; then >X ${command} -g ${command_args} >X echo "Reloading ${name}." >X fi >X} >X >Xe2guardian_stop_postcmd() { >X rm ${pidfile} >X} >X >Xrun_rc_command "$1" >05d1baeb1475dfdaf43cf046815660ca >echo x - e2guardian/pkg-message >sed 's/^X//' >e2guardian/pkg-message << 'a1b2784bd5f1b400a138d7efc7568d09' >X===> Please Note: >X >X******************************************************************************* >X This port has created a log file named e2guardian.log that can get >X quite large. Please read the newsyslog(8) man page for instructions >X on configuring log rotation and compression. >X >X This port has been converted using old dansguardian-devel port >X Let me know how it works (or not). (Patches always welcome.) >X******************************************************************************* >a1b2784bd5f1b400a138d7efc7568d09 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
marcellocoutinho:
maintainer-approval-
marcellocoutinho:
maintainer-approval-
Actions:
View
Attachments on
bug 223486
:
187816
|
187818
|
187819
| 192565