1120911Sschweikh/*-
22490Sjkh * Copyright (c) 2009 The NetBSD Foundation, Inc.
3174421Sdougb * All rights reserved.
4174421Sdougb *
5174421Sdougb * This code is derived from software contributed to The NetBSD Foundation
6174421Sdougb * by Alistair Crooks (agc@NetBSD.org)
7174421Sdougb *
8174421Sdougb * Redistribution and use in source and binary forms, with or without
9174421Sdougb * modification, are permitted provided that the following conditions
10174421Sdougb * are met:
11174421Sdougb * 1. Redistributions of source code must retain the above copyright
12174421Sdougb *    notice, this list of conditions and the following disclaimer.
13174421Sdougb * 2. Redistributions in binary form must reproduce the above copyright
14174421Sdougb *    notice, this list of conditions and the following disclaimer in the
15174421Sdougb *    documentation and/or other materials provided with the distribution.
16174421Sdougb *
17174421Sdougb * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18174421Sdougb * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19174421Sdougb * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20174421Sdougb * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21174421Sdougb * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22174421Sdougb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23174421Sdougb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24174421Sdougb * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25174421Sdougb * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26174421Sdougb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
272490Sjkh * POSSIBILITY OF SUCH DAMAGE.
28174421Sdougb */
29174421Sdougb#ifndef SSH2PGP_H_
30174421Sdougb#define SSH2PGP_H_
31174421Sdougb
322490Sjkh#include "keyring.h"
332490Sjkh#include "types.h"
34174421Sdougb
35174421Sdougbint pgp_ssh2pubkey(pgp_io_t *, const char *, pgp_key_t *, pgp_hash_alg_t);
36174421Sdougbint pgp_ssh2seckey(pgp_io_t *, const char *, pgp_key_t *, pgp_pubkey_t *, pgp_hash_alg_t);
37174421Sdougb
38174421Sdougbint pgp_ssh2_readkeys(pgp_io_t *, pgp_keyring_t *, pgp_keyring_t *,
39174421Sdougb		const char *, const char *, unsigned);
40174421Sdougb
412490Sjkh#endif
42174421Sdougb