~ubuntu-branches/ubuntu/natty/gnupg/natty

« back to all changes in this revision

Viewing changes to g10/main.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2008-07-21 02:02:14 UTC
  • mfrom: (1.1.9 lenny)
  • Revision ID: james.westby@ubuntu.com-20080721020214-uh0hl0rfbog71as4
Tags: 1.4.9-3ubuntu1
* Merge from debian unstable (lp: #225005), remaining changes:
  - Add 'debian/patches/50_disable_mlock_test.dpatch': Disable mlock() test
    since it fails with ulimit 0 (on buildds).
  - Add 'debian/patches/61_use_agent_default.dpatch': Patch to set gpg
    (or gpg2) and gpgsm to use a passphrase agent by default (lp: 15485)
  - Add libcurl4-gnutls-dev to Build-Depends to fix gpg running into a
    timeout updating the keyring (lp: 62864)
* Dropped Ubuntu patches, applied upstream:
  - 50_show_primary_only.dpatch
  - 60_install_options_skel.dpatch
* Add 'debian/patches/55_curl_typefix.dpatch': Fix a build error with recent
  curl and gcc 4.3 (lp: #247679). Patch taken from upstream:
  http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* main.h
2
 
 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
3
 
 *               2006 Free Software Foundation, Inc.
 
2
 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
 
3
 *               2007 Free Software Foundation, Inc.
4
4
 *
5
5
 * This file is part of GnuPG.
6
6
 *
7
7
 * GnuPG is free software; you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * the Free Software Foundation; either version 3 of the License, or
10
10
 * (at your option) any later version.
11
11
 *
12
12
 * GnuPG is distributed in the hope that it will be useful,
15
15
 * GNU General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20
 
 * USA.
 
18
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21
19
 */
22
20
#ifndef G10_MAIN_H
23
21
#define G10_MAIN_H
170
168
void show_basic_key_info (KBNODE keyblock);
171
169
 
172
170
/*-- keygen.c --*/
173
 
u32 parse_expire_string(const char *string);
174
 
u32 ask_expire_interval(int object,const char *def_expire);
175
 
u32 ask_expiredate(void);
 
171
u32 parse_expire_string(u32 timestamp,const char *string);
 
172
u32 ask_expire_interval(u32 timestamp,int object,const char *def_expire);
176
173
void generate_keypair( const char *fname, const char *card_serialno,
177
174
                       const char *backup_encryption_dir );
178
175
int keygen_set_std_prefs (const char *string,int personal);
203
200
/*-- seskey.c --*/
204
201
void make_session_key( DEK *dek );
205
202
MPI encode_session_key( DEK *dek, unsigned nbits );
 
203
MPI pkcs1_encode_md( MD_HANDLE md, int algo, size_t len, unsigned nbits,
 
204
                     const byte *asn, size_t asnlen );
206
205
MPI encode_md_value( PKT_public_key *pk, PKT_secret_key *sk,
207
206
                     MD_HANDLE md, int hash_algo );
208
207