Fix DNIe UI integration (#1280)

This commit is contained in:
Igor Castañeda Ferreira 2018-03-09 14:37:38 +01:00 committed by Frank Morgner
parent a97fc86cc9
commit 5d5caecfab
2 changed files with 9 additions and 4 deletions

View File

@ -446,10 +446,13 @@ if test "${enable_dnie_ui}" = "yes"; then
AC_DEFINE([ENABLE_DNIE_UI], [1], [Enable the use of external user interface program to request DNIe user pin])
case "${host}" in
*-*-darwin)
if test "${enable_dnie_ui}" = "yes"; then
LDFLAGS="${LDFLAGS} -framework Carbon"
fi
*-*-darwin*)
LDFLAGS="${LDFLAGS} -framework Carbon"
;;
esac
case "${host}" in
*-apple-*)
LDFLAGS="${LDFLAGS} -framework CoreFoundation"
;;
esac
fi

View File

@ -163,6 +163,7 @@ const char *user_consent_message="Esta a punto de realizar una firma digital\nco
*/
char *user_consent_msgs[] = { "SETTITLE", "SETDESC", "CONFIRM", "BYE" };
#ifdef linux
/**
* Do fgets() without interruptions.
*
@ -181,6 +182,7 @@ static char *nointr_fgets(char *s, int size, FILE *stream)
}
return s;
}
#endif
/**
* Ask for user consent.