Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bjt79 authored and kisom committed Mar 17, 2017
1 parent 61f5e08 commit 173f166
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ocsp/responder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package ocsp
import (
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"fmt"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -55,15 +56,15 @@ type SqliteSource struct {
Accessor certdb.Accessor
}

func NewSqliteSource(dbAccessor certdb.Accessor) ocsp.Source {
func NewSqliteSource(dbAccessor certdb.Accessor) Source {
return SqliteSource{
Accessor: dbAccessor
Accessor: dbAccessor,
}
}

// Response implements cfssl.ocsp.responder.Source, returning the OCSP response
// with the expiration date furthest in the future
func (src CertDbSource) Response(req *ocsp.Request) ([]byte, bool) {
func (src SqliteSource) Response(req *ocsp.Request) ([]byte, bool) {
if req == nil {
return nil, false
}
Expand Down

0 comments on commit 173f166

Please sign in to comment.