summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-03 21:44:40 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-04 18:21:48 +0200
commit14ee74e3ae9941894776277834110684214c89a3 (patch)
tree868cecb8e38e1a9ea9d00681cc711c6804243919
parent662dd159078f0a5739e83aa4457adf11ce52fb35 (diff)
downloadgnutls-14ee74e3ae9941894776277834110684214c89a3.tar.gz
removed unused code
-rw-r--r--src/pkcs11.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index a804fdc068..9759892796 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -170,47 +170,6 @@ pkcs11_list (FILE * outfile, const char *url, int type, unsigned int login,
exit (1);
}
fprintf (outfile, "\tID: %s\n\n", buf);
-
- if (attrs == GNUTLS_PKCS11_OBJ_ATTR_ALL
- || attrs == GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY)
- continue;
-
- if (otype != GNUTLS_PKCS11_OBJ_X509_CRT)
- continue;
-
- ret = gnutls_x509_crt_init (&xcrt);
- if (ret < 0)
- {
- fprintf (stderr, "Error in %s:%d: %s\n", __func__, __LINE__,
- gnutls_strerror (ret));
- exit (1);
- }
-
- ret = gnutls_x509_crt_import_pkcs11 (xcrt, crt_list[i]);
- if (ret < 0)
- {
- fprintf (stderr, "Error in %s:%d: %s\n", __func__, __LINE__,
- gnutls_strerror (ret));
- exit (1);
- }
-
-#if 0
- size = buffer_size;
- ret = gnutls_x509_crt_export (xcrt, GNUTLS_X509_FMT_PEM, buffer, &size);
- if (ret < 0)
- {
- fprintf (stderr, "Error in %s:%d: %s\n", __func__, __LINE__,
- gnutls_strerror (ret));
- exit (1);
- }
-
- fwrite (buffer, 1, size, outfile);
- fputs ("\n\n", outfile);
-#endif
-
- gnutls_x509_crt_deinit (xcrt);
-
-
}
return;