Skip to content

Commit

Permalink
comment FIPS method, docs link, fix darwin build flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kujenga committed Nov 28, 2016
1 parent 6f143c2 commit 9257638
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fips.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build cgo
// +build -darwin
// +build !darwin

package openssl

Expand All @@ -8,6 +8,8 @@ package openssl
*/
import "C"

// FIPSModeSet enables a FIPS 140-2 validated mode of operation.
// https://wiki.openssl.org/index.php/FIPS_mode_set()
func FIPSModeSet(mode bool) error {
var r C.int
if mode {
Expand All @@ -19,4 +21,4 @@ func FIPSModeSet(mode bool) error {
return errorFromErrorQueue()
}
return nil
}
}

0 comments on commit 9257638

Please sign in to comment.