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.
> 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.
Do you plan to provide a localisation file?
Bye
--
Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel