/[winpt]/trunk/Include/wptCard.h
ViewVC logotype

Diff of /trunk/Include/wptCard.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 37 by werner, Thu Oct 27 19:12:40 2005 UTC revision 260 by twoaday, Wed Aug 16 10:01:30 2006 UTC
# Line 1  Line 1 
1  /* wptCard.h  /* wptCard.h - common card definitions
2   *      Copyright (C) 2003, 2004, 2005 Timo Schulz   *      Copyright (C) 2003-2006 Timo Schulz
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
# Line 43  enum card_ctl_t { Line 43  enum card_ctl_t {
43  };  };
44    
45    
46    /* Number of fingerprint items. */
47    #define N_CARD_FPR 3
48    
49  /* openpgp card context. */  /* openpgp card context. */
50  struct gpg_card_s {  struct gpg_card_s {
51      char *aid;          /* appID */      char *aid;          /* appID */
52      char *card_type;      char *card_type;
53      char *version;      /* version */      char *version;      /* version */
54        int  ver[2];        /* version [maj:min] */
55      char *vendor;       /* vendor */      char *vendor;       /* vendor */
56      char *serial;       /* serial number */      char *serial;       /* serial number */
57      char *surname;      /* card users surname */      char *surname;      /* card users surname */
# Line 59  struct gpg_card_s { Line 63  struct gpg_card_s {
63      int force_pin;      int force_pin;
64      char *maxpinlen[3];      char *maxpinlen[3];
65      int sig_count;      /* signature counter */      int sig_count;      /* signature counter */
66      char *ca_fpr[3];    /* CA fingerprints */          char *ca_fpr[N_CARD_FPR];           /* CA fingerprints */    
67      char *fpr[3];       /* key fingerprints */      char *fpr[N_CARD_FPR];              /* key fingerprints */
68      long fpr_created[3];/* fingerprint timestamps. */      long fpr_created[N_CARD_FPR];       /* fingerprint timestamps. */
69      char *fpr_created_str[3];      char *fpr_created_str[N_CARD_FPR];  /* string fingerprints, can be NULL. */
70  };  };
71  typedef struct gpg_card_s *gpg_card_t;  typedef struct gpg_card_s *gpg_card_t;
72    
73    
74  /* PIN callback context. */  /* PIN callback context. */
75  struct pin_cb_ctx_s {  struct pin_cb_ctx_s {
76      int which;          /* which command to execute. */      int which;          /* which command to execute. */

Legend:
Removed from v.37  
changed lines
  Added in v.260

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26