From 1e41127aa2c5c389a312b27e4b0fe98b65356359 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 3 Aug 2013 21:44:40 +0200 Subject: removed unused code --- src/pkcs11.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'src') 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; -- cgit v1.2.1