"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/ocsp/checkocsp/checkocsp.go" between
boulder-release-2020-06-23.tar.gz and boulder-release-2020-06-29.tar.gz

About: Boulder is an ACME-based Certificate Authority (CA) used by Let’s Encrypt (written in Go).

checkocsp.go  (boulder-release-2020-06-23):checkocsp.go  (boulder-release-2020-06-29)
skipping to change at line 15 skipping to change at line 15
"fmt" "fmt"
"log" "log"
"os" "os"
"github.com/letsencrypt/boulder/test/ocsp/helper" "github.com/letsencrypt/boulder/test/ocsp/helper"
) )
func main() { func main() {
flag.Usage = func() { flag.Usage = func() {
fmt.Fprintf(os.Stderr, ` fmt.Fprintf(os.Stderr, `
OCSP-checking tool. Provide a list of filenames for certificates in PEM format, checkocsp [OPTION]... FILE [FILE]...
and
this tool will check OCSP for each certificate based on the AIA field in the OCSP-checking tool. Provide a list of filenames for certificates in PEM format,
certificates. It will return an error if the OCSP server fails to respond for and this tool will check OCSP for each certificate based on its AIA field.
any request, if any response is invalid or has a bad signature, or if any It will return an error if the OCSP server fails to respond for any request,
response is too stale. if any response is invalid or has a bad signature, or if any response is too
stale.
`) `)
flag.PrintDefaults() flag.PrintDefaults()
} }
flag.Parse() flag.Parse()
var errors bool var errors bool
if len(flag.Args()) == 0 { if len(flag.Args()) == 0 {
flag.Usage() flag.Usage()
os.Exit(0) os.Exit(0)
} }
for _, f := range flag.Args() { for _, f := range flag.Args() {
_, err := helper.Req(f) _, err := helper.Req(f, helper.ConfigFromFlags())
if err != nil { if err != nil {
log.Printf("error for %s: %s\n", f, err) log.Printf("error for %s: %s\n", f, err)
errors = true errors = true
} }
} }
if errors { if errors {
os.Exit(1) os.Exit(1)
} }
} }
 End of changes. 2 change blocks. 
7 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)