...

Source file src/github.com/letsencrypt/boulder/ocsp/responder/source.go

Documentation: github.com/letsencrypt/boulder/ocsp/responder

     1  package responder
     2  
     3  import (
     4  	"context"
     5  
     6  	"golang.org/x/crypto/ocsp"
     7  )
     8  
     9  // Response is a wrapper around the standard library's *ocsp.Response, but it
    10  // also carries with it the raw bytes of the encoded response.
    11  type Response struct {
    12  	*ocsp.Response
    13  	Raw []byte
    14  }
    15  
    16  // Source represents the logical source of OCSP responses, i.e.,
    17  // the logic that actually chooses a response based on a request.
    18  type Source interface {
    19  	Response(context.Context, *ocsp.Request) (*Response, error)
    20  }
    21  

View as plain text