Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
authorLuke Howard <lukeh@padl.com>
Sat, 17 Sep 2011 07:47:01 +0000 (17:47 +1000)
committerLuke Howard <lukeh@padl.com>
Sat, 17 Sep 2011 07:47:01 +0000 (17:47 +1000)
moonshot/.gitignore
moonshot/Makefile.am
moonshot/acinclude.m4
moonshot/configure.ac
moonshot/libeap
moonshot/mech_eap.spec.in [new file with mode: 0644]
moonshot/mech_eap/Makefile.am
moonshot/mech_eap/eap_mech.c

index c4992b5..57a94cd 100644 (file)
@@ -10,3 +10,5 @@ m4
 !m4/minuso.m4
 build-aux
 !build-aux/compile
+mech_eap.spec
+mech_eap*tar*
index b4ca11c..0165219 100644 (file)
@@ -1,3 +1,4 @@
 AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = libeap mech_eap
+EXTRA_DIST = mech_eap.spec
index ea542db..a626e8a 100644 (file)
@@ -25,16 +25,18 @@ for dir in $check_krb5_dir $prefix /usr /usr/local ; do
         KRB5_CFLAGS=-I"$check_krb5_dir/include";
         KRB5_LIBS="-L$check_krb5_dir/lib/ -lkrb5_32 -lgssapi32";
         COMPILE_ET="$check_krb5_dir/bin/compile_et";
+       AC_MSG_RESULT([yes])
      else
         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
