Changeset 77

Show
Ignore:
Timestamp:
06/20/06 12:15:25 (2 years ago)
Author:
jps
Message:

OpenSC.Tokend: fix a bug in Score reading from opensc.conf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opensc.tokend/OpenSC/OpenSCToken.cpp

    r76 r77  
    281281                                        // get the score 
    282282                                        scconf_block *conf_block = NULL; 
    283                                         conf_block = sc_get_conf_block(mScCtx, "framework", "tokend", 0); 
     283                                        conf_block = sc_get_conf_block(mScCtx, "framework", "tokend", 1); 
    284284                                        if (conf_block != NULL) { 
    285285                                                score = scconf_get_int(conf_block, "score", 50); 
     286                                                otdLog("  Get Score from config file: %d\n", score); 
    286287                                        } else { 
    287288                                                score = 50; 
     289                                                otdLog("  Default Score: %d\n", score); 
    288290                                        } 
    289291