libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::PinnedHostKeyPolicy Class Referencefinal

Pin one or more fingerprints; ignores known_hosts entirely. More...

#include <host_key_verifier.hpp>

Inheritance diagram for sshpp::PinnedHostKeyPolicy:
[legend]
Collaboration diagram for sshpp::PinnedHostKeyPolicy:
[legend]

Public Member Functions

 PinnedHostKeyPolicy (std::vector< Fingerprint > fps)
 
Decision verify (const Context &) const override
 
- Public Member Functions inherited from sshpp::HostKeyVerifier
virtual ~HostKeyVerifier ()=default
 

Additional Inherited Members

- Public Types inherited from sshpp::HostKeyVerifier
enum class  Decision { accept , accept_and_remember , reject }
 

Detailed Description

Pin one or more fingerprints; ignores known_hosts entirely.

Constructor & Destructor Documentation

◆ PinnedHostKeyPolicy()

sshpp::PinnedHostKeyPolicy::PinnedHostKeyPolicy ( std::vector< Fingerprint fps)
inlineexplicit

Member Function Documentation

◆ verify()

SSHPP_INLINE HostKeyVerifier::Decision sshpp::PinnedHostKeyPolicy::verify ( const Context ctx) const
overridevirtual

The documentation for this class was generated from the following files: