We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elliptic.Marshal()
N/A
The deprecated elliptic.Marshal function is used within the generateSubjectKeyID function.
The deprecation notice states:
// Deprecated: for ECDH, use the crypto/ecdh package. This function returns an // encoding equivalent to that of PublicKey.Bytes in crypto/ecdh.
The current implementation is as follows:
pubKeyBytes = elliptic.Marshal(pub.Curve, pub.X, pub.Y)
However, a direct switch to using ecdh results in a nil pointer:
ecdh
ecdhPubKey, err = pub.ECDH() pubKeyBytes = ecdhPubKey.Bytes()
=== RUN TestResourceLocallySignedCert_FromECDSAPrivateKeyResource panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10092f0e8] goroutine 227 [running]: crypto/ecdh.(*PublicKey).Bytes(0x0) /opt/homebrew/opt/go/libexec/src/crypto/ecdh/ecdh.go:79 +0x78 github.com/hashicorp/terraform-provider-tls/internal/provider.generateSubjectKeyID({0x101501b00, 0x14000475350}) /Users/bdb/go/src/github/hashicorp/terraform-provider-tls/internal/provider/common_cert.go:94 +0x398
Further investigation is required to determine how best to handle replacement of the deprecated elliptic.Marshal function.
Low
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Terraform CLI and Provider Versions
N/A
Use Cases or Problem Statement
The deprecated elliptic.Marshal function is used within the generateSubjectKeyID function.
The deprecation notice states:
The current implementation is as follows:
However, a direct switch to using
ecdh
results in a nil pointer:Proposal
Further investigation is required to determine how best to handle replacement of the deprecated elliptic.Marshal function.
How much impact is this issue causing?
Low
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: