Show
Ignore:
Timestamp:
09/26/06 10:55:02 (2 years ago)
Author:
henryk
Message:

Make absolute paths from all paths read from the PKCS#15 directories by prepending the DF(PKCS#15) path if necessary.
Fixes compatibility with Siemens HiPath? SIcurity formatted cards which use relative paths.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/pkcs15-data.c

    r2815 r3028  
    110110        if (r == SC_ERROR_ASN1_END_OF_CONTENTS) 
    111111                return r; 
    112  
    113112        SC_TEST_RET(ctx, r, "ASN.1 decoding failed"); 
     113        r = sc_pkcs15_make_absolute_path(&p15card->file_app->path, &info.path); 
     114        if (r < 0) 
     115                return r; 
    114116        obj->type = SC_PKCS15_TYPE_DATA_OBJECT; 
    115117        obj->data = malloc(sizeof(info));