revutil

package
v0.0.0-...-e3bf6e5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package revutil supplies various utilities needed by revssh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLine

func AppendLine(filepath, content string) error

AppendLine appends a line to a file, creating it if it doesn't exist.

func KeysEqual

func KeysEqual(ak, bk ssh.PublicKey) bool

KeysEqual is constant time compare of the keys to avoid timing attacks.

func ParsePrivateKeyFile

func ParsePrivateKeyFile(path string) (ssh.Signer, error)

ParsePrivateKeyFile takes a path, and returns an ssh.Signer from that file, or an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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