connect

package
v0.0.0-...-57e9fdd Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package connect implements connection and protocol functions to blackbox servrer.

Index

Constants

View Source
const (
	KEY_REQUEST_HEADER = "KEY_REQUEST"
)

Variables

This section is empty.

Functions

func Connect

func Connect(args cli.Args) (net.Conn, error)

Connects to blackbox server, using client certificate authentication.

func RequestSecret

func RequestSecret(arg cli.Args, key string) ([]byte, error)

Connects to blackbox server and get encryption key, finally close the connection.

func RequestSecretConn

func RequestSecretConn(conn net.Conn, key string) ([]byte, error)

Get a connection to blackbox server then request secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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