diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-08-03 21:44:40 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-08-03 21:45:09 +0200 |
commit | 1e41127aa2c5c389a312b27e4b0fe98b65356359 (patch) | |
tree | a874f00e35884626da22df816f104f55065ab26f /src | |
parent | b0404ffb133c669a03b3f67fd19be9ccfee89464 (diff) | |
download | gnutls-1e41127aa2c5c389a312b27e4b0fe98b65356359.tar.gz |
removed unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/pkcs11.c | 41 |
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; |