- Timestamp:
- 05/12/06 20:01:50 (3 years ago)
- Location:
- releases/opensc-0.11.1/src
- Files:
-
- 2 modified
-
libopensc/card-mcrd.c (modified) (4 diffs)
-
pkcs11/framework-pkcs15.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/opensc-0.11.1/src/libopensc/card-mcrd.c
r2927 r2950 964 964 unsigned short int pathtmp[SC_MAX_PATH_SIZE / 2]; 965 965 unsigned short int *pathptr; 966 966 int samepath = 1; 967 967 size_t pathlen, n; 968 968 969 if ((path->len & 1) || path->len > sizeof(pathtmp)) 969 970 return SC_ERROR_INVALID_ARGUMENTS; … … 974 975 (path->value[n] << 8) | path->value[n + 1]; 975 976 pathlen = path->len >> 1; 976 977 int samepath = 1;978 977 979 978 if (pathlen == priv->curpathlen && priv->is_ef != 2) { … … 1039 1038 char tmpstr[16] = ""; 1040 1039 char currpathpart[10]; 1040 sc_path_t tmppath; 1041 1041 struct mcrd_priv_data *priv = DRVDATA(card); 1042 1042 memset(tmpstr, 0, 16); … … 1049 1049 } 1050 1050 1051 sc_path_t tmppath;1052 1051 sc_format_path(tmpstr, &tmppath); 1053 1052 tmppath.type = SC_PATH_TYPE_PATH; -
releases/opensc-0.11.1/src/pkcs11/framework-pkcs15.c
r2943 r2950 2477 2477 unsigned int n; 2478 2478 size_t len2; 2479 size_t lenb = 1; 2479 2480 2480 2481 len2 = len; 2481 2482 /* calculate the number of bytes needed for the length */ 2482 size_t lenb = 1;2483 2483 if (len > 127) { 2484 2484 unsigned int i;
