Ludovic Rousseau wrote:
> On Fri, Mar 21, 2008 at 12:51 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote:
>> Q2: To meet the Solaris file location convention, I changed the default
>> location of the pam_pkcs11.conf file in the pam_config.c file. To reserve
>> the original code, I used CPP "#ifdef" to differenciate the new code from
>> the original code.
>> For example, pam_config.c file,
>>
>>
>> -----------------------------------------------------------------------------------
>> 34 struct configuration_st configuration = {
>> 35 "/etc/pam_pkcs11/pam_pkcs11.conf", /* char * config_file;
>> */
>> 36 NULL, /* scconf_context *ctx; */
>>
>> -----------------------------------------------------------------------------------
>>
>> I changed the above code tp the code below and added the -DSUN_SOLARIS flag
>> to the Maekfile.am file.
>>
>>
>> -------------------------------------------------------------------------------------
>> struct configuration_st configuration = {
>> #ifdef SUN_SOLARIS
>> "/etc/security/pam_pkcs11/pam_pkcs11.conf",
>> #else
>> "/etc/pam_pkcs11/pam_pkcs11.conf", /* char * config_file; */
>> #endif
>> NULL, /* scconf_context *ctx; */
>>
>> -------------------------------------------------------------------------------------
>>
>> However, the resulting file still picked up the original line. It seems
>> that the generated Makefile file doesn't recognize the new "SUN_SOLARIS"
>> flag. Currently, I worked around this problem, but I would like to know
>> which file that I should update so that the "-DSUN_SOLARIS" will be
>> recognized.
>
> "/etc/security/" is hard coded in many places.
>
> I committed a new version in revision 319 and 320 to add a new
> ./configure argument --with-confdir=DIR.
>
> You can now use: ./configure --with-confdir=/etc/security/pam_pkcs11
> to do what you want.
>
Great!
We are porting the version 0.6.0 of the pam_pkcs11 source officially, however,
I would like to take a look at the latest revision of source. How can I see
the revision 319 and 320 ?
>> Q3: For the NLS support, I found that the only file that has the gettext
>> support is the pam_pkcs11.c file which is part of the pam_pkcs11 module.
>> All the utility commands under the src/tools directory currently do not have
>> the NLS support. Is this correct ?
>
> Exact.
> An i18n of these tools should be easy. I will try to do that.
Great!
> Do you plan to provide a localisation file?
>
Do you mean the actual locale file ? We will provide the locale file if we
decide to provide the NLS support.
BTW, I have another question about the NLS support. I modified some messages
in pam_pkcs11.c file,
so that they will be more suitable to the Solaris environment. How can get
generate the new
pam_pkcs11.pot file under the "po" directory ?
thanks,
Huie-Ying Lee
> Bye
>
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel