Merge branch 'master' of git://repo.or.cz/gnutls
[gnutls.git] / libextra / gnutls_extra.h
blob2fc6f63d87df4388c621a000985f5d756c92e5aa
1 /*
2 * Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation
4 * Author: Nikos Mavroyanopoulos
6 * This file is part of GNUTLS-EXTRA.
8 * GNUTLS-EXTRA is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * GNUTLS-EXTRA is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with GNUTLS-EXTRA; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301, USA.
25 #include <auth_cert.h>
27 typedef int (*OPENPGP_VERIFY_KEY_FUNC) (const
28 gnutls_certificate_credentials_t,
29 const gnutls_datum_t *, int,
30 unsigned int *);
32 typedef time_t (*OPENPGP_KEY_CREATION_TIME_FUNC) (const gnutls_datum_t *);
33 typedef time_t (*OPENPGP_KEY_EXPIRATION_TIME_FUNC) (const gnutls_datum_t *);
34 typedef int (*OPENPGP_KEY_REQUEST) (gnutls_session_t, gnutls_datum_t *,
35 const gnutls_certificate_credentials_t,
36 opaque *, int);
38 typedef int (*OPENPGP_FINGERPRINT) (const gnutls_datum_t *,
39 unsigned char *, size_t *);
41 typedef int (*OPENPGP_RAW_KEY_TO_GCERT) (gnutls_cert *,
42 const gnutls_datum_t *);
43 typedef int (*OPENPGP_RAW_PRIVKEY_TO_GKEY) (gnutls_privkey *,
44 const gnutls_datum_t *);
46 typedef int (*OPENPGP_KEY_TO_GCERT) (gnutls_cert *, gnutls_openpgp_key_t);
47 typedef int (*OPENPGP_PRIVKEY_TO_GKEY) (gnutls_privkey *,
48 gnutls_openpgp_privkey_t);
49 typedef void (*OPENPGP_KEY_DEINIT) (gnutls_openpgp_key_t);
50 typedef void (*OPENPGP_PRIVKEY_DEINIT) (gnutls_openpgp_privkey_t);