Changeset 3510 for trunk/src/signer
- Timestamp:
- 05/05/08 13:00:01 (8 months ago)
- Location:
- trunk/src/signer
- Files:
-
- 2 modified
-
dialog.c (modified) (2 diffs)
-
opensc-crypto.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/signer/dialog.c
r3183 r3510 37 37 { 38 38 int r; 39 size_t len; 39 40 const char *argv[3]; 40 41 const char *pgmname = PIN_ENTRY; … … 79 80 goto err; 80 81 } 81 r= strlen(buf);82 if ( r< pinfo->min_length) {82 len = strlen(buf); 83 if (len < pinfo->min_length) { 83 84 sprintf(errtext, "PIN code too short, min. %lu digits", (unsigned long) pinfo->min_length); 84 85 continue; 85 86 } 86 if ( r> pinfo->max_length) {87 if (len > pinfo->max_length) { 87 88 sprintf(errtext, "PIN code too long, max. %lu digits", (unsigned long) pinfo->max_length); 88 89 continue; -
trunk/src/signer/opensc-crypto.h
r459 r3510 14 14 }; 15 15 16 extern RSA_METHOD * sc_get_method( );16 extern RSA_METHOD * sc_get_method(void); 17 17 18 18 #endif
