/[winpt]/trunk/MyGPGME/genkey.c
ViewVC logotype

Diff of /trunk/MyGPGME/genkey.c

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

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 7 by twoaday, Mon Apr 4 07:01:43 2005 UTC
# Line 36  _gpgme_genkey_status_handler( gpgme_ctx_ Line 36  _gpgme_genkey_status_handler( gpgme_ctx_
36              char *p;              char *p;
37              int type=0, current=0, total=0;              int type=0, current=0, total=0;
38                            
39              if( (p = strchr (args, ' ')) ) {              if( (p = strchr (args, ' ')) != NULL ) {
40                  *p++ = 0;                  *p++ = 0;
41                  if (*p) {                  if (*p) {
42                      type = *(byte*)p;                      type = *(byte*)p;
43                      if( (p = strchr (p+1, ' ')) ) {                      if( (p = strchr (p+1, ' ')) != NULL ) {
44                          *p++ = 0;                          *p++ = 0;
45                          if( *p ) {                          if( *p ) {
46                              current = atoi (p);                              current = atoi (p);
47                              if( (p = strchr (p+1, ' ')) ) {                              if( (p = strchr (p+1, ' ')) != NULL ) {
48                                  *p++ = 0;                                  *p++ = 0;
49                                  total = atoi (p);                                  total = atoi (p);
50                              }                              }
# Line 141  gpgme_op_genkey_start( gpgme_ctx_t c, co Line 141  gpgme_op_genkey_start( gpgme_ctx_t c, co
141          /* need some more things here */          /* need some more things here */
142      }      }
143            
144      if( (parms = strstr( parms, "<GnupgKeyParms " ))      if( (parms = strstr (parms, "<GnupgKeyParms " )) != NULL
145           && (s = strchr( parms, '>') )           && (s = strchr (parms, '>')) != NULL
146           && (sx = strstr( parms, "format=\"internal\"" ))           && (sx = strstr( parms, "format=\"internal\"" ))
147           && sx < s           && sx < s
148           && (s2 = strstr( s+1, "</GnupgKeyParms>" )) ) {           && (s2 = strstr( s+1, "</GnupgKeyParms>" )) != NULL) {
149          /* fixme: check that there are no control statements inside */          /* fixme: check that there are no control statements inside */
150          rc = gpgme_data_new_from_mem( &c->help_data_1, s + 1, s2 - s - 1, 1 );          rc = gpgme_data_new_from_mem( &c->help_data_1, s + 1, s2 - s - 1, 1 );
151      }      }

Legend:
Removed from v.2  
changed lines
  Added in v.7

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26