FreeBSD Bugzilla – Attachment 191576 Details for
Bug 226676
security/testssl.sh: fix date processing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
testssl.sh.patch (text/plain), 1.88 KB, created by
Piotr Kubaj
on 2018-03-17 14:24:14 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-03-17 14:24:14 UTC
Size:
1.88 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 464757) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > PORTNAME= testssl.sh > DISTVERSIONPREFIX= v > DISTVERSION= 2.9.5-2 >+PORTREVISION= 1 > CATEGORIES= security > > MAINTAINER= tobik@FreeBSD.org >Index: files/patch-testssl.sh >=================================================================== >--- files/patch-testssl.sh (revision 464757) >+++ files/patch-testssl.sh (working copy) >@@ -1,12 +1,21 @@ >---- testssl.sh.orig 2017-11-05 21:50:58 UTC >+--- testssl.sh.orig 2018-03-17 15:02:25 UTC > +++ testssl.sh >-@@ -164,6 +164,9 @@ TERM_CURRPOS=0 >+@@ -175,6 +175,9 @@ TERM_CURRPOS=0 > ## CONFIGURATION PART ## > # following variables make use of $ENV, e.g. OPENSSL=<myprivate_path_to_openssl> ./testssl.sh <host> > # 0 means (normally) true here. Some of the variables are also accessible with a command line switch, see --help > +if [[ -z "$OPENSSL" ]] ; then >-+ OPENSSL=PREFIX/openssl-unsafe/bin/openssl >++ OPENSSL=/usr/local/openssl-unsafe/bin/openssl > +fi > declare -x OPENSSL OPENSSL_TIMEOUT > FAST_SOCKET=${FAST_SOCKET:-false} # EXPERIMENTAL feature to accelerate sockets -- DO NOT USE it for production > COLOR=${COLOR:-2} # 2: Full color, 1: b/w+positioning, 0: no ESC at all >+@@ -6221,7 +6224,7 @@ certificate_info() { >+ # best we are able to do under OpenBSD >+ days2expire="" >+ else >+- days2expire=$(( $(parse_date "$enddate" "+%s" "%F %H:%M %z") - $(LC_ALL=C date "+%s") )) # in seconds >++ days2expire=$(( $(parse_date "$enddate" "+%s" "%F %H:%M") - $(LC_ALL=C date "+%s") )) # in seconds >+ days2expire=$((days2expire / 3600 / 24 )) >+ >+ if grep -q "^Let's Encrypt Authority" <<< "$issuer_CN"; then # we take the half of the thresholds for LE certificates
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226676
: 191576