~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to scd/app-common.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * GnuPG is free software; you can redistribute it and/or modify
7
7
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * the Free Software Foundation; either version 3 of the License, or
9
9
 * (at your option) any later version.
10
10
 *
11
11
 * GnuPG is distributed in the hope that it will be useful,
14
14
 * GNU General Public License for more details.
15
15
 *
16
16
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
17
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19
18
 *
20
 
 * $Id: app-common.h,v 1.5.2.19 2005/06/03 13:57:23 wk Exp $
 
19
 * $Id: app-common.h 4531 2007-07-05 16:58:19Z wk $
21
20
 */
22
21
 
23
22
#ifndef GNUPG_SCD_APP_COMMON_H
97
96
                             void *pincb_arg,
98
97
                             const unsigned char *pk, size_t pklen);
99
98
    gpg_error_t (*genkey) (app_t app, ctrl_t ctrl,
100
 
                   const char *keynostr, unsigned int flags,
101
 
                   gpg_error_t (*pincb)(void*, const char *, char **),
102
 
                   void *pincb_arg);
 
99
                           const char *keynostr, unsigned int flags,
 
100
                           time_t createtime,
 
101
                           gpg_error_t (*pincb)(void*, const char *, char **),
 
102
                           void *pincb_arg);
103
103
    gpg_error_t (*change_pin) (app_t app, ctrl_t ctrl,
104
104
                       const char *chvnostr, int reset_mode,
105
105
                       gpg_error_t (*pincb)(void*, const char *, char **),
129
129
 
130
130
/*-- app.c --*/
131
131
void app_dump_state (void);
 
132
void application_notify_card_removed (int slot);
 
133
gpg_error_t check_application_conflict (ctrl_t ctrl, const char *name);
132
134
gpg_error_t select_application (ctrl_t ctrl, int slot, const char *name,
133
135
                                app_t *r_app);
134
136
void release_application (app_t app);
165
167
                          void *pincb_arg,
166
168
                          const unsigned char *keydata, size_t keydatalen);
167
169
gpg_error_t app_genkey (app_t app, ctrl_t ctrl,
168
 
                const char *keynostr, unsigned int flags,
169
 
                gpg_error_t (*pincb)(void*, const char *, char **),
170
 
                void *pincb_arg);
 
170
                        const char *keynostr, unsigned int flags,
 
171
                        time_t createtime,
 
172
                        gpg_error_t (*pincb)(void*, const char *, char **),
 
173
                        void *pincb_arg);
171
174
gpg_error_t app_get_challenge (app_t app, size_t nbytes,
172
175
                               unsigned char *buffer);
173
176
gpg_error_t app_change_pin (app_t app, ctrl_t ctrl,