From 26b0446d1753011eb25cad6fe225e303ecc4e573 Mon Sep 17 00:00:00 2001 From: Tristan Zaton Date: Fri, 30 Aug 2024 17:55:42 +0200 Subject: [PATCH] Add comments for multiple return values --- ssl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl.go b/ssl.go index 0f0fe348..0d3b6029 100644 --- a/ssl.go +++ b/ssl.go @@ -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))) }