mirror of
https://github.com/hanzokms/kmip.git
synced 2026-10-30 20:33:03 +00:00
Fixed bug with reading KMIP messages when no EOF is coming (several messages on the wire). Tests are missing for many aspects of the implementation.
20 lines
670 B
Go
20 lines
670 B
Go
package kmip
|
|
|
|
import "crypto/tls"
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// DefaultServerTLSConfig fills in good defaults for server TLS configuration
|
|
func DefaultServerTLSConfig(config *tls.Config) {
|
|
config.MinVersion = tls.VersionTLS12
|
|
config.PreferServerCipherSuites = true
|
|
config.ClientAuth = tls.RequireAndVerifyClientCert
|
|
}
|
|
|
|
// DefaultClientTLSConfig fills in good defaults for client TLS configuration
|
|
func DefaultClientTLSConfig(config *tls.Config) {
|
|
config.MinVersion = tls.VersionTLS12
|
|
}
|