2010-08-31 17:58:39 +02:00
|
|
|
/* cvt-openpgp.h - Convert an OpenPGP key to our internal format.
|
|
|
|
* Copyright (C) 2010 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
|
|
|
* GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GnuPG is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2010-08-31 17:58:39 +02:00
|
|
|
*/
|
|
|
|
#ifndef GNUPG_AGENT_CVT_OPENPGP_H
|
|
|
|
#define GNUPG_AGENT_CVT_OPENPGP_H
|
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
gpg_error_t convert_from_openpgp (ctrl_t ctrl, gcry_sexp_t s_pgp,
|
2015-12-24 06:19:53 +01:00
|
|
|
int dontcare_exist,
|
2010-10-01 22:33:53 +02:00
|
|
|
unsigned char *grip, const char *prompt,
|
|
|
|
const char *cache_nonce,
|
|
|
|
unsigned char **r_key, char **r_passphrase);
|
2013-05-22 10:50:12 +02:00
|
|
|
gpg_error_t convert_from_openpgp_native (ctrl_t ctrl,
|
|
|
|
gcry_sexp_t s_pgp,
|
|
|
|
const char *passphrase,
|
|
|
|
unsigned char **r_key);
|
2010-08-31 17:58:39 +02:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
gpg_error_t convert_to_openpgp (ctrl_t ctrl, gcry_sexp_t s_key,
|
2010-10-01 22:33:53 +02:00
|
|
|
const char *passphrase,
|
|
|
|
unsigned char **r_transferkey,
|
|
|
|
size_t *r_transferkeylen);
|
2010-08-31 17:58:39 +02:00
|
|
|
|
|
|
|
#endif /*GNUPG_AGENT_CVT_OPENPGP_H*/
|