Skip to content

Commit 36ac02b

Browse files
committed
change OCSP server
1 parent 9e76783 commit 36ac02b

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go: [ '1.24' ]
15+
go: [ '1.25' ]
1616
steps:
1717
- uses: actions/checkout@v3
1818

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "2"
22

33
run:
4-
go: "1.24"
4+
go: "1.25"
55
timeout: 5m
66
tests: false
77
issues-exit-code: 1

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module go.osspkg.com/encrypt
22

3-
go 1.24.4
3+
go 1.25.0
44

55
require (
66
go.osspkg.com/casecheck v0.3.0
7-
go.osspkg.com/errors v0.3.1
7+
go.osspkg.com/errors v0.4.0
88
go.osspkg.com/random v0.5.0
9-
golang.org/x/crypto v0.42.0
9+
golang.org/x/crypto v0.43.0
1010
)
1111

12-
require golang.org/x/sys v0.36.0 // indirect
12+
require golang.org/x/sys v0.37.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
go.osspkg.com/casecheck v0.3.0 h1:x15blEszElbrHrEH5H02JIIhGIg/lGZzIt1kQlD3pwM=
22
go.osspkg.com/casecheck v0.3.0/go.mod h1:TRFXDMFJEOtnlp3ET2Hix3osbxwPWhvaiT/HfD3+gBA=
3-
go.osspkg.com/errors v0.3.1 h1:F9m/EEd/Ot2jba/TV7tvVRIpWXzIpNLc7vRJKcBD86A=
4-
go.osspkg.com/errors v0.3.1/go.mod h1:dKXe6Rt07nzY7OyKQNZ8HGBicZ2uQ5TKEoVFnVFOK44=
3+
go.osspkg.com/errors v0.4.0 h1:E17+WyUzTXEHCTxGm8lOMPOOojzHG1lsOuQtTVGoATQ=
4+
go.osspkg.com/errors v0.4.0/go.mod h1:s75ZovPemYtrCtRPVsbQNq9MgMbmLMK1NEypr+uwjXI=
55
go.osspkg.com/random v0.5.0 h1:6x2CQ5Vb6PVyuGi6Ao3K6Pr2fzVviBPCEEJC5HQNSmg=
66
go.osspkg.com/random v0.5.0/go.mod h1:lsg3FI87PQdjhVWIVo2GXyPBclipljUxjMlWqRl2cck=
7-
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
8-
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
9-
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
10-
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
7+
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
8+
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
9+
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
10+
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=

pgp/pgp_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"testing"
1212

1313
"go.osspkg.com/casecheck"
14+
1415
"go.osspkg.com/encrypt/pgp"
1516
)
1617

x509cert/ocsp.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package x509cert
77

88
import (
9+
"context"
910
"io"
1011
"net/http"
1112
"time"
@@ -14,7 +15,7 @@ import (
1415
)
1516

1617
type OCSPStatusResolver interface {
17-
OCSPStatusResolve(*ocsp.Request) (OCSPStatus, error)
18+
OCSPStatusResolve(ctx context.Context, r *ocsp.Request) (OCSPStatus, error)
1819
}
1920

2021
type OCSPStatus int
@@ -45,7 +46,7 @@ func (v *OCSPServer) HTTPHandler(w http.ResponseWriter, r *http.Request) {
4546
return
4647
}
4748

48-
status, err := v.Resolver.OCSPStatusResolve(req)
49+
status, err := v.Resolver.OCSPStatusResolve(r.Context(), req)
4950
if err != nil {
5051
http.Error(w, err.Error(), http.StatusInternalServerError)
5152
return

0 commit comments

Comments
 (0)