Skip to content

Commit

Permalink
Add comments for multiple return values
Browse files Browse the repository at this point in the history
  • Loading branch information
coma64 committed Aug 30, 2024
1 parent 58cf7f7 commit 26b0446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ func (s *SSL) DaneGet0DaneAuthority() int {
return int(C.SSL_get0_dane_authority(s.ssl, nil, nil))
}

// DaneSetFlags enables the given flags for this connection.
// DaneSetFlags enables the given flags for this connection. Returns the old flags.
// https://www.openssl.org/docs/man1.1.1/man3/SSL_dane_clear_flags.html
func (s *SSL) DaneSetFlags(flags DaneFlags) DaneFlags {
return DaneFlags(C.SSL_dane_set_flags(s.ssl, C.ulong(flags)))
}

// DaneClearFlags disables flags set by DaneSetFlags.
// DaneClearFlags disables flags set by DaneSetFlags. Returns the old flags.
func (s *SSL) DaneClearFlags(flags DaneFlags) DaneFlags {
return DaneFlags(C.SSL_dane_clear_flags(s.ssl, C.ulong(flags)))
}
Expand Down

0 comments on commit 26b0446

Please sign in to comment.