]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Mark the config argument of gnutls_pkcs11_init() as unused
authorStef Walter <stefw@collabora.co.uk>
Mon, 1 Aug 2011 07:45:44 +0000 (09:45 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 1 Aug 2011 15:51:06 +0000 (17:51 +0200)
 * Since its no longer used.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/includes/gnutls/pkcs11.h
lib/pkcs11.c

index 647b2414c4f91ddb2d55cc93b25cf45ba529524e..420674962c5c0e798db0f483a55ef046d3f3153c 100644 (file)
@@ -57,7 +57,7 @@ typedef struct gnutls_pkcs11_obj_st *gnutls_pkcs11_obj_t;
  * load = /lib/yyy-pkcs11.so
  */
 
-int gnutls_pkcs11_init (unsigned int flags, const char *configfile);
+int gnutls_pkcs11_init (unsigned int flags, void *unused);
 void gnutls_pkcs11_deinit (void);
 void gnutls_pkcs11_set_token_function (gnutls_pkcs11_token_callback_t fn,
                                        void *userdata);
index 7366965c155de725ffede5e73d6274f07a6f487e..bbf6d4b4bb178a48259003fd758838ca393f7cdf 100644 (file)
@@ -464,10 +464,10 @@ const char* configfile = "/etc/gnutls/pkcs11.conf";
 /**
  * gnutls_pkcs11_init:
  * @flags: %GNUTLS_PKCS11_FLAG_MANUAL or %GNUTLS_PKCS11_FLAG_AUTO
- * @configfile: either NULL or the location of a configuration file
+ * @unused: unused, set to NULL
  *
  * This function will initialize the PKCS 11 subsystem in gnutls. It will
- * read a configuration file if %GNUTLS_PKCS11_FLAG_AUTO is used or allow
+ * read configuration files if %GNUTLS_PKCS11_FLAG_AUTO is used or allow
  * you to independently load PKCS 11 modules using gnutls_pkcs11_add_provider()
  * if %GNUTLS_PKCS11_FLAG_MANUAL is specified.
  *
@@ -479,7 +479,7 @@ const char* configfile = "/etc/gnutls/pkcs11.conf";
  *   negative error value.
  **/
 int
-gnutls_pkcs11_init (unsigned int flags, const char *configfile)
+gnutls_pkcs11_init (unsigned int flags, void *unused)
 {
   struct ck_function_list **modules;
   const char *name;