compat

package
v0.0.0-...-e61308d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package compat contains helper methods to interoperate with crypto/tls in the case where you just want to use gossl for parsing exotic keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(network, laddr string, config *tls.Config) (net.Listener, error)

Listen on network, laddr and return a listener that will handle TLS connections.

func LoadX509KeyPair

func LoadX509KeyPair(certpath, keypath string) (cert tls.Certificate, err error)

func NewListener

func NewListener(inner net.Listener, config *tls.Config) (net.Listener, error)

Wrap an existing listener + crypto config and return a new TLS enabled listener.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL