forked from forgejo/forgejo
Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-git/go-billy/v5 * update github.com/go-git/go-git/v5 * update github.com/go-redis/redis/v8 * update github.com/go-testfixtures/testfixtures/v3 * update github.com/jaytaylor/html2text * update github.com/json-iterator/go * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mattn/go-isatty * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/prometheus/client_golang * update github.com/unrolled/render * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark * update github.com/yuin/goldmark-highlighting Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
f088dc4ea1
commit
86e2789960
819 changed files with 38072 additions and 34969 deletions
27
vendor/github.com/caddyserver/certmagic/account.go
generated
vendored
27
vendor/github.com/caddyserver/certmagic/account.go
generated
vendored
|
@ -28,6 +28,7 @@ import (
|
|||
"path"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/mholt/acmez/acme"
|
||||
)
|
||||
|
@ -185,9 +186,14 @@ func (am *ACMEManager) saveAccount(ca string, account acme.Account) error {
|
|||
func (am *ACMEManager) getEmail(allowPrompts bool) error {
|
||||
leEmail := am.Email
|
||||
|
||||
// First try package default email
|
||||
// First try package default email, or a discovered email address
|
||||
if leEmail == "" {
|
||||
leEmail = DefaultACME.Email // TODO: racey with line 122 (or whichever line assigns to DefaultACME.Email below)
|
||||
leEmail = DefaultACME.Email
|
||||
}
|
||||
if leEmail == "" {
|
||||
discoveredEmailMu.Lock()
|
||||
leEmail = discoveredEmail
|
||||
discoveredEmailMu.Unlock()
|
||||
}
|
||||
|
||||
// Then try to get most recent user email from storage
|
||||
|
@ -210,8 +216,13 @@ func (am *ACMEManager) getEmail(allowPrompts bool) error {
|
|||
|
||||
// save the email for later and ensure it is consistent
|
||||
// for repeated use; then update cfg with the email
|
||||
DefaultACME.Email = strings.TrimSpace(strings.ToLower(leEmail)) // TODO: this is racey with line 99
|
||||
am.Email = DefaultACME.Email
|
||||
leEmail = strings.TrimSpace(strings.ToLower(leEmail))
|
||||
discoveredEmailMu.Lock()
|
||||
if discoveredEmail == "" {
|
||||
discoveredEmail = leEmail
|
||||
}
|
||||
discoveredEmailMu.Unlock()
|
||||
am.Email = leEmail
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -386,6 +397,14 @@ func getPrimaryContact(account acme.Account) string {
|
|||
return primaryContact
|
||||
}
|
||||
|
||||
// When an email address is not explicitly specified, we can remember
|
||||
// the last one we discovered to avoid having to ask again later.
|
||||
// (We used to store this in DefaultACME.Email but it was racey; see #127)
|
||||
var (
|
||||
discoveredEmail string
|
||||
discoveredEmailMu sync.Mutex
|
||||
)
|
||||
|
||||
// agreementTestURL is set during tests to skip requiring
|
||||
// setting up an entire ACME CA endpoint.
|
||||
var agreementTestURL string
|
||||
|
|
4
vendor/github.com/caddyserver/certmagic/crypto.go
generated
vendored
4
vendor/github.com/caddyserver/certmagic/crypto.go
generated
vendored
|
@ -31,7 +31,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/klauspost/cpuid"
|
||||
"github.com/klauspost/cpuid/v2"
|
||||
"go.uber.org/zap"
|
||||
"golang.org/x/net/idna"
|
||||
)
|
||||
|
@ -289,7 +289,7 @@ func namesFromCSR(csr *x509.CertificateRequest) []string {
|
|||
//
|
||||
// See https://github.com/mholt/caddy/issues/1674
|
||||
func preferredDefaultCipherSuites() []uint16 {
|
||||
if cpuid.CPU.AesNi() {
|
||||
if cpuid.CPU.Supports(cpuid.AESNI) {
|
||||
return defaultCiphersPreferAES
|
||||
}
|
||||
return defaultCiphersPreferChaCha
|
||||
|
|
2
vendor/github.com/caddyserver/certmagic/go.mod
generated
vendored
2
vendor/github.com/caddyserver/certmagic/go.mod
generated
vendored
|
@ -3,7 +3,7 @@ module github.com/caddyserver/certmagic
|
|||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/klauspost/cpuid v1.2.5
|
||||
github.com/klauspost/cpuid/v2 v2.0.6
|
||||
github.com/libdns/libdns v0.2.0
|
||||
github.com/mholt/acmez v0.1.3
|
||||
github.com/miekg/dns v1.1.30
|
||||
|
|
4
vendor/github.com/caddyserver/certmagic/go.sum
generated
vendored
4
vendor/github.com/caddyserver/certmagic/go.sum
generated
vendored
|
@ -5,8 +5,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
|
|||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/klauspost/cpuid v1.2.5 h1:VBd9MyVIiJHzzgnrLQG5Bcv75H4YaWrlKqWHjurxCGo=
|
||||
github.com/klauspost/cpuid v1.2.5/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4=
|
||||
github.com/klauspost/cpuid/v2 v2.0.6 h1:dQ5ueTiftKxp0gyjKSx5+8BtPWkyQbd95m8Gys/RarI=
|
||||
github.com/klauspost/cpuid/v2 v2.0.6/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
|
|
1
vendor/github.com/caddyserver/certmagic/solvers.go
generated
vendored
1
vendor/github.com/caddyserver/certmagic/solvers.go
generated
vendored
|
@ -418,7 +418,6 @@ func (mmu *mapMutex) Lock(key interface{}) {
|
|||
mmu.cond.Wait()
|
||||
}
|
||||
mmu.set[key] = struct{}{}
|
||||
return
|
||||
}
|
||||
|
||||
func (mmu *mapMutex) Unlock(key interface{}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue