]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added --modules option to libgnutls-config. This option prints the extra modules...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 17 May 2002 09:28:47 +0000 (09:28 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 17 May 2002 09:28:47 +0000 (09:28 +0000)
README
configure.in
lib/auth_anon.c
lib/auth_dhe.c
lib/auth_rsa.c
lib/auth_srp.c
lib/libgnutls-config.in
src/prime.c

diff --git a/README b/README
index d2b5701d0317c64d1242a63e7de4f5d42a24e44b..2111a2d98c44a6b4a13ab14e1a8198eff42f250d 100644 (file)
--- a/README
+++ b/README
@@ -13,8 +13,14 @@ real world programs)
 
 LICENSE ISSUES:
 
-COPYING.LIB (GNU Lesser GPL) applies to the whole gnutls library
-except for the SRP and OPENPGP parts, which are under the GPL.
+The latest release of the gnutls library is covered under the GNU Lesser 
+GPL License, unlike previously released versions which were licensed under 
+the GPL. 
+
+The LGPL license (found in COPYING.LIB) applies to all parts of the gnutls 
+library except for the "OPENPGP authentication" part, and the "SRP 
+authentication" part, which stay GPL (see the COPYING file).  Both of these 
+parts can be disabled at compile time.
 
 In order to create a library under the LGPL run the configure script with 
 the following parameters:
@@ -25,6 +31,16 @@ or the library will be under the GPL. In both cases the libraries are
 binary compatible. In the LGPL case the functions are replaced with
 stubs that always fail.
 
+The rationale behind this license change is that given the fact that other 
+free libraries with similar functionality exist, keeping the gnutls library 
+GPL would not give any practical advantage to Free software developers.
+
+Please note that in many cases it is better for a library to be licensed 
+under the GPL, so that it provides an advantage for free software projects.
+The Lesser GPL is so named because it does less to protect the freedom of 
+the users of the code that it covers.  
+See http://www.gnu.org/philosophy/why-not-lgpl.html for more explanation.
+
 
 BUGS:
 
index 852a1d08110c0b5421d5111b8d21b2af4656fc86..8c61d1f15e28c4c2e690fa3a974c1f24d4a66e78 100644 (file)
@@ -252,6 +252,7 @@ AC_ARG_ENABLE( srp-authentication, [  --disable-srp-authentication     disable t
 if test x$ac_enable_srp != xno; then
  AC_MSG_RESULT(no)
  AC_DEFINE(ENABLE_SRP)
+ LIBGNUTLS_MODULES="$LIBGNUTLS_MODULES srp-authentication"
 else
  AC_MSG_RESULT(yes)
 fi
@@ -263,6 +264,7 @@ AC_ARG_ENABLE( anon-authentication, [  --disable-anon-authentication    disable
 if test x$ac_enable_anon != xno; then
  AC_MSG_RESULT(no)
  AC_DEFINE(ENABLE_ANON)
+ LIBGNUTLS_MODULES="$LIBGNUTLS_MODULES anonymous-authentication"
 else
  AC_MSG_RESULT(yes)
 fi
@@ -274,7 +276,8 @@ AC_ARG_ENABLE( openpgp-authentication, [  --disable-openpgp-authentication disab
 )
 if test x$ac_enable_openpgp != xno; then
  AC_MSG_RESULT(no)
- AM_PATH_LIBOPENCDK( 0.1.0, AC_DEFINE(HAVE_LIBOPENCDK),
+ AM_PATH_LIBOPENCDK( 0.1.0, AC_DEFINE(HAVE_LIBOPENCDK)
+ LIBGNUTLS_MODULES="$LIBGNUTLS_MODULES openpgp-authentication",
  AC_MSG_WARN([[
 ***
 *** libopencdk was not found. You will not be able to use OpenPGP keys with gnutls.
@@ -296,6 +299,7 @@ LIBGNUTLS_LIBS="$LIBS -L${libdir} -lgnutls $LIBGCRYPT_LIBS $LIBOPENCDK_LIBS"
 LIBGNUTLS_CFLAGS="$LIBGCRYPT_CFLAGS $LIBOPENCDK_CFLAGS -I${includedir}"
 AC_SUBST(LIBGNUTLS_LIBS)
 AC_SUBST(LIBGNUTLS_CFLAGS)
+AC_SUBST(LIBGNUTLS_MODULES)
 
 if test $ac_cv_c_compiler_gnu != no; then
 
index 375ee44e9cb8efe1c20ab28e4922c8f2aed89ed5..b5e042eff0a74a33401c885cea827c84ea7056fa 100644 (file)
@@ -35,7 +35,7 @@ int gen_anon_client_kx( GNUTLS_STATE, opaque**);
 int proc_anon_server_kx( GNUTLS_STATE, opaque*, int);
 int proc_anon_client_kx( GNUTLS_STATE, opaque*, int);
 
-MOD_AUTH_STRUCT anon_auth_struct = {
+const MOD_AUTH_STRUCT anon_auth_struct = {
        "ANON",
        NULL,
        NULL,
index f279fd2e4bc15f6da4afcb4311db7d727f4c403d..fd0d31ca5d7433e5b5309adcf10e6a1da5a3f029 100644 (file)
@@ -36,7 +36,7 @@ static int gen_dhe_client_kx(GNUTLS_STATE, opaque **);
 static int proc_dhe_server_kx(GNUTLS_STATE, opaque *, int);
 static int proc_dhe_client_kx(GNUTLS_STATE, opaque *, int);
 
-MOD_AUTH_STRUCT dhe_rsa_auth_struct = {
+const MOD_AUTH_STRUCT dhe_rsa_auth_struct = {
        "DHE_RSA",
        _gnutls_gen_cert_server_certificate,
        _gnutls_gen_cert_client_certificate,
@@ -57,7 +57,7 @@ MOD_AUTH_STRUCT dhe_rsa_auth_struct = {
        _gnutls_proc_cert_cert_req      /* proc server cert request */
 };
 
-MOD_AUTH_STRUCT dhe_dss_auth_struct = {
+const MOD_AUTH_STRUCT dhe_dss_auth_struct = {
        "DHE_DSS",
        _gnutls_gen_cert_server_certificate,
        _gnutls_gen_cert_client_certificate,
index 01145fc889dbf48db606c37b04525e0f2a66ef23..84438af15d2759cfa78c0bb933708880d5559040 100644 (file)
@@ -41,7 +41,7 @@ int gen_rsa_client_kx(GNUTLS_STATE, opaque **);
 int proc_rsa_client_kx(GNUTLS_STATE, opaque *, int);
 
 
-MOD_AUTH_STRUCT rsa_auth_struct = {
+const MOD_AUTH_STRUCT rsa_auth_struct = {
        "RSA",
        _gnutls_gen_cert_server_certificate,
        _gnutls_gen_cert_client_certificate,
index e794c16b292d9bb749644fa335e6149d54bddc1b..45f02953350548432c7179ad79a5a3bd1e292673 100644 (file)
@@ -38,7 +38,7 @@ int gen_srp_client_kx0(GNUTLS_STATE, opaque **);
 int proc_srp_server_kx2(GNUTLS_STATE, opaque *, int);
 int proc_srp_client_kx0(GNUTLS_STATE, opaque *, int);
 
-MOD_AUTH_STRUCT srp_auth_struct = {
+const MOD_AUTH_STRUCT srp_auth_struct = {
        "SRP",
        NULL,
        NULL,
index c0f83ed2e735bbba7561a758d8d00cbf7c44e766..b83682bcb3cff61deacd3fcf8f744e043a7c907a 100755 (executable)
@@ -6,7 +6,7 @@ exec_prefix_set=no
 
 gnutls_libs="@LIBGNUTLS_LIBS@"
 gnutls_cflags="@LIBGNUTLS_CFLAGS@"
-
+gnutls_modules="@LIBGNUTLS_MODULES@"
 
 usage()
 {
@@ -18,6 +18,7 @@ Options:
        [--version]
        [--libs]
        [--cflags]
+       [--modules]
 EOF
        exit $1
 }
@@ -59,6 +60,9 @@ while test $# -gt 0; do
     --libs)
       echo_libs=yes
       ;;
+    --modules)
+      echo_modules=yes
+      ;;
     *)
       usage 1 1>&2
       ;;
@@ -90,4 +94,8 @@ if test "$echo_libs" = "yes"; then
     echo ${gnutls_libs}
 fi
 
+if test "$echo_modules" = "yes"; then
+    echo ${gnutls_modules}
+fi
+
 
index 72321748850e80c4b432b20302181e0bb376dff7..d09a02769302a847595a5e7424921c18ba779bec 100644 (file)
@@ -44,7 +44,12 @@ int main(int argc, char **argv)
                fprintf(stderr, "Error in the arguments.\n");
                return -1;
        }
+       
+       gnutls_global_init();
 
+       fprintf(stderr, "Generating prime...");
+//     gcry_control (GCRYCTL_SET_VERBOSITY, (int)0);
+       
        /* this is an emulation of Michael Wiener's table
         * bad emulation.
         */
@@ -93,5 +98,7 @@ int main(int argc, char **argv)
        printf("\n};\n");
        free(tmp);
 
+       gnutls_global_deinit();
+       
        return 0;
 }