monotone

monotone Mtn Source Tree

Root/ssh_agent.hh

1// Copyright (C) 2007 Justin Patrin <papercrane@reversefold.com>
2//
3// This program is made available under the GNU GPL version 2.0 or
4// greater. See the accompanying file COPYING for details.
5//
6// This program is distributed WITHOUT ANY WARRANTY; without even the
7// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8// PURPOSE.
9
10#ifndef __SSH_AGENT_H__
11#define __SSH_AGENT_H__
12
13#include "vector.hh"
14#include <boost/scoped_ptr.hpp>
15
16namespace Botan
17{
18 class RSA_PublicKey;
19 class RSA_PrivateKey;
20};
21
22class ssh_agent_state;
23
24struct ssh_agent
25{
26 ssh_agent();
27 ~ssh_agent();
28 std::vector<Botan::RSA_PublicKey> const get_keys();
29 void sign_data(Botan::RSA_PublicKey const & key,
30 std::string const & data,
31 std::string & out);
32 void add_identity(Botan::RSA_PrivateKey const & key,
33 std::string const & comment);
34 bool connected();
35
36private:
37 boost::scoped_ptr<ssh_agent_state> s;
38};
39
40// Local Variables:
41// mode: C++
42// fill-column: 76
43// c-file-style: "gnu"
44// indent-tabs-mode: nil
45// End:
46// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
47
48#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status