summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-26 10:42:28 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-26 10:46:19 +0200
commitc8c305bcf58287be3eac98f376c8f7a7d344d567 (patch)
tree8ac6328489934b2fa67377699179e3a27ed6998d
parent83b09e49094e233ebbbc23c3fa9e2cda74cdee39 (diff)
downloadgnutls-c8c305bcf58287be3eac98f376c8f7a7d344d567.tar.gz
examples: made a comment that getpass() output needs to be sanitized
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--doc/examples/ex-cert-select-pkcs11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/ex-cert-select-pkcs11.c b/doc/examples/ex-cert-select-pkcs11.c
index c8a71126ff..2923a47da3 100644
--- a/doc/examples/ex-cert-select-pkcs11.c
+++ b/doc/examples/ex-cert-select-pkcs11.c
@@ -60,6 +60,7 @@ pin_callback(void *user, int attempt, const char *token_url,
printf("*** Wrong PIN\n");
password = getpass("Enter pin: ");
+ /* FIXME: ensure that we are in UTF-8 locale */
if (password == NULL || password[0] == 0) {
fprintf(stderr, "No password given\n");
exit(1);