Skip to content
New issue

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

Update components #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bertold
Copy link

@bertold bertold commented Aug 3, 2024

  • Replace deprecated call
  • Fix markdown formatting problems

I am not sure if you are open to contributions. I added some comments inline to explain my thinking.

Replace deprecated call

Fix markdown formatting problems
Go library for DANE TLSA authentication

### Pre-requisites
## Pre-requisites
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown linting requires titles not to skip a level.

// do some stuff with the obtained TLS connection here
//
conn.Close()
daneconfig := dane.NewConfig(hostname, ip, 443)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs are not allowed in markdown.

@@ -8,7 +8,7 @@ package dane

import (
"fmt"
"io/ioutil"
"io"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ioutil.ReadAll is a deprecated method

@@ -47,7 +47,7 @@ func verifyChain(certs []*x509.Certificate, config *tls.Config,
// Config data structure that performs DANE and PKIX authentication of
// the server certificate as appropriate.
func verifyServer(rawCerts [][]byte,
verifiedChains [][]*x509.Certificate,
_ [][]*x509.Certificate,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this parameter is unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant