]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_global_init_extra() is not needed for SRP.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 27 Jul 2011 13:51:19 +0000 (15:51 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 27 Jul 2011 13:51:19 +0000 (15:51 +0200)
doc/examples/ex-client-srp.c
doc/examples/ex-serv-srp.c

index a7109b6167ccf0c378760fdec7dcd0490ff9a87d..905aab1a2ac6e9d6cd6075db0036fd809999bca9 100644 (file)
@@ -34,11 +34,6 @@ main (void)
 
   gnutls_global_init ();
 
-  /* now enable the gnutls-extra library which contains the
-   * SRP stuff.
-   */
-  gnutls_global_init_extra ();
-
   gnutls_srp_allocate_client_credentials (&srp_cred);
   gnutls_certificate_allocate_credentials (&cert_cred);
 
index 96a0a7432ef77d0c59729527df87cbf9050c36e7..880c4294e9f74773893b77f365f28b9aa4978f1e 100644 (file)
@@ -72,10 +72,7 @@ main (void)
 
   strcpy (name, "Echo Server");
 
-  /* these must be called once in the program
-   */
   gnutls_global_init ();
-  gnutls_global_init_extra ();  /* for SRP */
 
   /* SRP_PASSWD a password file (created with the included srptool utility) 
    */