Hi,
I'm a Solaris engineer at Sun Micros. We have been working on porting the
OpenSC/pam_pkcs11 module, version 0.6.0, to Solaris. During the porting, I
encountered a couple of build issues and I would appreciate if you can help me
with them.
Q1: According to the configure.in file, the default value of the "--with-nss"
option is "No". In my build, I am pretty sure that it was not built with NSS
on, because the output of build indicated there was no NSS support as below.
---------------------------------
Debugging: yes
DocBook support: yes
PC/SC support: no
CURL support: no
LDAP support: yes
NSS support: no
OPENSSL support: yes
---------------------------------
However, the resulting module is linked with the NSS libraries.
-----------------------------------------------
$ldd pam_pkcs11.so
....
libnspr4.so => /usr/lib/mps/libnspr4.so
libplc4.so => /usr/lib/mps/libplc4.so
libnss3.so => /usr/lib/mps/libnss3.so
.... ------------------------------------------------
Any hint about the reason that these NSS libraries are linked with
pam_pkcs11.so ? How can I get rid of them ?
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.
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 ?
Note that in order to make it work on Solaris, I also made a design change to
resolve an incompatibility problem between the pam_pkcs11 module and the
Solaris Cryptographic framework, a PKCS#11 implementation. I will explain this
problem and my changes in a seperate email later.
Thanks,
Huie-Ying
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel