summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-11-13 11:03:35 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-11-15 17:06:22 +0100
commit1b7e3bde043cadc380e4ff2524dbc339e1edd90f (patch)
tree7810807574514e17d1b3266ba754e01597508a62 /src
parent27dc77198c99ceba38f728207d24add5b71a873c (diff)
downloadgnutls-1b7e3bde043cadc380e4ff2524dbc339e1edd90f.tar.gz
p11tool: renamed pkcs11_set_pin() to allow static linking
Resolves #322 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r--src/p11tool.c4
-rw-r--r--src/p11tool.h2
-rw-r--r--src/pkcs11.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/p11tool.c b/src/p11tool.c
index 2e9c80074c..1042af2ad2 100644
--- a/src/p11tool.c
+++ b/src/p11tool.c
@@ -328,9 +328,9 @@ static void cmd_parser(int argc, char **argv)
} else if (HAVE_OPT(INITIALIZE)) {
pkcs11_init(outfile, url, label, &cinfo);
} else if (HAVE_OPT(INITIALIZE_PIN)) {
- pkcs11_set_pin(outfile, url, &cinfo, 0);
+ pkcs11_set_token_pin(outfile, url, &cinfo, 0);
} else if (HAVE_OPT(INITIALIZE_SO_PIN)) {
- pkcs11_set_pin(outfile, url, &cinfo, 1);
+ pkcs11_set_token_pin(outfile, url, &cinfo, 1);
} else if (HAVE_OPT(DELETE)) {
pkcs11_delete(outfile, url, flags, &cinfo);
} else if (HAVE_OPT(GENERATE_PRIVKEY)) {
diff --git a/src/p11tool.h b/src/p11tool.h
index dda598bb78..6ac11895af 100644
--- a/src/p11tool.h
+++ b/src/p11tool.h
@@ -49,7 +49,7 @@ void pkcs11_delete(FILE * outfile, const char *pkcs11_url,
unsigned int flags, common_info_st *);
void pkcs11_init(FILE * outfile, const char *pkcs11_url, const char *label,
common_info_st *);
-void pkcs11_set_pin(FILE * outfile, const char *pkcs11_url, common_info_st *, unsigned so);
+void pkcs11_set_token_pin(FILE * outfile, const char *pkcs11_url, common_info_st *, unsigned so);
void pkcs11_generate(FILE * outfile, const char *url,
gnutls_pk_algorithm_t type, unsigned int bits,
const char *label, const char *id, int detailed,
diff --git a/src/pkcs11.c b/src/pkcs11.c
index 4017bcb0eb..93b9da4a1e 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -1423,7 +1423,7 @@ pkcs11_init(FILE * outfile, const char *url, const char *label,
}
void
-pkcs11_set_pin(FILE * outfile, const char *url, common_info_st * info, unsigned so)
+pkcs11_set_token_pin(FILE * outfile, const char *url, common_info_st * info, unsigned so)
{
int ret;
const char *pin;