-        KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`;
-        COMPILE_ET="$dir/bin/compile_et";
+        KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
+AC_MSG_RESULT([yes])
+        AC_PATH_PROG(COMPILE_ET, [compile_et], [compile_et], [$dir/bin$PATH_SEPARATOr])
      fi
      break;
    fi
 done
-AC_MSG_RESULT($found_krb5)
 if test x_$found_krb5 != x_yes; then
+   AC_MSG_RESULT($found_krb5)
    AC_MSG_ERROR([
 ----------------------------------------------------------------------
   Cannot find GSS-API/Kerberos libraries.
index 039ab50..4297345 100644 (file)
@@ -5,7 +5,6 @@ AC_CONFIG_AUX_DIR([build-aux])
 
 dnl AM_INIT_AUTOMAKE([silent-rules])
 AC_USE_SYSTEM_EXTENSIONS
-AC_GNU_SOURCE
 AM_INIT_AUTOMAKE
 AM_PROG_CC_C_O
 AM_MAINTAINER_MODE()
@@ -88,5 +87,6 @@ if test "x$acceptor" = "xyes" ; then
 fi
 
 AX_CHECK_LIBMOONSHOT
-AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile])
+AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile
+                         mech_eap.spec])
 AC_OUTPUT
index 2ad5208..3c68005 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 2ad5208de2f097b0072efe44fc71615f1cee4e2d
+Subproject commit 3c6800594dbfcba5d36cfa5556288eae999f83ba
diff --git a/moonshot/mech_eap.spec.in b/moonshot/mech_eap.spec.in
new file mode 100644 (file)
index 0000000..f6b329f
--- /dev/null
@@ -0,0 +1,48 @@
+Name:          moonshot-gss-eap
+Version:       @VERSION@
+Release:       1%{?dist}
+Summary:       Moonshot GSS-API Mechanism
+
+Group:         Security Tools
+License:       BSD
+URL:           http://www.project-moonshot.org/
+Source0:       mech_eap-%{version}.tar.gz
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  krb5-libs >= 1.9.1
+BuildRequires:  moonshot-ui-devel
+Requires:      moonshot-ui
+
+%description
+Project Moonshot provides federated access management.
+
+
+%prep
+%setup -q -n mech_eap-%{version}
+
+
+%build
+%configure --disable-acceptor --with-libmoonshot=%{_prefix} --with-krb5=%{_prefix}
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc mech_eap/README
+%{_libdir}/gss/mech_eap.so
+%exclude %{_libdir}/gss/mech_eap.la
+%{_includedir}/gssapi/*.h
+
+
+
+
+%changelog
index ba6e8dd..5f78a77 100644 (file)
@@ -1,5 +1,8 @@
 AUTOMAKE_OPTIONS = foreign
 
+EXTRA_DIST = gsseap_err.et radsec_err.et \
+       mech_eap.exports mech_eap-noacceptor.exports 
+
 gssincludedir = $(includedir)/gssapi
 gssinclude_HEADERS = gssapi_eap.h
 
@@ -26,11 +29,12 @@ OS_LIBS =
 mech_eap_la_CFLAGS   = -Werror -Wall -Wunused-parameter
 mech_eap_la_CXXFLAGS = -Werror -Wall -Wunused-parameter
 endif
+mech_eap_la_DEPENDENCIES = $(GSSEAP_EXPORTS)
 
 mech_eap_la_CPPFLAGS = -DBUILD_GSSEAP_LIB -DSYSCONFDIR=\"${sysconfdir}\" -DDATAROOTDIR=\"${datarootdir}\"
-mech_eap_la_CFLAGS   = -Werror -Wall -Wunused-parameter \
+mech_eap_la_CFLAGS   += \
                        @KRB5_CFLAGS@  @RADSEC_CFLAGS@ @TARGET_CFLAGS@ $(EAP_CFLAGS)
-mech_eap_la_CXXFLAGS = -Werror -Wall -Wunused-parameter \
+mech_eap_la_CXXFLAGS += \
                        @KRB5_CFLAGS@  @RADSEC_CFLAGS@ \
                        @OPENSAML_CXXFLAGS@ @SHIBRESOLVER_CXXFLAGS@ @SHIBSP_CXXFLAGS@ \
                        @TARGET_CFLAGS@ $(EAP_CFLAGS)
@@ -73,7 +77,6 @@ mech_eap_la_SOURCES =                         \
        inquire_cred_by_oid.c                   \
        inquire_mech_for_saslname.c             \
        inquire_mechs_for_name.c                \
-       inquire_name.c                          \
        inquire_names_for_mech.c                \
        inquire_saslname_for_mech.c             \
        inquire_sec_context_by_oid.c            \
@@ -107,7 +110,17 @@ mech_eap_la_SOURCES =                      \
        wrap.c                                  \
        wrap_iov.c                              \
        wrap_iov_length.c                       \
-       wrap_size_limit.c
+       wrap_size_limit.c \
+       gssapiP_eap.h \
+       util_attr.h \
+       util_base64.h \
+       util.h \
+       util_json.h \
+       util_radius.h \
+       util_reauth.h \
+       util_saml.h \
+       util_shib.h
+
 
 if GSSEAP_ENABLE_ACCEPTOR
 
@@ -116,6 +129,7 @@ mech_eap_la_SOURCES +=                              \
        delete_name_attribute.c                 \
        export_name_composite.c                 \
        get_name_attribute.c                    \
+       inquire_name.c                          \
        map_name_to_any.c                       \
        release_any_name_mapping.c              \
        set_name_attribute.c                    \
@@ -134,7 +148,7 @@ endif
 
 endif
 
-BUILT_SOURCES = gsseap_err.c radsec_err.c
+BUILT_SOURCES = gsseap_err.c radsec_err.c gsseap_err.h radsec_err.h
 
 if GSSEAP_ENABLE_REAUTH
 mech_eap_la_SOURCES += util_reauth.c
@@ -148,7 +162,7 @@ radius_ad_la_CFLAGS  = -Werror -Wall -Wunused-parameter \
 radius_ad_la_LDFLAGS = -avoid-version -module \
                       -export-symbols radius_ad.exports -no-undefined
 radius_ad_la_LIBADD  = @KRB5_LIBS@
-radius_ad_la_SOURCES = util_adshim.c
+radius_ad_la_SOURCES = util_adshim.c authdata_plugin.h
 endif
 endif
 
index 4821a9c..96e00c2 100644 (file)
@@ -196,9 +196,9 @@ gssEapInitiatorInit(OM_uint32 *minor)
 void
 gssEapFinalize(void)
 {
+#ifdef GSSEAP_ENABLE_ACCEPTOR
     OM_uint32 minor;
 
-#ifdef GSSEAP_ENABLE_ACCEPTOR
     gssEapAttrProvidersFinalize(&minor);
 #endif
     eap_peer_unregister_methods();