Diff

Differences From Artifact [b325ed9a06]:

To Artifact [8333de68f9]:


   160    160   ], [
   161    161   	dodcerts=yes
   162    162   ])
   163    163   
   164    164   if test "${dodcerts}" = 'no'; then
   165    165   	AC_DEFINE(CACKEY_NO_EXTRA_CERTS, [1], [Specify that DoD certificates should not be made available])
   166    166   fi
          167  +
          168  +dnl Option to hard-code a command to run to request a PIN (enabling protected authentication path)
          169  +AC_ARG_WITH(pin-command, AC_HELP_STRING([--with-pin-command=<command>], [Specify a command to run to request a PIN from the user.  The user may override this with the CACKEY_PIN_COMMAND environment variable.]), [
          170  +	pincommand="${withval}"
          171  +], [
          172  +	pincommand="no"
          173  +])
          174  +
          175  +AC_ARG_WITH(pin-command-x, AC_HELP_STRING([--with-pin-command-x=<command>], [Same as --with-pin-command, but only sets Protected Authentication Path if the DISPLAY environment variable is set]), [
          176  +	pincommandxonly="${withval}"
          177  +], [
          178  +	pincommandxonly="no"
          179  +])
          180  +
          181  +if ! test "${pincommand}" = 'no'; then
          182  +	AC_DEFINE_UNQUOTED(CACKEY_PIN_COMMAND_DEFAULT, [$pincommand], [Command to run to prompt user for PIN])
          183  +fi
          184  +
          185  +if ! test "${pincommandxonly}" = 'no'; then
          186  +	AC_DEFINE_UNQUOTED(CACKEY_PIN_COMMAND_XONLY_DEFAULT, [$pincommandxonly], [Command to run to prompt user for PIN only if DISPLAY environment variable is set])
          187  +fi
   167    188   
   168    189   dnl Set version script, to limit the scope of symbols
   169    190   DC_SETVERSIONSCRIPT(libcackey.vers, libcackey.syms)
   170    191   
   171    192   dnl Upate LDFLAGS to include setting the run-time linker path to the same as our compile-time linker
   172    193   DC_SYNC_RPATH
   173    194   
   174    195   dnl If we updated LIBOBJS, update SHLIBOBJS -- must be last.
   175    196   DC_SYNC_SHLIBOBJS
   176    197   
   177    198   dnl Produce Makefile
   178    199   AC_OUTPUT(Makefile libcackey.syms)