Git Product home page Git Product logo

Comments (2)

nyetwurk avatar nyetwurk commented on August 30, 2024

also in go

oasis-core/go$ go get -u google.golang.org/grpc/security/advancedtls
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
go: upgraded golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 => v0.0.0-20220722155217-630584e8d5aa
go: upgraded google.golang.org/grpc v1.47.0 => v1.48.0
go: upgraded google.golang.org/grpc/security/advancedtls v0.0.0-20200902210233-8630cac324bf => v0.0.0-20220809175018-7981af402b23
go: upgraded google.golang.org/protobuf v1.28.0 => v1.28.1

...

make
...
# github.com/oasisprotocol/oasis-core/go/common/grpc
common/grpc/credentials.go:46:3: unknown field 'Certificates' in struct literal of type advancedtls.ClientOptions
common/grpc/credentials.go:47:3: unknown field 'GetClientCertificate' in struct literal of type advancedtls.ClientOptions

from oasis-core.

nyetwurk avatar nyetwurk commented on August 30, 2024

possibly something like

--- a/go/common/grpc/credentials.go
+++ b/go/common/grpc/credentials.go
@@ -43,9 +43,11 @@ type ClientOptions struct {
 // NewClientCreds creates new client TLS transport credentials.
 func NewClientCreds(opts *ClientOptions) (credentials.TransportCredentials, error) {
        return advancedtls.NewClientCreds(&advancedtls.ClientOptions{
-               Certificates:         opts.Certificates,
-               GetClientCertificate: opts.GetClientCertificate,
-               VType:                advancedtls.SkipVerification,
+               IdentityOptions: advancedtls.IdentityCertificateOptions{
+                       Certificates:                     opts.Certificates,
+                       GetIdentityCertificatesForClient: opts.GetClientCertificate,
+               },
+               VType: advancedtls.SkipVerification,
                VerifyPeer: func(params *advancedtls.VerificationFuncParams) (*advancedtls.VerificationResults, error) {
                        var err error
                        keys := opts.ServerPubKeys

from oasis-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.