Skip to content

Partial TLS support for wasm #4167

Open
@3ddi

Description

@3ddi

I am trying to compile a program that imports some grpc consts for wasm.
The code was compiling perfectly fine on 0.30.0 while after upgrading to 0.31.1 I keep getting:

../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:37:15: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:37:51: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:40:32: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:40:32: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/util.go:51:13: cfg.Clone undefined (type *tls.Config has no field or method Clone)

by simply importing "google.golang.org/grpc/codes"

I suspect it happens as a result of adaptation made for tls to work with #3704 PR. Was this intentional and I should change something on my side?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasmWebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions