Compare commits

...
Author SHA1 Message Date
nobody 0d77b961f5 This commit was manufactured by cvs2svn to create tag 'MONO_0_26'.
svn path=/tags/MONO_0_26/mono/; revision=17998
2003-09-08 17:46:15 +00:00
747 changed files with 12468 additions and 45287 deletions

No files matched your search

-53
View File
@@ -1,56 +1,3 @@
2003-09-08 Zoltan Varga <[email protected]>
* configure.in: Added check for valgrind headers.
2003-09-03 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) in even more places. Patch by Bernie Solomon
([email protected]).
2003-08-27 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) instead of make. Patch by Bernie Solomon
([email protected]).
2003-08-25 Zoltan Varga <[email protected]>
* mono.pc.in: Added gthread-2.0.
2003-08-22 Zoltan Varga <[email protected]>
* configure.in: Added gthread-2.0 to GLIB_CFLAGS and GLIB_LIBS, so we
can call g_thread_init ().
2003-08-21 Zoltan Varga <[email protected]>
* mono/tests/threadpool.cs mono/tests/threadpool1.cs: Make increments
of static variables atomic. Fixes bug #47683.
2003-08-21 Johannes Roith <[email protected]>
* mono/Makefile.am: small update. make sure, glib makes it in the build, add optional target for dependencies
2003-08-18 Johannes Roith <[email protected]>
* mono/Makefile.am: add windows build option
* mono/monowiz.win32.nsi: add windows build script
* mono/mono-win32-light.bmp: add bitmap
2003-08-16 Zoltan Varga <[email protected]>
* mono/tests/checked.cs: Added mul.ovf tests.
2003-08-15 Duncan Mak <[email protected]>
* doc/mysql: Change references to ByteFX.Data.MySQLClient to the
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
2003-08-15 Zoltan Varga <[email protected]>
* mono/tests/bug-47295.cs: Regression test for bug #47295.
2003-08-11 Duncan Mak <[email protected]>
* runtime/Makefile.am (assemblies_DATA): Add Mono.Cairo.dll.
+7 -33
View File
@@ -19,44 +19,18 @@ DISTCLEANFILES= mono.pc
fullbuild: remove-binaries mcs-tree-safe-build xinstall-runtime mcs-rest install
mcs-tree-safe-build:
(cd ../mcs/jay; $(MAKE))
(cd ../mcs/mcs; $(MAKE) MCS=mcs)
(cd ../mcs/class/corlib; $(MAKE) MCS=mcs)
(cd ../mcs/jay; make)
(cd ../mcs/mcs; make MCS=mcs)
(cd ../mcs/class/corlib; make MCS=mcs)
cp ../mcs/class/lib/corlib.dll runtime
cp ../mcs/mcs/mcs.exe runtime
xinstall-runtime:
if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; $(MAKE) && $(MAKE) install); fi
(cd mono; $(MAKE) && $(MAKE) install)
if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; make && make install); fi
(cd mono; make && make install)
mcs-rest:
(cd ../mcs/class; $(MAKE))
(cd ../mcs/class; make)
remove-binaries:
rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/libiconv-1.7.zip
wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
wget http://www.jroith.de/nsis4cygwin.zip
unzip -n -d / pkgconfig-0.11-20020310.zip
unzip -n -d / glib-2.0.4-20020703.zip
unzip -n -d / glib-dev-2.0.4-20020703.zip
unzip -n -d / libiconv-1.7.zip
unzip -n -d / libiconv-dev-1.7.zip
unzip -n -d / libintl-0.10.40-20020101.zip
unzip -n -d / nsis4cygwin.zip
win32setup:
cp /usr/lib/libglib-2.0-0.dll @prefix@/lib
cp /usr/lib/iconv.dll @prefix@/lib
cp /usr/lib/libgmodule-2.0-0.dll @prefix@/lib
cp /usr/lib/libgobject-2.0-0.dll @prefix@/lib
cp /usr/lib/libgthread-2.0-0.dll @prefix@/lib
cp /usr/lib/libintl-1.dll @prefix@/lib
makensis /DMILESTONE=@VERSION@ /DSOURCE_INSTALL_DIR=`cygpath -a -w @prefix@`\\* monowiz.win32.nsi
rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo
-51
View File
@@ -1,51 +0,0 @@
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
#undef HAVE_INET_PTON
#undef HAVE_INET_ATON
#undef HAVE_SOL_IP
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_STRUCT_IP_MREQN
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
#undef HAVE_LARGE_FILE_SUPPORT
#undef PLATFORM_WIN32
#undef HAVE_NEW_ICONV
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
#undef HAVE_BOEHM_GC
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
/* Define if you have the inet_aton function. */
#undef HAVE_INET_ATON
/* Define if you have the inet_pton function. */
#undef HAVE_INET_PTON
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
/* Define if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION
+4 -7
View File
@@ -145,9 +145,6 @@ AM_PROG_LIBTOOL
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h)
# for mono/mini/tramp-x86.c
AC_CHECK_HEADERS(valgrind/memcheck.h)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
@@ -170,8 +167,8 @@ fi
dnl for use on the build system
dnl pkg-config is stupid
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
@@ -193,8 +190,8 @@ GLIB_REQUIRED_VERSION=1.3.11
PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
-1
View File
@@ -6,7 +6,6 @@
<dllmap dll="odbc32.dll" target="libodbc.so" />
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so" />
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so" />
<dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.so" />
<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.so" />
<dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so" />
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.so" />
+4 -9
View File
@@ -17,7 +17,6 @@
<ul>
<li><a href="#monodoc">monodoc - A graphical documentation viewer.</a></li>
<li>xmllint: a tool used to validate a proper XML document.
</ul>
@@ -28,15 +27,11 @@
*** <a name="monodoc">MonoDoc</a>
The MonoDoc system offers both a GUI client as well as a <a
href="http://www.go-mono.com:8080">Web-based interface</a> to
the documentation.
A graphical documentation viewer written in Gtk#. In the
future we will have an ASP.NET front-end to present the
documentation on the web as well.
The GUI edition uses <a
href="http://gtk-sharp.sf.net">Gtk#</a> and the Web edition
uses Mono's ASP.NET implementation.
<img src="images/Screenshot-Monodoc.png">
** Status and Roadmap
** Get Involved
+1 -4
View File
@@ -128,10 +128,7 @@
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
Check our <a href="bugs.html">Bugs</a> that contains links to
easily add a bug report, or to query the existing bugs.
<a name="goodbugreport"/>
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
+1 -5
View File
@@ -25,11 +25,7 @@
libraries as well as the class libraries produced by
the project).
* Tutorials on Mono and the specifics of running it
(The <a href="http://www.monohispano.org">Mono
Hispano</a> team has produced lots of <a
href="http://www.monohispano.org/tutoriales.php">tutorials
in spanish</a>
* Tutorials on Mono and the specifics of running it.
* A guide to Mono as compared to the Microsoft.NET
Framework SDK
-106
View File
@@ -12,113 +12,7 @@
href="http://www.go-mono.org/mono-beginning.html">Resources/Beginning
section</a>, the <a
href="http://www.go-mono.org/faq.html">FAQ</a>.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.26</b><br>
<a href="archive/mono-0.26.html">Release notes</a><br>
Aug 14, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.26.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.26.tar.gz">Mono Runtime</a>
<li><a href="archive/xsp-0.5.tar.gz">XSP web server (0.5)</a>
<li><a href="archive/mod_mono-0.4.tar.gz">Apache Mono module (mod_mono)</a>
<li><a href="archive/monodoc-0.6.tar.gz">MonoDoc 0.6</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.6.1.src.rpm">mono-0.26-1.src.rpm (RH9)</a>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.5.1.src.rpm">mono-0.26-1.src.rpm (RH8)</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 9.0/x86</b>
<ul>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.6.1.i386.rpm">mono-0.26-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-devel-0.26-1.ximian.6.1.i386.rpm">mono-devel-0.26-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-debuginfo-0.26-1.ximian.6.1.i386.rpm">mono-debuginfo-0.26-1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/libpixregion-0.1.0-1.ximian.6.1.i386.rpm">libpixregion-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libpixregion-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">libpixregion-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libic-0.1.0-1.ximian.6.1.i386.rpm">libic-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libic-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">libic-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xc-0.1.0-1.ximian.6.1.i386.rpm">xc-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xc-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">xc-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xr-0.1.0-1.ximian.6.1.i386.rpm">xr-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xr-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">xr-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/monodoc-0.6-1.ximian.6.1.i386.rpm">monodoc-0.6-1.ximian.6.1.i386.rpm</a> (To be used only with CVS gtk-sharp)
<li><a href="archive/redhat-90-i386/monodoc-debuginfo-0.5-1.ximian.6.1.i386.rpm">monodoc-debuginfo-0.5-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-wine-20030318-1.ximian.6.3.i386.rpm">mono-wine-20030318-1.ximian.6.3.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-wine-debuginfo-20030318-1.ximian.6.2.i386.rpm">mono-wine-debuginfo-20030318-1.ximian.6.3.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/mono-0.26-2.ximian.5.1.i386.rpm">mono-0.26-2.ximian.5.1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.26-2.ximian.5.1.i386.rpm">mono-devel-0.26-2.ximian.5.1.i386.rpm</a>
<br>
<li><a href="archive/redhat-80-i386/monodoc-0.5-1.ximian.5.1.i386.rpm">monodoc-0.5-1.ximian.5.1.i386.rpm</a> (To be used only with CVS gtk-sharp)
<li><a href="archive/redhat-80-i386/mono-wine-20030318-1.ximian.5.3.i386.rpm">mono-wine-20030318-1.ximian.5.3.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/debian-36.gif"><b>Debian</b>
<ul>
<li><a href="h#ttp://www.debianplanet.com/mono/">Debian Packages here.</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/mandrake-36.gif"><b>Mandrake 9.1/x86</b>
<ul>
<li><a href="archive/mandrake-91-i586/mono-0.26-1.ximian.6.1.i586.rpm">mono-0.26-1.ximian.6.1.i586.rpm</a>
<li><a href="archive/mandrake-91-i586/mono-devel-0.26-1.ximian.6.1.i586.rpm">mono-devel-0.26-1.ximian.6.1.i586.rpm</a>
<!-- <li><a href="archive/mandrake-91-i586/monodoc-0.5-1.ximian.6.1.i586.rpm">monodoc-0.5-1.ximian.6.1.i586.rpm</a> -->
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/suse-36.gif"><b>SuSE 8.2</b>
<ul>
<li><a href="archive/suse-82-i586/mono-0.26-2.ximian.7.1.i586.rpm">mono-0.26-2.ximian.7.1.i586.rpm</a>
<li><a href="archive/suse-82-i586/mono-devel-0.26-2.ximian.7.1.i586.rpm">mono-devel-0.26-2.ximian.7.1.i586.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/windows-36.gif"><b>Windows installer</b>
<ul>
<li><a href="archive/mono-0.26-win32-2.exe">mono-0.26-win32-2.exe</a>
</ul>
</td>
</tr>
</table>
</td>
<table>
<tbody>
<tr bgcolor="#DDDDDD">
+20 -78
View File
@@ -401,6 +401,13 @@ A: No. MS Passport is unrelated to running .NET compatible applications
produced with the Mono tools. The only thing you will need is a
just-in-time compiler (JIT).
Q: What is a 100% .NET application?
A: A `100% .NET application' is one that only uses the APIs defined
under the System namespace and does not use PInvoke. These
applications would in theory run unmodified on Windows, Linux,
HP-UX, Solaris, MacOS X and others.
Q: If Microsoft will release a port of their .NET platform under the
`Shared Source' license, why should I bother with anything else?
@@ -438,6 +445,12 @@ A: No, it will not. Microsoft Office is a Windows application. To
learn more about running Windows applications on Intel Unix systems
refer to <a href="http://www.winehq.com">the Wine Project</a>.
Q: Will I be able to compile a Microsoft VB.NET application and execute
the resultant MSIL file under MONO on Linux without converting to C#
and recompiling?
A: Once we have a complete VisualBasic runtime, yes.
Q: Can mono run the WebMatrix?
A: No. That requires System.Windows.Forms support which is not
@@ -491,9 +504,9 @@ A: Mono requires Unicode versions of Win32 APIs to run,
<a name="compatibility"></a>
** Compatibility
Q: Can Mono run applications developed with the Microsoft.NET framework?
Q: Can Mono run applications developed with the Microsoft.NET fraemwork?
A: Yes, Mono can run applications developed with the Microsoft .NET Framework
A: Yes, Mono can run applications developed with the Microsft .NET Framework
on Unix. There are a few caveats to keep in mind: Mono has not
been completed yet, so a few API calls might be missing; And in
some cases the Mono behavior *might* be incorrect.
@@ -527,77 +540,6 @@ A: Sometimes they will. But sometimes a .NET application might invoke
Win32 API calls, or assume certain patterns that are not correct
for cross-platform applications.
Q: What is a 100% .NET application?
A: A `100% .NET application' is one that only uses the APIs defined
under the System namespace and does not use P/Invoke. These
applications would in theory run unmodified on Windows, Linux,
HP-UX, Solaris, MacOS X and others.
Note that this requirement also holds for all assemblies used by the
application. If one of them is Windows-specific, then the entire program
is not a 100% .NET application.
Furthermore, a 100% .NET application must not contain non-standard data
streams in the assembly. For example, Visual Studio .NET will insert a
<tt>#-</tt> stream into assemblies built under the "Debug" target.
This stream contains debugging information for use by Visual Studio .NET;
however, this stream can not be interpreted by Mono (unless you're willing
to donate support).
Thus, it is recommended that all Visual Studio .NET-compiled code be
compiled under the Release target before it is executed under Mono.
Q: Can I execute my Visual Studio .NET program (Visual Basic .NET, Visual C#,
Managed Extensions for C++, etc.) under Mono?
A: Yes, with some reservations.
The .NET program must either be a 100% .NET application, or (somehow) have
all dependent assemblies available on all desired platforms. (How to do so
is outside the bounds of this FAQ.)
For example, since Mono's System.Windows.Forms implementation will use
Wine, System.Windows.Forms is only as portable as Wine is. It's possible
that Mono may run on a platform, but Wine will not, in which case a
System.Windows.Forms app will not run on that platform. This is similarly
true for all assemblies that are not 100% managed code.
Mono must also have an implementation for the .NET assemblies used. For
example the System.EnterpriseServices namespace is part of .NET, but it
has not been implemented in Mono. Thus, any applications using this
namespace will not run under Mono.
With regards to languages, C# applications tend to be most portable.
Visual Basic .NET applications are portable, but Mono's
Microsoft.VisualBasic.dll implementation is incomplete. It is recommended
to either avoid using this assembly in your own code, only use the
portions that Mono has implemented, or to help implement the missing
features. Additionally, you can set 'Option Strict On', which
eliminates the implicit calls to the unimplemented
Microsoft.VisualBasic.CompilerServices.ObjectType class.
(Thanks to Jörg Rosenkranz.)
Managed Extensions for C++ is least likely to operate under Mono. Mono
does not support mixed mode assemblies (that is, assemblies containing both
managed and unmanaged code, which Managed C++ can produce). You need a
fully-managed assembly to run under Mono, and getting the Visual C++ .NET
compiler to generate such an executable can be difficult. You need to use
only the .NET-framework assemblies, not the C libraries (you can't use
<b>printf</b>(3) for example.), and you need to use
the linker options <tt>/nodefaultlib /entry:main mscoree.lib</tt> in
addition to the <tt>/clr</tt> compiler flag. You can still use certain
compiler intrinsic functions (such as <b>memcpy</b>(3)) and the STL.
You should also see <a
href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmex/html/vcgrfconvertingmanagedextensionsforcprojectsfrommixed-modetopureil.asp"
>Converting Managed Extensions for C++ Projects from Mixed Mode to Pure
Intermediate Language</a> at MSDN.
Finally, you can use PEVERIFY.EXE from the .NET SDK to determine if the
assembly is fully managed.
Thanks to Serge Chaban for the linker flags to use.
<a name="pnpproject"></a>
** Mono and Portable.NET
@@ -876,7 +818,7 @@ A: Replace the __stdcall attribute with the STDCALL macro, and include this
Q: I want to be able to execute Mono binaries, without having to use the "mono"
command. How can I do this?
A: From Carlos Perelló:
A: From Carlos Perelló:
<i>I think that the best solution is the binfmt feature with the
wrapper that exists with Debian packages at:
@@ -945,7 +887,7 @@ A: Modules developed for Apache 2 are not compatible with Apache 1.3
Q: Can I run Apache 1 and Apache 2 on the same machine?
You can always keep a copy of Apache 2 running in parallel with your Apache
You can always keep a copy of Apache 2 running in paralell with your Apache
1.3 (either different port or using a reverse proxy).
You can also bind the two servers to different IP addresses on the
@@ -1207,7 +1149,7 @@ A: There should not be any need to recode.
Q: What do I need to watch out for when programming in VB.NET so that I'm
sure to be able to run those apps on Linux?
A: Not making any P/Invoke or DLL calls should and not using anything in
A: Not making any PInvoke or DLL calls should and not using anything in
the Microsoft.* namespaces should suffice. Also do not use any
Methods/Classes marked as "This type/method supports the .NET Framework
infrastructure and is not intended to be used directly from your code."
@@ -1364,7 +1306,7 @@ A: First some background information.
The Mono strategy for dealing with these technologies is as
follows: (1) work around the patent by using a different
implementation technique that retains the API, but changes the
implementation techinque that retains the API, but changes the
mechanism; if that is not possible, we would (2) remove the pieces
of code that were covered by those patents, and also (3) find prior
art that would render the patent useless.
@@ -1479,4 +1421,4 @@ A: It's possible to run VC++ generated apps under Mono, but we do not
** Credits
The FAQ contains material contributed by Miguel de Icaza, Jaime Anguiano, Lluis Sánchez.
The FAQ contains material contributed by Miguel de Icaza, Jaime Anguiano, Lluis Sánchez.
+15 -63
View File
@@ -12,8 +12,10 @@
Common Language Infrastructure (also referred as the CLR) and a
set of <a href="class-library.html">class libraries</a>. The
runtime can be <a href="embedded-api.html">embedded</a> into your
application. It implements of both <a href="ado-net.html">ADO.NET</a>
and <a href="asp-net.html">ASP.NET</a>.
application.
Mono has implementations of both <a href="ado-net">ADO.NET</a>
and <a href="asp-net">ASP.NET</a> as part of its distribution.
You can read our <a href="rationale.html">rationale</a> for
this project. If you have questions about the project, please
@@ -32,9 +34,16 @@
href="http://www.gotmono.com/cgi-bin/yabb/YaBB.pl">forum</a> at <a
href="http://www.gotmono.com">GotMono</a>.
Wikis: <a href="http://www.nullenvoid.com/gtksharp/wiki">Gtk# Wiki</a>
and <a href="http://www.nullenvoid.com/mono/wiki">Mono
Wiki</a>
You can contact the team at: <a
href="mailto:mono-list@ximian.com">mono[email protected]</a>
In order to follow the process of the project and to learn more
about the team members we have created the <a
href="http://monoevo.sf.net/mwn/index.html">Mono Weekly News letter</a>.
Which archives can be found <a
href="http://monoevo.sf.net/mwn/archives.html">here</a>.
We have a <a href="http://www.nullenvoid.com/gtksharp/wiki">Gtk# Wiki</a>
and a <a href="http://www.nullenvoid.com/mono/wiki">Mono Wiki</a>
</td>
<td>
@@ -142,63 +151,6 @@
</tr>
</table>
@item Sep 3rd, 2003: Authenticode; WSE
@item Sep 1st, 2003: Ice for Mono; XmlSerializer generators; Monodoc progress.
<b>Ice:</b> Vladimir has checked into CVS (Module ginzu) an
implementation of <a href="http://www.zeroc.com">ZeroC's</a>
<a href="http://www.zeroc.com/ice.html">ICE</a> protocol. It
is implemented using Remoting. If you were looking for an
efficient binary protocol to use with Remoting, this is it.
ICE is simpler to use than CORBA, and was created by people
who were deeply involved in CORBA and wanted to fix its
problems (you can see a <a
href="http://www.zeroc.com/iceVsCorba.html">list of
differences</a>).
<b>XmlSerializer</b>: Lluis has checked in a new technology
for use in our XmlSerializer: the XmlSerializer code
generator. Currently our XmlSerializer generates a
description of instructions for serializing data, these
instructions are later interpreted while using it: Reflection
is used to pull all the data. The code generator is the first
step into turning the Serializer from an intepreter into a
compiler and improving the performance of it.
Currently was used internally to implement the WSDL
serializer, in the future it will just be part of the standard
serialization process.
<b>MonoDoc:</b> New providers! Thanks to <a
href="http://www.jaggersoft.com/">Jon Jagger</a> for providing
us with his master XML files for the C# specification we now
have integrated the C# spec into Monodoc. Another provider is
the Error provider: now we include all the C# compiler errors
in the help system.
Alp has contributed various user interface improvement, and
updated our list widget for key navigation; Ben made the
matches window more useful and Joshua has helped us clean up
the ECMA provider even more.
@item Aug 14th, 2003: Mono 0.26 has been released
A new version of Mono is available, the new features include:
<a href="http://www.cairographics.org/">Cairo support</a>, <a
href="http://remoting-corba.sf.net">Remoting.Corba</a>
support, as well as a managed XSLT implementation.
Existing features have been improved vastly: better
Windows.Forms, runtime, faster compiler, web services, better
compliance to the spec and more.
Check out the <a
href="http://www.go-mono.com/archive/mono-0.26.html">Release
notes</a> for details.
@item Aug 9th, 2003: Python for .NET Preview 2 available; Mono Documentation site up.
Brian Lloyd has <a
@@ -442,7 +394,7 @@
that SourceGear Corporation will use Mono\x{2122} Project
technology to offer cross-platform versions of its
products. In addition, the companies have entered into a
development partnership under which Ximian will provide
development partnership under which Ximian® will provide
custom Mono development to enable delivery of SourceGear
products later this year. As a result, SourceGear will offer
both UNIX and Linux clients for its SourceGear Vault source
+1 -1
View File
@@ -111,7 +111,7 @@
<a href="mailto:[email protected]">Brian Lloyd</a> is
working on linking the Python runtime with the .NET runtime.
More information on the PS.NET project can be found <a
href="http://www.zope.org/Members/Brian/PythonNet">here</a>.
href="http://www.zope.org/Members/Brian/PythonNet/index_html">here</a>.
An FAQ document is available <a
href="http://www.zope.org/Members/Brian/PythonNet/FAQ.html">here</a>.
+5 -5
View File
@@ -43,7 +43,7 @@
in the Microsoft .NET Environment</a> is an article
by Mr. Venu who is a MySQL AB developer.</li>
<p>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySqlClient is below.
<p>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below.
** Current Status
@@ -51,7 +51,7 @@
<ul>
<li>ByteFX.Data.MySqlClient
<li>ByteFX.Data.MySQLClient
<ul>
<li>Build and Runs on Microsoft .NET and Mono</li>
<li>Works with SQL# (command-line and GTK# GUI versions)</li>
@@ -109,7 +109,7 @@
The current plan for the MySQL data providers:
<ul>
<li>ByteFX.Data.MySqlClient
<li>ByteFX.Data.MySQLClient
<ul>
<li>Testing and fixes</li>
<li>Implement missing features</li>
@@ -163,7 +163,7 @@
<pre>
using System;
using System.Data;
using ByteFX.Data.MySqlClient;
using ByteFX.Data.MySQLClient;
public class Test
{
@@ -175,7 +175,7 @@
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new MySqlConnection(connectionString);
dbcon = new MySQLConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
-246
View File
@@ -1,246 +0,0 @@
System.Object
System.Exception
System.ValueType
System.Delegate
System.MulticastDelegate
System.Enum
System.Activator
System.ArgIterator
System.__ComObject
System.TypedReference
System.Security.AllowPartiallyTrustedCallersAttribute
System.Runtime.Serialization.Formatter
System.Runtime.Serialization.FormatterConverter
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.ObjectIDGenerator
System.Runtime.Serialization.ObjectManager
System.Reflection.ModuleResolveEventHandler
System.Reflection.Pointer
System.Globalization.CompareInfo
System.Globalization.HebrewCalendar
System.Globalization.HijriCalendar
System.Globalization.JapaneseCalendar
System.Globalization.KoreanCalendar
System.Globalization.SortKey
System.Globalization.StringInfo
System.Globalization.TaiwanCalendar
System.Globalization.TextElementEnumerator
System.Globalization.TextInfo
System.Globalization.ThaiBuddhistCalendar
System.IO.IsolatedStorage.IsolatedStorageFile
System.Reflection.Emit.MethodRental
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
System.Runtime.CompilerServices.CallConvCdecl
System.Runtime.CompilerServices.CallConvStdcall
System.Runtime.CompilerServices.CallConvThiscall
System.Runtime.CompilerServices.CallConvFastcall
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
System.Runtime.CompilerServices.DiscardableAttribute
System.Runtime.CompilerServices.DecimalConstantAttribute
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Runtime.CompilerServices.IDispatchConstantAttribute
System.Runtime.CompilerServices.IsVolatile
System.Runtime.CompilerServices.IUnknownConstantAttribute
System.Runtime.CompilerServices.RequiredAttributeAttribute
System.Runtime.InteropServices.ArrayWithOffset
System.Runtime.InteropServices.DispIdAttribute
System.Runtime.InteropServices.ClassInterfaceType
System.Runtime.InteropServices.ClassInterfaceAttribute
System.Runtime.InteropServices.ComVisibleAttribute
System.Runtime.InteropServices.LCIDConversionAttribute
System.Runtime.InteropServices.ComRegisterFunctionAttribute
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
System.Runtime.InteropServices.ProgIdAttribute
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
System.Runtime.InteropServices.IDispatchImplType
System.Runtime.InteropServices.IDispatchImplAttribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
System.Runtime.InteropServices.ComConversionLossAttribute
System.Runtime.InteropServices.TypeLibTypeFlags
System.Runtime.InteropServices.TypeLibFuncFlags
System.Runtime.InteropServices.TypeLibVarFlags
System.Runtime.InteropServices.TypeLibTypeAttribute
System.Runtime.InteropServices.TypeLibFuncAttribute
System.Runtime.InteropServices.TypeLibVarAttribute
System.Runtime.InteropServices.ComImportAttribute
System.Runtime.InteropServices.PreserveSigAttribute
System.Runtime.InteropServices.ComAliasNameAttribute
System.Runtime.InteropServices.AutomationProxyAttribute
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices.CoClassAttribute
System.Runtime.InteropServices.ComEventInterfaceAttribute
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.ComMemberType
System.Runtime.InteropServices.CurrencyWrapper
System.Runtime.InteropServices.DispatchWrapper
System.Runtime.InteropServices.ErrorWrapper
System.Runtime.InteropServices.ExtensibleClassFactory
System.Runtime.InteropServices.HandleRef
System.Runtime.InteropServices.InvalidComObjectException
System.Runtime.InteropServices.InvalidOleVariantTypeException
System.Runtime.InteropServices.TypeLibImporterFlags
System.Runtime.InteropServices.ExporterEventKind
System.Runtime.InteropServices.ITypeLibExporterNotifySink
System.Runtime.InteropServices.ITypeLibConverter
System.Runtime.InteropServices.MarshalDirectiveException
System.Runtime.InteropServices.ObjectCreationDelegate
System.Runtime.InteropServices.RuntimeEnvironment
System.Runtime.InteropServices.RegistrationServices
System.Runtime.InteropServices.SafeArrayRankMismatchException
System.Runtime.InteropServices.SafeArrayTypeMismatchException
System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.TypeLibConverter
System.Runtime.InteropServices.BIND_OPTS
System.Runtime.InteropServices.UCOMIBindCtx
System.Runtime.InteropServices.UCOMIConnectionPointContainer
System.Runtime.InteropServices.UCOMIConnectionPoint
System.Runtime.InteropServices.UCOMIEnumMoniker
System.Runtime.InteropServices.CONNECTDATA
System.Runtime.InteropServices.UCOMIEnumConnections
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
System.Runtime.InteropServices.UCOMIEnumString
System.Runtime.InteropServices.UCOMIEnumVARIANT
System.Runtime.InteropServices.FILETIME
System.Runtime.InteropServices.UCOMIMoniker
System.Runtime.InteropServices.UCOMIPersistFile
System.Runtime.InteropServices.UCOMIRunningObjectTable
System.Runtime.InteropServices.STATSTG
System.Runtime.InteropServices.UCOMIStream
System.Runtime.InteropServices.DESCKIND
System.Runtime.InteropServices.BINDPTR
System.Runtime.InteropServices.UCOMITypeComp
System.Runtime.InteropServices.TYPEKIND
System.Runtime.InteropServices.TYPEFLAGS
System.Runtime.InteropServices.IMPLTYPEFLAGS
System.Runtime.InteropServices.TYPEATTR
System.Runtime.InteropServices.FUNCDESC
System.Runtime.InteropServices.IDLFLAG
System.Runtime.InteropServices.IDLDESC
System.Runtime.InteropServices.PARAMFLAG
System.Runtime.InteropServices.PARAMDESC
System.Runtime.InteropServices.TYPEDESC
System.Runtime.InteropServices.ELEMDESC
System.Runtime.InteropServices.VARDESC
System.Runtime.InteropServices.DISPPARAMS
System.Runtime.InteropServices.EXCEPINFO
System.Runtime.InteropServices.FUNCKIND
System.Runtime.InteropServices.INVOKEKIND
System.Runtime.InteropServices.CALLCONV
System.Runtime.InteropServices.FUNCFLAGS
System.Runtime.InteropServices.VARFLAGS
System.Runtime.InteropServices.UCOMITypeInfo
System.Runtime.InteropServices.SYSKIND
System.Runtime.InteropServices.LIBFLAGS
System.Runtime.InteropServices.TYPELIBATTR
System.Runtime.InteropServices.UCOMITypeLib
System.Runtime.InteropServices.UnknownWrapper
System.Runtime.Remoting.IObjectHandle
System.Runtime.Remoting.IRemotingTypeInfo
System.Runtime.Remoting.IChannelInfo
System.Runtime.Remoting.IEnvoyInfo
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.TypeEntry
System.Runtime.Remoting.ActivatedClientTypeEntry
System.Runtime.Remoting.ActivatedServiceTypeEntry
System.Runtime.Remoting.WellKnownClientTypeEntry
System.Runtime.Remoting.WellKnownServiceTypeEntry
System.Runtime.Remoting.RemotingException
System.Runtime.Remoting.ServerException
System.Runtime.Remoting.RemotingTimeoutException
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.InternalRemotingServices
System.Runtime.Remoting.SoapServices
System.Runtime.Remoting.Activation.UrlAttribute
System.Runtime.Remoting.Messaging.IMessageSink
System.Runtime.Remoting.Messaging.AsyncResult
System.Runtime.Remoting.Messaging.CallContext
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
System.Runtime.Remoting.Messaging.InternalMessageWrapper
System.Runtime.Remoting.Messaging.IMethodCallMessage
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.IMessageCtrl
System.Runtime.Remoting.Messaging.IRemotingFormatter
System.Runtime.Remoting.Messaging.ReturnMessage
System.Runtime.Remoting.Messaging.MethodCall
System.Runtime.Remoting.Messaging.ConstructionCall
System.Runtime.Remoting.Messaging.MethodResponse
System.Runtime.Remoting.Messaging.ConstructionResponse
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
System.Runtime.Remoting.Messaging.OneWayAttribute
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
System.Runtime.Remoting.Contexts.CrossContextDelegate
System.Runtime.Remoting.Contexts.ContextProperty
System.Runtime.Remoting.Contexts.IContextPropertyActivator
System.Runtime.Remoting.Contexts.IContributeClientContextSink
System.Runtime.Remoting.Contexts.IContributeDynamicSink
System.Runtime.Remoting.Contexts.IContributeEnvoySink
System.Runtime.Remoting.Contexts.IContributeObjectSink
System.Runtime.Remoting.Contexts.IContributeServerContextSink
System.Runtime.Serialization.Formatters.InternalRM
System.Runtime.Serialization.Formatters.InternalST
System.Runtime.Serialization.Formatters.SoapMessage
System.Runtime.Serialization.Formatters.SoapFault
System.Runtime.Serialization.Formatters.ServerFault
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Security.Cryptography.CryptoConfig
System.Security.Cryptography.KeyedHashAlgorithm
System.Security.Cryptography.HMACSHA1
System.Security.Cryptography.MACTripleDES
System.Security.Cryptography.MaskGenerationMethod
System.Security.Cryptography.PasswordDeriveBytes
System.Security.Cryptography.PKCS1MaskGenerationMethod
System.Security.Cryptography.RC2
System.Security.Cryptography.RC2CryptoServiceProvider
System.Security.Cryptography.RSACryptoServiceProvider
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
System.Security.Cryptography.RSAPKCS1SignatureFormatter
System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider
System.Security.Permissions.EnvironmentPermission
System.Security.Permissions.FileDialogPermission
System.Security.Permissions.IsolatedStorageFilePermission
System.Security.Permissions.PrincipalPermissionAttribute
System.Security.Permissions.SecurityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermission
System.Security.Permissions.ReflectionPermission
System.Security.Permissions.RegistryPermission
System.Security.Permissions.PrincipalPermission
System.Security.Permissions.SiteIdentityPermission
System.Security.Permissions.StrongNameIdentityPermission
System.Security.Permissions.StrongNamePublicKeyBlob
System.Security.Permissions.UIPermission
System.Security.Permissions.UrlIdentityPermission
System.Security.Permissions.ZoneIdentityPermission
System.Security.Policy.ApplicationDirectory
System.Security.Policy.ApplicationDirectoryMembershipCondition
System.Security.Policy.FirstMatchCodeGroup
System.Security.Policy.Hash
System.Security.Policy.HashMembershipCondition
System.Security.Policy.NetCodeGroup
System.Security.Policy.PermissionRequestEvidence
System.Security.Policy.Publisher
System.Security.Policy.PublisherMembershipCondition
System.Security.Policy.Site
System.Security.Policy.SiteMembershipCondition
System.Security.Policy.StrongName
System.Security.Policy.StrongNameMembershipCondition
System.Security.Policy.UnionCodeGroup
System.Security.Policy.Url
System.Security.Policy.UrlMembershipCondition
System.Security.Policy.Zone
System.Security.Policy.ZoneMembershipCondition
System.Security.Principal.WindowsIdentity
System.Security.Principal.WindowsImpersonationContext
System.Security.Principal.WindowsPrincipal
System.Threading.CompressedStack
-1
View File
@@ -5,7 +5,6 @@
1,Team,team.html,team.src
1,Other sites,other.html,other.src
1,Old News,oldnews.html,oldnews.src
1,Bug Reporting,bugs.html,bugs.src
0,Mono,rationale.html,rationale.src
1,Runtime,runtime.html,runtime.src
2,Embedding,embedded-api.html,embedded-api.src
+17 -4
View File
@@ -64,6 +64,20 @@ OBJECTS= \
deploy/testing.html \
deploy/tools.html \
deploy/winforms.html \
deploy/class-status.html \
deploy/class-status-corlib.html \
deploy/class-status-System.html \
deploy/class-status-System.Xml.html \
deploy/class-status-System.Drawing.html \
deploy/class-status-System.Data.html \
deploy/class-status-System.Web.html \
deploy/class-status-System.Web.Services.html \
deploy/class-status-Microsoft.VisualBasic.html \
deploy/class-status-System.EnterpriseServices.html \
deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html \
deploy/class-status-System.Security.html \
deploy/class-status-System.Windows.Forms.html \
deploy/class-status-Cscompmgd.html \
deploy/class-library.html \
deploy/classlib-doc.html
@@ -77,7 +91,7 @@ NON_HTML_SOURCES= \
../mono-build.sh \
../mono-build-w32.sh
all: $(OBJECT) deploy/index.rss ../team
all: $(OBJECTS) deploy/index.rss ../team
perl process.pl commands template.html.in deploy
-mkdir deploy/team
cp team/*png deploy/team
@@ -112,9 +126,8 @@ clean:
push:
cp -f $(NON_HTML_SOURCES) deploy
#echo scp -P 2200 -r deploy/* [email protected]:/web/cvsmodules/mono
#(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
echo scp -P 2200 -r deploy/* [email protected]:/web/cvsmodules/mono
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
push2:
scp -r deploy/* primates:public_html/xxx
+2 -11
View File
@@ -6,21 +6,18 @@
using System;
using System.IO;
using System.Xml;
using System.Text;
using RSS;
class X {
static RSS.RSS rss;
static Channel c;
static int item_count;
static int line;
static void PopulateRSS (StreamReader input)
{
string s;
while ((s = input.ReadLine ()) != null){
line++;
if (s.StartsWith ("@item "))
break;
}
@@ -55,7 +52,6 @@ class X {
} else {
description += "\n" + (s == "\n" ? "<p>" : s);
}
line++;
} while ((s = input.ReadLine ()) != null);
if (i != null){
@@ -80,12 +76,7 @@ class X {
using (FileStream fs = new FileStream (input, FileMode.Open)){
using (StreamReader input_stream = new StreamReader (fs)){
try {
PopulateRSS (input_stream);
} catch {
Console.WriteLine ("{0} failure while loading: {1}", line, input);
throw;
}
PopulateRSS (input_stream);
}
}
+1 -1
View File
@@ -1453,7 +1453,7 @@
<e-mail>[email protected]</e-mail>
<image>peterw.png</image>
<image>none.png</image>
<location>Cambridge, MA</location>
+5 -26
View File
@@ -15,7 +15,6 @@
.navi0 { font-size: 14px; font-weight: bold; background: #444444; }
.navi1 { font-size: 14px; font-weight: bold; left-margin: 10pt}
.navi2 { font-size: 10px; font-weight: bold; left-margin: 20pt}
.topmenu { font-size: 14px; font-weight: bold; }
.footnote { font-size: 12px; color: #aaaaaa; }
a.navi0 { color: #ffffff; text-decoration: none}
@@ -30,10 +29,6 @@
a.navi2:visited { color: #cccccc; }
a.navi2:hover { color: #ee9900; text-decoration: underline; }
a.topmenu { color: #ffffff; text-decoration: none; margin-left: 7px;}
a.topmenu:visited { color: #cccccc; }
a.topmenu:hover { color: #ee9900; text-decoration: underline; }
// -->
</style>
#CSS#
@@ -43,27 +38,11 @@
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><img src="images/pixel.gif" alt=""></td><!-- left border
-->
<td colspan="4">
<table>
<tr>
<td>
<a href="http://www.go-mono.com"><img
src="images/mono-new.gif" alt="mono-logo" border="0"></a>
</td>
<td>
<a class="topmenu" href="download.html">Downloads</a> |
<a class="topmenu" href="http://go-mono.com/daily">Daily snapshots</a> |
<a class="topmenu" href="screenshots.html">Screenshots</a> |
<a class="topmenu" href="http://mono.ximian.com:8080">Documentation</a>
<a class="topmenu" href="bugs.html">Bugs</a>
</td>
</tr>
</table>
</td>
<td><img src="images/pixel.gif" alt=""></td><!-- right border
-->
<td><img src="images/pixel.gif" alt=""></td><!-- left border -->
<td colspan="4">
<a href="http://www.go-mono.com"><img src="images/mono-new.gif"
alt="mono-logo" border="0"></a></td>
<td><img src="images/pixel.gif" alt=""></td><!-- right border -->
</tr>
<tr>
<td><img src="images/pixel.gif" width="1" height="1" alt=""></td>
-6
View File
@@ -195,12 +195,6 @@ If set, this variable overrides the default system configuration directory
If set, this variable overrides the default runtime configuration file
($PREFIX/etc/mono/config). The --config command line options overrides the
environment variable.
.TP
.I "MONO_DEBUG"
If set, enables some features of the runtime useful for debugging.
Currently it only makes the runtime display the stack traces for all the
threads running and exit. It may not exit cleanly. Use at your own risk.
.SH FILES
On Unix assemblies are loaded from the installation lib directory. If you set
`prefix' to /usr, the assemblies will be located in /usr/lib. On
+1
View File
@@ -41,6 +41,7 @@ DISTFILES = \
MIT.X11 \
MonoIcon.png \
README \
README.building \
ScalableMonoIcon.svg \
winexe.in
+2 -1
View File
@@ -25,4 +25,5 @@ endif
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1
# Causes some build errors
#PROFILE_MCS_FLAGS = /d:NET_1_1
+1 -1
View File
@@ -26,4 +26,4 @@ endif
profile-check:
# Causes some build errors
PROFILE_MCS_FLAGS = -d:GENERICS -d:NET_1_1
PROFILE_MCS_FLAGS = -d:GENERICS
+1 -1
View File
@@ -13,7 +13,7 @@
dots := $(shell echo $(thisdir) |sed -e 's,[^./][^/]*,..,g')
topdir := $(dots)
VERSION = 0.26.99
VERSION = 0.25.99
USE_MCS_FLAGS = $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS)
@@ -1,13 +1,3 @@
2003-09-07 Cesar Lopez Nataren <[email protected]>
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
2003-07-27 Cesar Lopez Nataren <[email protected]>
* Added files StringLiteral.cs, CodeGenerator.cs and Print.cs.
@@ -1,10 +1,9 @@
//
// Context.cs:
//
// Author:
// Cesar Lopez Nataren ([email protected])
// Author: Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript.Tmp
@@ -13,13 +12,6 @@ namespace Microsoft.JScript.Tmp
public class Context
{
internal DocumentContext Document;
internal Context (string filename)
{
Document = new DocumentContext (filename);
}
public int EndColumn {
get { throw new NotImplementedException (); }
}
@@ -10,12 +10,5 @@
namespace Microsoft.JScript.Tmp
{
public class DocumentContext
{
internal string Name;
internal DocumentContext (string filename)
{
Name = filename;
}
}
{}
}
@@ -13,21 +13,15 @@ namespace Microsoft.JScript.Tmp
public class JSParser
{
internal JScriptParser Parser;
public JSParser (Context context)
{
JSScanner scanner = new JSScanner (context);
Parser = new JScriptParser (scanner.Lexer);
throw new NotImplementedException ();
}
public ScriptBlock Parse ()
{
ScriptBlock prog = new ScriptBlock ();
Parser.program (prog);
return prog;
throw new NotImplementedException ();
}
@@ -10,21 +10,18 @@
namespace Microsoft.JScript.Tmp
{
using System;
using System.IO;
public sealed class JSScanner
{
internal JScriptLexer Lexer;
public JSScanner ()
{}
{
throw new NotImplementedException ();
}
public JSScanner (Context sourceContext)
{
string filename = sourceContext.Document.Name;
StreamReader file = new StreamReader (filename);
Lexer = new JScriptLexer (file);
throw new NotImplementedException ();
}
@@ -1,43 +0,0 @@
//
// AssemblyInfo.cs
//
// Author:
// Andreas Nahr ([email protected])
//
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about the system assembly
#if (WSE1)
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: SatelliteContractVersion("1.0.0.0")]
#endif
#if (WSE2)
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: SatelliteContractVersion("2.0.0.0")]
// [assembly: ComCompatibleVersion(1, 0, 3300, 0)]
// [assembly: TypeLibVersion(1, 10)]
#endif
[assembly: AssemblyTitle("Microsoft.Web.Services.dll")]
[assembly: AssemblyDescription("Web Service Enhancement")]
[assembly: AssemblyConfiguration("Development version")]
[assembly: AssemblyCompany("MONO development team")]
[assembly: AssemblyProduct("MONO CLI")]
[assembly: AssemblyCopyright("(c) 2003 Various Authors")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyDefaultAlias("Microsoft.Web.Services.dll")]
[assembly: AssemblyInformationalVersion("0.0.0.1")]
[assembly: NeutralResourcesLanguage("en-US")]
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
@@ -1,9 +0,0 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallers
2003-09-04 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Added. Copied from corlib and ajusted for WSE.
* Locale.cs: Added. Copied from corlib.
* ChangeLog: Added
@@ -1,24 +0,0 @@
//
// Locale.cs
//
// Author:
// Miguel de Icaza ([email protected])
// Andreas Nahr ([email protected])
//
// (C) 2001 - 2003 Ximian, Inc (http://www.ximian.com)
//
internal sealed class Locale {
private Locale ()
{
}
/// <summary>
/// Returns the translated message for the current locale
/// </summary>
public static string GetText (string msg)
{
return msg;
}
}
@@ -1,36 +0,0 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added another shared (and
renamed) file from System.Security assembly (Signature.cs ->
SignedXmlSignature.cs).
2003-09-05 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed classes from
Microsoft.Web.Services.Configuration to fix compilation.
2003-09-04 Sebastien Pouliot <[email protected]>
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly. Removed unused files. Added Assembly files.
2003-09-04 Duncan Mak <[email protected]>
* Integrate the files from Sebastien.
2003-09-02 Duncan Mak <[email protected]>
* Microsoft.Web.Services/Soap.cs:
* Microsoft.Web.Services/IXmlElement.cs: Implemented.
2003-09-02 Daniel Kornhauser <[email protected]>
* Microsoft.Web.Services: All Exceptions in this assembly
implemented.
@@ -1,9 +0,0 @@
thisdir = class/Microsoft.Web.Services
SUBDIRS =
include ../../build/rules.make
LIBRARY = Microsoft.Web.Services.dll
LIB_MCS_FLAGS = /r:System.dll /r:System.Security.dll /r:System.Web.dll /r:System.Web.Services.dll /r:System.Xml.dll /r:System.Security.dll /r:Mono.Security.dll /d:WSE1
NO_TEST = yes
include ../../build/library.make
@@ -1,28 +0,0 @@
//
// Microsoft.Web.Services.Addressing.AddressingFormatException.cs
//
// Author: Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Addressing {
[Serializable]
public class AddressingFormatException : SoapHeaderException
{
public static readonly string MissingActionElement
= "The <{0}> element should not have any child nodes other than text.";
public AddressingFormatException (string message)
: base (message, XmlQualifiedName.Empty)
{
}
}
}
@@ -1,11 +0,0 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: Completed implementation (both WSE1 and WSE2).
* FilterConfiguration.cs: Now returns the default input/output filters.
* WebServicesConfiguration.cs: Works for WSE1. Added WSE2 stubs.
2003-09-05 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: New. Limited implementation to fix compile.
* FilterConfiguration.cs: New. Stub to fix compile.
* WebServicesConfiguration.cs: New. Stub to fix compile.
@@ -1,106 +0,0 @@
//
// FilterConfiguration.cs: Filter Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Configuration;
using System.Xml;
namespace Microsoft.Web.Services.Configuration {
public class ConfigurationBase {
public ConfigurationBase () {}
protected static void CheckForChildNodes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.HasChildNodes)
throw new ConfigurationException (Locale.GetText ("has child nodes"));
}
protected static void CheckForDuplicateChildNodes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
int n = node.ChildNodes.Count;
if (n > 1) {
// (n - 1) last is unimportant
for (int i=0; i < n - 1; i++) {
string xname = node.ChildNodes [i].Name;
// (i + 1) don't look back (again)
for (int j=i+1; j < n; i++) {
if (xname == node.ChildNodes [j].Name)
throw new ConfigurationException (Locale.GetText ("found duplicate nodes"));
}
}
}
}
protected static void CheckForUnrecognizedAttributes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.Attributes.Count > 0)
throw new ConfigurationException (Locale.GetText ("node has attributes"));
}
protected static XmlNode GetAndRemoveAttribute (XmlNode node, string attrib, bool fRequired)
{
if (node == null)
throw new ArgumentNullException ("node");
XmlNode xn = node.Attributes [attrib];
if (xn != null)
node.Attributes.Remove (xn as XmlAttribute);
else if (fRequired)
throw new ConfigurationException (Locale.GetText ("missing required attribute"));
return xn;
}
protected static XmlNode GetAndRemoveBoolAttribute (XmlNode node, string attrib, bool fRequired, ref bool val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = Convert.ToBoolean (xn.Value);
return xn;
}
#if WSE2
protected static XmlNode GetAndRemoveIntegerAttribute (XmlNode node, string attrib, bool fRequired, ref int val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = Convert.ToInt32 (xn.Value);
return xn;
}
#endif
protected static XmlNode GetAndRemoveStringAttribute (XmlNode node, string attrib, bool fRequired, ref string val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = xn.Value;
return xn;
}
protected static void ThrowIfElement (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.NodeType == XmlNodeType.Element)
throw new ConfigurationException (Locale.GetText ("node is XmlNodeType.Element"));
}
protected static void ThrowIfNotComment (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.NodeType != XmlNodeType.Comment)
throw new ConfigurationException (Locale.GetText ("node isn't XmlNodeType.Comment"));
}
}
}
@@ -1,54 +0,0 @@
//
// FilterConfiguration.cs: Filter Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using Microsoft.Web.Services;
using Microsoft.Web.Services.Configuration;
using Microsoft.Web.Services.Security;
using Microsoft.Web.Services.Timestamp;
using Microsoft.Web.Services.Referral;
using Microsoft.Web.Services.Routing;
namespace Microsoft.Web.Services.Configuration {
public sealed class FilterConfiguration : ConfigurationBase {
private SoapInputFilterCollection input;
private SoapOutputFilterCollection output;
[MonoTODO("see <filters> in WSE documentation")]
internal FilterConfiguration ()
{
input = new SoapInputFilterCollection ();
// the following 4 filters always seems present (notwithstanding config)
input.Add (new SecurityInputFilter ());
input.Add (new TimestampInputFilter ());
input.Add (new ReferralInputFilter ());
input.Add (new RoutingInputFilter ());
// TODO: add custom input filters
output = new SoapOutputFilterCollection ();
// the following 4 filters always seems present (notwithstanding config)
output.Add (new SecurityOutputFilter ());
output.Add (new TimestampOutputFilter ());
output.Add (new ReferralOutputFilter ());
output.Add (new RoutingOutputFilter ());
// TODO: add custom output filters
}
public SoapInputFilterCollection InputFilters {
get { return input; }
}
public SoapOutputFilterCollection OutputFilters {
get { return output; }
}
}
}
@@ -1,41 +0,0 @@
//
// WebServicesConfiguration.cs: Web Services Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Configuration;
using System.Xml;
namespace Microsoft.Web.Services.Configuration {
public sealed class WebServicesConfiguration : ConfigurationBase, IConfigurationSectionHandler {
public static FilterConfiguration FilterConfiguration {
get { return new FilterConfiguration (); }
}
#if WSE2
[MonoTODO()]
public static MessagingConfiguration MessagingConfiguration {
get { return null; }
}
[MonoTODO()]
public static TokenIssuerConfiguration TokenIssuerConfiguration {
get { return null; }
}
#endif
// from IConfigurationSectionHandler
[MonoTODO()]
object IConfigurationSectionHandler.Create (object parent, object configContext, XmlNode section)
{
return null;
}
}
}
@@ -1,4 +0,0 @@
2003-09-04 Sebastien Pouliot <[email protected]>
* DimeAttachmentCollection.cs: Fixed compilation issues
* DimeReader.cs: Fixed compilation issues
@@ -1,99 +0,0 @@
//
// Microsoft.Web.Services.Dime.DimeAttachment.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
public class DimeAttachment
{
int chunk_size = Int32.MaxValue; // docs list this as default
string id;
string type;
Stream stream;
TypeFormatEnum type_format;
public DimeAttachment ()
{
id = String.Empty;
stream = null;
type = null;
type_format = TypeFormatEnum.Unchanged;
}
public DimeAttachment (string type, TypeFormatEnum typeFormat, string path)
{
this.type = type;
this.type_format = typeFormat;
if (File.Exists (path) == false)
throw new FileNotFoundException (
Locale.GetText ("The path is not valid."));
}
public DimeAttachment (string type, TypeFormatEnum typeFormat, Stream stream)
{
this.type = type;
this.type_format = typeFormat;
this.stream = stream;
}
public DimeAttachment (string id, string type, TypeFormatEnum typeFormat, string path)
: this (type, typeFormat, path)
{
this.id = id;
}
public DimeAttachment (string id, string type, TypeFormatEnum typeFormat, Stream stream)
: this (type, typeFormat, stream)
{
this.id = id;
}
public int ChunkSize {
get { return chunk_size; }
set { chunk_size = value; }
}
public string Id {
get { return id; }
set { id = value; }
}
public Stream Stream {
get { return stream; }
set {
if (value == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
stream = value;
}
}
public string Type {
get { return type; }
set { type = value; }
}
public TypeFormatEnum TypeFormat {
get { return type_format; }
set { type_format = value; }
}
}
}
@@ -1,91 +0,0 @@
//
// Microsoft.Web.Services.Dime.DimeAttachmentCollection.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using Microsoft.Web.Services;
using System;
using System.Collections;
using System.Globalization;
namespace Microsoft.Web.Services.Dime {
public class DimeAttachmentCollection : CollectionBase
{
DimeReader reader;
public DimeAttachmentCollection ()
{
}
public DimeAttachmentCollection (DimeReader reader)
{
if (reader == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
if (reader.CanRead == false)
throw new ArgumentException (
Locale.GetText ("The reader is not readable"));
this.reader = reader;
}
public DimeAttachment this [int key] {
get {
return (DimeAttachment) InnerList [key];
}
}
public DimeAttachment this [string key] {
get {
// FIXME: must iterate in collection
return null;
}
}
public void Add (DimeAttachment attachment)
{
InnerList.Add (attachment);
}
public void AddRange (ICollection collection)
{
foreach (object o in collection)
InnerList.Add (o);
}
public bool Contains (string id)
{
return InnerList.Contains (id);
}
public void CopyTo (DimeAttachment[] attachments, int index)
{
InnerList.CopyTo (attachments, index);
}
public int IndexOf (DimeAttachment attachment)
{
return InnerList.IndexOf(attachment);
}
public int IndexOf (string id)
{
return InnerList.IndexOf(id);
}
public void Remove (DimeAttachment attachment)
{
InnerList.Remove (attachment);
}
}
}
@@ -1,29 +0,0 @@
//
// Microsoft.Web.Services.DimeFormatException.cs
//
// Author: Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Dime {
[Serializable]
public class DimeFormatException: SoapHeaderException
{
public DimeFormatException (string message)
: base (String.Empty, XmlQualifiedName.Empty)
{
}
public DimeFormatException (string message, Exception ex)
: base (message, XmlQualifiedName.Empty, ex)
{
}
}
}
@@ -1,59 +0,0 @@
//
// Microsoft.Web.Services.Dime.DimeReader.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
public class DimeReader
{
Stream stream;
bool opened;
public DimeReader (Stream stream)
{
if (stream == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
if (stream.CanRead == false)
throw new ArgumentException (
Locale.GetText ("The stream is not readable"));
this.stream = stream;
opened = true;
}
public void Close ()
{
if (opened == false)
throw new InvalidOperationException (
Locale.GetText ("The stream is currently open."));
stream.Close ();
opened = false;
}
public bool CanRead {
get { return stream.CanRead; }
}
[MonoTODO]
public DimeRecord ReadRecord ()
{
if (opened == false)
throw new InvalidOperationException (
Locale.GetText ("The stream is currently closed."));
opened = true;
throw new NotImplementedException ();
}
}
}
@@ -1,18 +0,0 @@
//
// Microsoft.Web.Services.Dime.DimeRecord.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
[MonoTODO]
public class DimeRecord
{
}
}
@@ -1,20 +0,0 @@
//
// Microsfot.Web.Services.TypeFormatEnum.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Copyright, Ximian, Inc.
//
namespace Microsoft.Web.Services.Dime {
public enum TypeFormatEnum
{
Unchanged = 0,
MediaType = 16,
AbsoluteUri = 32,
Unknown = 48,
None = 64
}
}
@@ -1,17 +0,0 @@
// Microsoft.Web.Services.Messaging.ISoapFormmatter.cs
//
// Author: Duncan Mak <[email protected]>
//
// (C) Ximian, Inc. 2003.
using System.IO;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public interface ISoapFormatter {
SoapEnvelope Deserialize (Stream stream);
void Serialize (SoapEnvelope envelope, Stream stream);
}
}
@@ -1,50 +0,0 @@
//
// Microsoft.Web.Services.Messaging.ISoapTransport.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Ximian, Inc. 2003.
//
using System;
using System.IO;
using System.Net;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public interface ISoapTransport {
ICredentials Credentials { get; set; }
int IdleTimeout { get; set; }
string Scheme { get; }
IAsyncResult BeginSend (
SoapEnvelope envelope,
Uri destination,
AsyncCallback callback,
object state);
void EndSend (IAsyncResult result);
void RegisterPort (Uri to, Type port);
void RegisterPort (Uri to, SoapReceiver receiver);
void Send (SoapEnvelope envelop, Uri destination);
void UnregisterAll ();
void UnregisterPort (Uri to);
}
}
@@ -1,6 +0,0 @@
namespace Microsoft.Web.Services.Messaging {
public abstract class SoapPort
{
}
}
@@ -1,22 +0,0 @@
using System;
using System.Web;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public abstract class SoapReceiver : SoapPort, IHttpHandler
{
[MonoTODO]
public bool IsReusable {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public void ProcessRequest (HttpContext context)
{
throw new NotImplementedException ();
}
}
}
@@ -1,24 +0,0 @@
//
// Microsoft.Web.Services.PolicyEnforcementException.cs
//
// Author Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc. 2003.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Policy {
[Serializable]
public class PolicyEnforcementException : SoapException
{
public PolicyEnforcementException (string message)
: base (message, XmlQualifiedName.Empty)
{
}
}
}
@@ -1,22 +0,0 @@
2003-09-07 Sebastien Pouliot <[email protected]>
* Referral.cs: Removed virtual from Clone/GetXml/LoadXml for WSE1
(corcompare).
* ReferralCollection.cs: Removed virtual from LoadXml/GetXml/
GetEnumerator/CopyTo/Count/IsSynchronized/SyncRoot for WSE1
(corcompare)
* ReferralException.cs: Removed ReferralFormatException implementation
and added ReferralException.
* ReferralFormatException.cs: Moved code from ReferralException.cs and
added missing string constants.
* ReferralInputFilter.cs: Added missing TODO.
* ReferralOutputFilter.cs: Added missing TODO.
2003-09-06 Sebastien Pouliot <[email protected]>
* ReferralInputFilter.cs: Stubbed for compilation (configuration).
* ReferralOutputFilter.cs: Stubbed for compilation (configuration)
2003-09-04 Sebastien Pouliot <[email protected]>
* ReferralCollection.cs: Added missing ICollection properties.
@@ -1,34 +0,0 @@
//
// Microsoft.Web.Services.Referral.Desc.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class Desc
{
Uri uri;
public Desc ()
{
}
public Uri RefAddr {
get {
return uri;
}
set {
if (value.AbsoluteUri != value.ToString ())
throw new ArgumentException (
Locale.GetText ("uri is not absolute"));
uri = value;
}
}
}
}
@@ -1,45 +0,0 @@
//
// Microsoft.Web.Services.Referral.For.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class For
{
Uri exact;
Uri prefix;
public For ()
{
}
[MonoTODO]
public Uri Exact {
get {
return exact;
}
set {
exact = value;
}
}
[MonoTODO]
public Uri Prefix {
get {
return prefix;
}
set {
prefix = value;
}
}
}
}
@@ -1,43 +0,0 @@
//
// Microsoft.Web.Service.Referral.If.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class If
{
UriList uris;
long milliseconds;
public If()
{
}
public UriList Invalidates{
get {
return uris;
}
}
[MonoTODO]
public long Ttl {
get {
return milliseconds;
}
set {
milliseconds = value;
}
}
}
}
@@ -1,117 +0,0 @@
//
// Microsoft.Web.Services.Referral.Referral.cs
//
// Authors:
// Duncan Mak ([email protected])
// Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
using Microsoft.Web.Services.Routing;
namespace Microsoft.Web.Services.Referral {
public class Referral : ICloneable, IXmlElement
{
Uri uri;
public Referral ()
{
}
public Referral (Uri uri)
{
this.uri = uri;
}
[MonoTODO]
public void CheckValid ()
{
}
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
return new Referral (uri);
}
[MonoTODO]
#if WSE1
public XmlElement GetXml (XmlDocument document)
#else
public virtual XmlElement GetXml (XmlDocument document)
#endif
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
#if WSE1
public void LoadXml (XmlElement element)
#else
public virtual void LoadXml (XmlElement element)
#endif
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
public Desc Desc {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public ViaCollection Go {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public For For{
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public If If {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public Uri RefId {
get {
throw new NotImplementedException ();
}
set {
if (value == null)
throw new ArgumentNullException ();
throw new NotImplementedException ();
}
}
}
}
@@ -1,130 +0,0 @@
//
// Microsoft.Web.Services.Referral.ReferralCollection.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Referral {
public class ReferralCollection : SoapHeader, ICollection, IEnumerable, IXmlElement
{
ArrayList list;
public ReferralCollection ()
{
list = new ArrayList ();
}
public void Add (Referral referral)
{
list.Add (referral);
}
public void AddRange (Referral [] referrals)
{
list.AddRange (referrals);
}
public void Clear ()
{
list.Clear ();
}
public bool Contains (Referral referral)
{
return list.Contains (referral);
}
public bool Contains (Uri uri)
{
return list.Contains (new Referral (uri));
}
#if WSE1
public void CopyTo (Array array, int index)
#else
public virtual void CopyTo (Array array, int index)
#endif
{
list.CopyTo (array, index);
}
#if WSE1
public int Count {
#else
public virtual int Count {
#endif
get { return list.Count; }
}
#if WSE1
public IEnumerator GetEnumerator ()
#else
public virtual IEnumerator GetEnumerator ()
#endif
{
return list.GetEnumerator ();
}
[MonoTODO]
#if WSE1
public XmlElement GetXml (XmlDocument document)
#else
public virtual XmlElement GetXml (XmlDocument document)
#endif
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
#if WSE1
public bool IsSynchronized {
#else
public virtual bool IsSynchronized {
#endif
get { return list.IsSynchronized; }
}
[MonoTODO]
#if WSE1
public void LoadXml (XmlElement element)
#else
public virtual void LoadXml (XmlElement element)
#endif
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
public void Remove (Referral referral)
{
list.Remove (referral);
}
public void Remove (Uri uri)
{
list.Remove (new Referral (uri));
}
#if WSE1
public object SyncRoot {
#else
public virtual object SyncRoot {
#endif
get { return list.SyncRoot; }
}
}
}
@@ -1,24 +0,0 @@
//
// Microsoft.Web.Services.Referral.ReferralException.cs
//
// Authors:
// Daniel Kornhauser <[email protected]>
// Sebastien Pouliot ([email protected])
//
// (C) Ximian, Inc. 2003.
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
[Serializable]
public class ReferralException : SystemException {
public ReferralException (string message) : base (message) {}
public ReferralException (string message, Exception ex) : base (message, ex) {}
}
}
@@ -1,70 +0,0 @@
//
// Microsoft.Web.Services.Referral.ReferralFormatException.cs
//
// Authors:
// Daniel Kornhauser <[email protected]>
// Sebastien Pouliot ([email protected])
//
// (C) Ximian, Inc. 2003.
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// TODO: Figure out what the Uri parameter does.
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Referral {
[Serializable]
[MonoTODO("I18N")]
public class ReferralFormatException : SoapHeaderException {
public static readonly string BadDescValue = Locale.GetText ("BadDescValue");
public static readonly string BadExactValue = Locale.GetText ("BadExactValue");
public static readonly string BadMatchCombination = Locale.GetText ("BadMatchCombination");
public static readonly string BadPrefixValue = Locale.GetText ("BadPrefixValue");
public static readonly string BadRefAddrValue = Locale.GetText ("BadRefAddrValue");
public static readonly string BadRefIdValue = Locale.GetText ("BadRefIdValue");
public static readonly string BadRidValue = Locale.GetText ("BadRidValue");
public static readonly string BadTransport = Locale.GetText ("BadTransport");
public static readonly string BadTtlValue = Locale.GetText ("BadTtlValue");
public static readonly string BadViaValue = Locale.GetText ("BadViaValue");
public static readonly string DuplicateDescElement = Locale.GetText ("DuplicateDescElement");
public static readonly string DuplicateExactElement = Locale.GetText ("DuplicateExactElement");
public static readonly string DuplicateForElement = Locale.GetText ("DuplicateForElement");
public static readonly string DuplicateGoElement = Locale.GetText ("DuplicateGoElement");
public static readonly string DuplicateIfElement = Locale.GetText ("DuplicateIfElement");
public static readonly string DuplicatePrefixElement = Locale.GetText ("DuplicatePrefixElement");
public static readonly string DuplicateRefIdElement = Locale.GetText ("DuplicateRefIdElement");
public static readonly string ExactIsNotAbsoluteUri = Locale.GetText ("ExactIsNotAbsoluteUri");
public static readonly string MissingForElement = Locale.GetText ("MissingForElement");
public static readonly string MissingGoElement = Locale.GetText ("MissingGoElement");
public static readonly string MissingRefIdElement = Locale.GetText ("MissingRefIdElement");
public static readonly string MissingRidElement = Locale.GetText ("MissingRidElement");
public static readonly string MissingViaElement = Locale.GetText ("MissingViaElement");
public static readonly string MoreThanOneReferralHeaders = Locale.GetText ("MoreThanOneReferralHeaders");
public static readonly string NegativeTtlValue = Locale.GetText ("NegativeTtlValue");
public static readonly string PrefixIsNotAbsoluteUri = Locale.GetText ("PrefixIsNotAbsoluteUri");
public static readonly string RefAddrIsNotAbsoluteUri = Locale.GetText ("RefAddrIsNotAbsoluteUri");
public static readonly string SignedTtlValue = Locale.GetText ("SignedTtlValue");
public static readonly string ViaIsNotAbsoluteUri = Locale.GetText ("ViaIsNotAbsoluteUri");
Uri reference;
public ReferralFormatException (string message)
: base (message, XmlQualifiedName.Empty) {
}
public ReferralFormatException (Uri refid, string message)
: base (message, XmlQualifiedName.Empty) {
reference = refid;
}
public ReferralFormatException (Uri refid, string message, Exception innerException)
: base (message, XmlQualifiedName.Empty, innerException) {
reference = refid;
}
}
}
@@ -1,26 +0,0 @@
//
// ReferralInputFilter.cs: Referral SOAP Input Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
public class ReferralInputFilter : SoapInputFilter {
public ReferralInputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -1,26 +0,0 @@
//
// ReferralOutputFilter.cs: Referral SOAP Output Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
public class ReferralOutputFilter : SoapOutputFilter {
public ReferralOutputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -1,21 +0,0 @@
2003-09-07 Sebastien Pouliot <[email protected]>
* Path.cs: Constructors are internal and Clone is non virtual in WSE1
(corcompare). Added missing properties (many are obsolete in WSE2).
* RoutingInputFilter.cs: Added missing TODO.
* RoutingOutputFilter.cs: Added missing TODO.
* Via.cs: Removed virtual from Clone for WSE1 (corcompare).
* ViaCollection.cs: Removed virtual from Clone/GetEnumerator/CopyTo/
SyncRoot for WSE1 (corcompare).
* WSRouting.cs: New. Routing constant strings.
2003-09-06 Sebastien Pouliot <[email protected]>
* RoutingInputFilter.cs: Stubbed for compilation (configuration).
* RoutingOutputFilter.cs: Stubbed for compilation (configuration).
2003-09-04 Sebastien Pouliot <[email protected]>
* Path.cs: Corrected typos to fix compilation.
* Via.cs: Corrected typos to fix compilation.
* ViaCollection.cs: Corrected typos to fix compilation.
@@ -1,127 +0,0 @@
//
// Microsoft.Web.Services.Routing.Path.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Routing {
[MonoTODO]
public class Path : SoapHeader, ICloneable
{
XmlElement element;
#if WSE1
internal Path () {}
#else
public Path () {}
#endif
#if WSE1
internal Path (XmlElement element)
#else
public Path (XmlElement element)
#endif
{
this.element = element;
}
[MonoTODO]
public void CheckValid ()
{
}
[MonoTODO]
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
public void LoadXml (XmlElement element)
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
}
[MonoTODO]
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
throw new NotImplementedException ();
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public string Action {
get { return null; }
set { ; }
}
/* [MonoTODO]
public RoutingFault Fault {
get { return null; }
set { ; }
}*/
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri From {
get { return null; }
set { ; }
}
[MonoTODO]
public ViaCollection Fwd {
get { return null; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri Id {
get { return null; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri RelatesTo {
get { return null; }
set { ; }
}
[MonoTODO]
public ViaCollection Rev {
get { return null; }
set { ; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri To {
get { return null; }
}
}
}
@@ -1,25 +0,0 @@
// Microsoft.Web.Services.Routing.RoutingFormatException.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Ximian, Inc. 2003
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Routing {
[Serializable]
public class RoutingFormatException : SoapHeaderException
{
public RoutingFormatException (string message) : base (message, XmlQualifiedName.Empty)
{
}
public RoutingFormatException (string message, Exception ex) : base (message, XmlQualifiedName.Empty, ex)
{
}
}
}
@@ -1,26 +0,0 @@
//
// RoutingInputFilter.cs: Routing SOAP Input Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class RoutingInputFilter : SoapInputFilter {
public RoutingInputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -1,26 +0,0 @@
//
// SecurityOutputFilter.cs: Security SOAP Output Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class RoutingOutputFilter : SoapOutputFilter {
public RoutingOutputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -1,57 +0,0 @@
//
// Microsfot.Web.Services.Routing.Via.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
namespace Microsoft.Web.Services.Routing {
public class Via: ICloneable
{
Uri val;
Uri vid;
public Via()
{
}
public Via (Uri value)
{
this.val = value;
}
private Via (Uri value, Uri vid)
{
this.val = value;
this.vid = vid;
}
public Uri Value
{
get { return val; }
set { val = value; }
}
public Uri Vid
{
get { return vid; }
set { vid = value; }
}
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
return new Via (val, vid);
}
}
}
@@ -1,90 +0,0 @@
//
// Microsoft.Web.Services.Routing.ViaCollection.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Routing {
public class ViaCollection : ICollection, IEnumerable, ICloneable
{
ArrayList list;
public ViaCollection ()
{
list = new ArrayList ();
}
ViaCollection (ArrayList list)
{
this.list = list;
}
public int Count {
get { return list.Count; }
}
public bool IsSynchronized {
get { return list.IsSynchronized; }
}
public Via this [int filter] {
get {
return (Via) list [filter];
}
set {
list[filter] = value;
}
}
public virtual object SyncRoot {
get {
return list.SyncRoot;
}
}
public int Add (Via via)
{
return list.Add (via);
}
public virtual object Clone ()
{
return new ViaCollection (list);
}
public virtual void CopyTo (Array array, int index)
{
list.CopyTo(array, index);
}
public virtual IEnumerator GetEnumerator ()
{
return list.GetEnumerator();
}
public void Insert (int index, Via via)
{
list.Insert(index, via);
}
public void InsertRange (int index, ViaCollection collection)
{
list.InsertRange(index, collection);
}
public void RemoveAt (int index)
{
list.RemoveAt(index);
}
}
}
@@ -1,51 +0,0 @@
//
// WSRouting.cs: WSRouting definitions
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class WSRouting {
public class ActionUri {
public const string Fault = "http://schemas.xmlsoap.org/soap/fault";
public ActionUri () {}
}
public class ElementNames {
public const string Action = "action";
public const string Code = "code";
public const string Endpoint = "endpoint";
public const string Fault = "fault";
public const string Found = "found";
public const string From = "from";
public const string Fwd = "fwd";
public const string Id = "id";
public const string MaxSize = "maxsize";
public const string MaxTime = "maxtime";
public const string Path = "path";
public const string Reason = "reason";
public const string RelatesTo = "relatesTo";
public const string RetryAfter = "retryAfter";
public const string Rev = "rev";
public const string To = "to";
public const string Via = "via";
public ElementNames () {}
}
public const string NamespaceURI = "http://schemas.xmlsoap.org/rp";
public const string Prefix = "wsrp";
public WSRouting () {}
}
}
@@ -1,3 +0,0 @@
2003-09-04 Sebastien Pouliot <[email protected]>
* FileCertificateStore.cs: Fixed compilation.
@@ -1,48 +0,0 @@
//
// FileCertificateStore.cs: Handles a file-based certificate store.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using Mono.Security.Authenticode;
namespace Microsoft.Web.Services.Security.X509 {
internal class FileCertificateStore : ICertificateStore {
private string _storeName;
private X509CertificateStore.StoreOpenFlags _flags;
private X509CertificateStore.StoreLocation _location;
private IntPtr _handle;
public FileCertificateStore (X509CertificateStore.StoreLocation location, string storeName, X509CertificateStore.StoreOpenFlags flags)
{
_location = location;
_storeName = storeName;
_flags = flags;
}
public IntPtr Handle {
get { return (IntPtr) 0; }
}
public X509CertificateCollection GetCollection ()
{
if (_spc == null) {
_spc = SoftwarePublisherCertificate.CreateFromFile (_storeName);
}
X509CertificateCollection coll = new X509CertificateCollection ();
Mono.Security.X509.X509CertificateCollection spcoll = _spc.Certificates;
foreach (Mono.Security.X509.X509Certificate x in spcoll) {
coll.Add (new X509Certificate (x.RawData));
}
return coll;
}
public void Close () {}
}
}
@@ -1,15 +0,0 @@
using System;
namespace Microsoft.Web.Services.Security.X509 {
public interface ICertificateStore {
void Close ();
IntPtr Handle {
get;
}
X509CertificateCollection GetCollection ();
}
}
@@ -1,52 +0,0 @@
//
// MemoryCertificateStore.cs: Handles an in-memory certificate store.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Security.X509 {
internal class MemoryCertificateStore : ICertificateStore {
private string _storeName;
private X509CertificateStore.StoreOpenFlags _flags;
private X509CertificateStore.StoreLocation _location;
private IntPtr _handle;
private X509CertificateCollection _coll;
public MemoryCertificateStore (X509CertificateStore.StoreLocation location, string storeName, X509CertificateStore.StoreOpenFlags flags)
{
_location = location;
_storeName = storeName;
_flags = flags;
_coll = new X509CertificateCollection ();
}
public void Close ()
{
}
public IntPtr Handle {
get { return (IntPtr) _coll.GetHashCode (); }
}
public X509CertificateCollection GetCollection ()
{
if (_flags == X509CertificateStore.StoreOpenFlags.ReadOnly) {
// return a copy of the collection so changes aren't persisted
X509CertificateCollection copy = new X509CertificateCollection ();
foreach (X509Certificate x in _coll) {
copy.Add (x);
}
return copy;
}
else
return _coll;
}
}
}
@@ -1,182 +0,0 @@
//
// X509Certificates.cs: Handles (a little better) X509 certificates.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.ComponentModel;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using Mono.Security;
using MX = Mono.Security.X509;
using Mono.Security.X509.Extensions;
namespace Microsoft.Web.Services.Security.X509 {
public class X509Certificate : System.Security.Cryptography.X509Certificates.X509Certificate, IDisposable {
// do not includes: KeyUsage.keyEncipherment and KeyUsage.keyAgreement (see "OWN.cer")
private static KeyUsage[] dataEncryption = new KeyUsage [3] { KeyUsage.dataEncipherment, KeyUsage.decipherOnly, KeyUsage.encipherOnly };
// do not includes KeyUsage.cRLSign, KeyUsage.keyCertSign
private static KeyUsage[] digitalSignature = new KeyUsage [2] { KeyUsage.digitalSignature, KeyUsage.nonRepudiation };
private MX.X509Certificate x509;
private bool m_disposed;
public X509Certificate (byte[] rawCertificate) : base (rawCertificate)
{
x509 = new MX.X509Certificate (rawCertificate);
m_disposed = false;
}
public X509Certificate (IntPtr handle) : base (handle)
{
x509 = new MX.X509Certificate (base.GetRawCertData ());
m_disposed = false;
}
~X509Certificate ()
{
Dispose ();
}
// IDisposable
public void Dispose ()
{
if (!m_disposed) {
// Finalization is now unnecessary
GC.SuppressFinalize (this);
}
// call base class
// no need as they all are abstract before us
m_disposed = true;
}
// LAMESPEC: Do not confuse with CreateFromCertFile
public static X509Certificate CreateCertFromFile (string fileName)
{
System.Security.Cryptography.X509Certificates.X509Certificate x = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile (fileName);
return new X509Certificate (x.GetRawCertData ());
}
// LAMESPEC: Do not confuse with CreateFromSignedFile
public static X509Certificate CreateCertFromSignedFile (string fileName)
{
System.Security.Cryptography.X509Certificates.X509Certificate x = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile (fileName);
return new X509Certificate (x.GetRawCertData ());
}
// I knew that using string for date were a bad idea!
public bool IsCurrent {
get { return x509.IsCurrent; }
}
// Well it seems that DSA certificates aren't popular enough :-(
// Note: Private key isn't available
[MonoTODO("Private key isn't yet supported - requires cert stores")]
public RSA Key {
get {
throw new Win32Exception (0, "Private key is unavailable (TODO)");
}
}
// Well it seems that DSA certificates aren't popular enough :-(
public RSA PublicKey {
get { return x509.RSA; }
}
// Just KeyUsage or also ExtendedKeyUsage ?
// it doesn't seems to interpret NetscapeCertType
private bool Supports (KeyUsage[] usages)
{
// X.509 KeyUsage
MX.X509Extension extn = x509.Extensions ["2.5.29.15"];
if (extn != null) {
KeyUsageExtension keyUsage = new KeyUsageExtension (extn);
foreach (KeyUsage usage in usages) {
if (keyUsage.Support (usage))
return true;
}
return false;
}
// DEPRECATED keyAttributes
extn = x509.Extensions ["2.5.29.2"];
if (extn != null) {
KeyAttributesExtension keyAttr = new KeyAttributesExtension (extn);
foreach (KeyUsage usage in usages) {
if (keyAttr.Support (usage))
return true;
}
return false;
}
// key usage isn't specified (so it's not limited)
return true;
}
public bool SupportsDataEncryption {
get {
// always true for older certificates
if (x509.Version < 3)
return true;
return Supports (dataEncryption);
}
}
public bool SupportsDigitalSignature {
get {
// always true for older certificates
if (x509.Version < 3)
return true;
return Supports (digitalSignature);
}
}
public static X509Certificate FromBase64String (string rawString)
{
byte[] cert = Convert.FromBase64String (rawString);
return new X509Certificate (cert);
}
public byte[] GetKeyIdentifier ()
{
// if present in certificate return value of the SubjectKeyIdentifier
MX.X509Extension extn = x509.Extensions ["2.5.29.14"];
if (extn != null) {
ASN1 bs = new ASN1 (extn.Value.Value);
return bs.Value;
}
// strangely DEPRECATED keyAttributes isn't used here (like KeyUsage)
// if not then we must calculate the SubjectKeyIdentifier ourselve
// Note: MS does that hash on the complete subjectPublicKeyInfo (unlike PKIX)
// http://groups.google.ca/groups?selm=e7RqM%24plCHA.1488%40tkmsftngp02&oe=UTF-8&output=gplain
ASN1 subjectPublicKeyInfo = new ASN1 (0x30);
ASN1 algo = subjectPublicKeyInfo.Add (new ASN1 (0x30));
algo.Add (new ASN1 (CryptoConfig.EncodeOID (x509.KeyAlgorithm)));
// FIXME: does it work for DSA certs (without an 2.5.29.14 extension ?)
algo.Add (new ASN1 (x509.KeyAlgorithmParameters));
byte[] pubkey = x509.PublicKey;
byte[] bsvalue = new byte [pubkey.Length + 1]; // add unused bits (0) before the public key
Array.Copy (pubkey, 0, bsvalue, 1, pubkey.Length);
subjectPublicKeyInfo.Add (new ASN1 (0x03, bsvalue));
SHA1 sha = SHA1.Create ();
return sha.ComputeHash (subjectPublicKeyInfo.GetBytes ());
}
// overloaded but WHY ?
public override int GetHashCode ()
{
return base.GetHashCode ();
}
public string ToBase64String ()
{
return Convert.ToBase64String (base.GetRawCertData ());
}
}
}
@@ -1,62 +0,0 @@
//
// X509CertificateCollection.cs: Handles certificate collection.
// based on: mcs\class\System\System.Security.Cryptography.X509Certificates\X509CertificateCollection.cs
//
// Authors:
// Lawrence Pit ([email protected]) -- original work
// Sebastien Pouliot ([email protected]) -- all modifications and bugs ;-)
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Security.X509 {
public class X509CertificateCollection : CollectionBase {
public X509CertificateCollection () {}
public X509Certificate this [int index] {
get {
// required for exception ?
if ((index < 0) || (index > InnerList.Count))
throw new ArgumentOutOfRangeException ("index");
return (X509Certificate) InnerList [index];
}
set { InnerList [index] = value; }
}
public int Add (X509Certificate certificate)
{
if (certificate == null)
throw new ArgumentNullException ("value");
return InnerList.Add (certificate);
}
public bool Contains (X509Certificate certificate)
{
return InnerList.Contains (certificate);
}
public void CopyTo (Array array, int index)
{
InnerList.CopyTo (array, index);
}
public int IndexOf (X509Certificate certificate)
{
return InnerList.IndexOf (certificate);
}
public void Insert (int index, X509Certificate certificate)
{
InnerList.Insert (index, certificate);
}
public void Remove (X509Certificate certificate)
{
InnerList.Remove (certificate);
}
}
}
@@ -1,244 +0,0 @@
//
// X509CertificateStore.cs: Handles certificate stores.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace Microsoft.Web.Services.Security.X509 {
public class X509CertificateStore {
[Serializable]
public enum StoreLocation {
CurrentService = 262144,
CurrentUser = 65536,
CurrentUserGroupPolicy = 458752,
LocalMachine = 131072,
LocalMachineEnterprise = 589824,
LocalMachineGroupPolicy = 524288,
Services = 327680,
Unknown = 0,
Users = 393216
}
[Flags]
[Serializable]
public enum StoreOpenFlags {
CreateNew = 8192,
DeferClose = 4,
Delete = 16,
None = 0,
OpenExisting = 16384,
ReadOnly = 32768
}
[Serializable]
public enum StoreProvider {
Collection = 11,
File = 3,
Memory = 1,
System = 10
}
public const string CAStore = "CA";
public const string MyStore = "My";
public const string RootStore = "Root";
public const string TrustStore = "Trust";
public const string UnTrustedStore = "Disallowed";
private const string storeAlreadyOpened = "store already opened";
private const string storeNotOpened = "store not opened";
private StoreOpenFlags storeOpenFlags;
private StoreProvider storeProvider;
private StoreLocation storeLocation;
private string storeName;
private ICertificateStore store;
public X509CertificateStore (StoreProvider provider, StoreLocation location, string storeName)
{
storeProvider = provider;
storeLocation = location;
this.storeName = storeName;
}
~X509CertificateStore ()
{
if (store != null) {
store.Close ();
store = null;
}
}
public X509CertificateCollection Certificates {
get {
if (store == null)
return null;
return store.GetCollection ();
}
}
public IntPtr Handle {
get {
if (store == null)
return (IntPtr) 0;
return store.Handle;
}
}
public StoreLocation Location {
get { return storeLocation; }
}
public bool Open ()
{
return InternalOpen (StoreOpenFlags.None);
}
public bool OpenRead ()
{
return InternalOpen (StoreOpenFlags.ReadOnly);
}
internal bool InternalOpen (StoreOpenFlags flags)
{
if (store != null)
throw new InvalidOperationException (storeAlreadyOpened);
storeOpenFlags = flags;
switch (storeProvider) {
case StoreProvider.Collection:
store = null;
break;
case StoreProvider.File:
store = null;
break;
case StoreProvider.Memory:
store = new MemoryCertificateStore (storeLocation, storeName, flags);
break;
case StoreProvider.System:
store = null;
break;
default:
throw new NotSupportedException ("Unknown store provider");
}
return (store != null);
}
public void Close ()
{
store.Close ();
store = null;
storeOpenFlags = StoreOpenFlags.None;
}
internal bool Compare (byte[] array1, byte[] array2)
{
if ((array1 == null) && (array2 == null))
return true;
if ((array1 == null) || (array2 == null))
return false;
if (array1.Length != array2.Length)
return false;
for (int i=0; i < array1.Length; i++) {
if (array1 [i] != array2 [i])
return false;
}
return true;
}
public X509CertificateCollection FindCertificateByHash (byte[] certHash)
{
if (certHash == null)
throw new ArgumentNullException ("certHash");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (Compare (c.GetCertHash (), certHash))
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateByKeyIdentifier (byte[] keyIdentifier)
{
if (keyIdentifier == null)
throw new ArgumentNullException ("keyIdentifier");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (Compare (c.GetKeyIdentifier (), keyIdentifier))
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateBySubjectName (string subjectstring)
{
if (subjectstring == null)
throw new ArgumentNullException ("subjectstring");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (c.GetName() != subjectstring)
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateBySubjectString (string subjectsubstring)
{
if (subjectsubstring == null)
throw new ArgumentNullException ("subjectsubstring");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (c.GetName ().IndexOf (subjectsubstring) > 0)
results.Add (c);
}
}
return results;
}
public static X509CertificateStore CurrentUserStore (string storeName)
{
return new X509CertificateStore (StoreProvider.System, StoreLocation.CurrentUser, storeName);
}
public static X509CertificateStore LocalMachineStore (string storeName)
{
return new X509CertificateStore (StoreProvider.System, StoreLocation.LocalMachine, storeName);
}
}
}
@@ -1,36 +0,0 @@
//
// AsymmetricDecryptionKey.cs: Handles WS-Security AsymmetricDecryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
using System.Web.Services.Protocols;
namespace Microsoft.Web.Services.Security {
public sealed class AsymmetricDecryptionKey : DecryptionKey {
private AsymmetricAlgorithm key;
public AsymmetricDecryptionKey (AsymmetricAlgorithm key)
{
if (key is System.Security.Cryptography.RSACryptoServiceProvider)
this.key = key;
else
throw new SecurityFault ("not RSACryptoServiceProvider", null);
}
}
}
@@ -1,35 +0,0 @@
//
// AsymmetricEncryptionKey.cs: Handles WS-Security AsymmetricEncryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
namespace Microsoft.Web.Services.Security {
public sealed class AsymmetricEncryptionKey : EncryptionKey {
private AsymmetricAlgorithm key;
public AsymmetricEncryptionKey (AsymmetricAlgorithm key)
{
if (key == null)
throw new ArgumentNullException ("key");
this.key = key;
// TODO ? impact on KeyInfo ? not seen in tests !!!
}
}
}
@@ -1,50 +0,0 @@
//
// AuthenticationKey.cs: Handles WS-Security AuthenticationKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography;
// temp
//using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public class AuthenticationKey {
private AsymmetricAlgorithm asymKey;
private SymmetricAlgorithm symKey;
public AuthenticationKey (AsymmetricAlgorithm key)
{
asymKey = key;
}
public AuthenticationKey (SymmetricAlgorithm key)
{
symKey = key;
}
public bool CheckSignature (SignedXml signedXml)
{
if (asymKey != null) {
return signedXml.CheckSignature (asymKey);
}
else {
HMACSHA1 hmac = new HMACSHA1 (symKey.Key);
return signedXml.CheckSignature (hmac);
}
}
}
}
@@ -1,87 +0,0 @@
//
// BinarySecurityToken.cs: Handles WS-Security BinarySecurityToken
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public abstract class BinarySecurityToken : SecurityToken {
private const string name = "Base64Binary";
private const string ns = "http://schemas.xmlsoap.org/ws/2002/07/secext";
private XmlQualifiedName encoding;
private XmlQualifiedName valueType;
public BinarySecurityToken (XmlElement element) : base (element)
{
encoding = new XmlQualifiedName (name, ns);
}
public BinarySecurityToken (XmlQualifiedName valueType)
{
if (valueType == null)
throw new ArgumentNullException ("valueType");
encoding = new XmlQualifiedName (name, ns);
this.valueType = valueType;
}
public XmlQualifiedName EncodingType {
get { return encoding; }
set {
if (value == null)
throw new ArgumentNullException ("value");
encoding = value;
}
}
[MonoTODO ("used ?")]
public virtual byte[] RawData {
get { return null; }
set { ; }
}
public virtual XmlQualifiedName ValueType {
get { return valueType; }
set {
if (value == null)
throw new ArgumentNullException ("value");
valueType = value;
}
}
public override XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// TODO check namespace and valueType
throw new SecurityFormatException ("namespace");
}
public override void LoadXml (XmlElement element)
{
if (element == null)
throw new ArgumentNullException ("element");
if ((element.LocalName != name) || (element.NamespaceURI != ns))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -1,21 +0,0 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
2003-09-04 Sebastien Pouliot <[email protected]>
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* XmlSignature.cs: Added missing string used in System.Security.
@@ -1,33 +0,0 @@
//
// DecryptionKey.cs: Handles WS-Security DecryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
namespace Microsoft.Web.Services.Security {
public abstract class DecryptionKey {
private string name;
protected DecryptionKey () {}
public string Name {
get { return name; }
set { name = value; }
}
}
}
@@ -1,33 +0,0 @@
//
// DecryptionKeyProvider.cs: Decryption Key Provider
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public class DecryptionKeyProvider : IDecryptionKeyProvider {
public DecryptionKeyProvider () {}
[MonoTODO]
public virtual DecryptionKey GetDecryptionKey (string algorithmUri, KeyInfo keyInfo)
{
return null;
}
}
}
@@ -1,73 +0,0 @@
//
// EncryptedData.cs: Handles WS-Security EncryptedData
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public sealed class EncryptedData : ISecurityElement, IXmlElement {
private EncryptionKey encryptionKey;
private EncryptedKey encryptedKey;
private ReferenceList list;
public EncryptedData (EncryptionKey key)
{
this.encryptionKey = key;
}
// TODO
public EncryptedData (SecurityToken token) {}
// TODO
public EncryptedData (XmlElement element) {}
public EncryptedData (XmlElement element, EncryptedKey encryptedKey)
{
// TODO
this.encryptedKey = encryptedKey;
}
public EncryptedKey EncryptedKey {
get { return encryptedKey; }
}
public XmlElement Decrypt()
{
// TODO
return null;
}
public void Encrypt (XmlDocument message)
{
// TODO
}
public XmlElement GetXml (XmlDocument document)
{
// TODO
return null;
}
public void LoadXml (XmlElement element)
{
// TODO
}
}
}
@@ -1,80 +0,0 @@
//
// EncryptedKey.cs: Handles WS-Security EncryptedKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public class EncryptedKey : IXmlElement {
private AsymmetricEncryptionKey aek;
private KeyInfo ki;
private ReferenceList list;
internal EncryptedKey ()
{
list = new ReferenceList ();
}
public EncryptedKey (AsymmetricEncryptionKey key) : this ()
{
if (key == null)
throw new ArgumentNullException ("key");
aek = key;
ki = new KeyInfo ();
}
public EncryptedKey (XmlElement element) : this ()
{
LoadXml (element);
}
public string EncryptionMethod {
get { return null; }
}
public KeyInfo KeyInfo {
get { return ki; }
}
public ReferenceList ReferenceList {
get { return list; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
return ki.GetXml ();
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != "") || (element.NamespaceURI != ""))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
ki = new KeyInfo ();
try {
ki.LoadXml (element);
}
catch {
throw new ArgumentException ("element has no KeyInfo");
}
}
}
}
@@ -1,36 +0,0 @@
//
// EncryptionKey.cs:
// Abstract class for AsymmetricEncryptionKey and SymmetricEncryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public abstract class EncryptionKey {
private KeyInfo ki;
public EncryptionKey ()
{
ki = new KeyInfo ();
}
public KeyInfo KeyInfo {
get { return ki; }
}
}
}
@@ -1,28 +0,0 @@
//
// IDecryptionKeyProvider.cs:
// Defines IDecryptionKeyProvider interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public interface IDecryptionKeyProvider {
DecryptionKey GetDecryptionKey (string algorithmUri, KeyInfo keyInfo);
}
}
@@ -1,26 +0,0 @@
//
// IPasswordProvider.cs:
// Defines IPasswordProvider interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
namespace Microsoft.Web.Services.Security {
public interface IPasswordProvider {
string GetPassword (UsernameToken token);
}
}
@@ -1,24 +0,0 @@
//
// ISecurityElement.cs:
// Defines ISecurityElement interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
namespace Microsoft.Web.Services.Security {
// complete!
public interface ISecurityElement {}
}
@@ -1,78 +0,0 @@
//
// KeyIdentifier.cs: Handles WS-Security KeyIdentifier
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
public class KeyIdentifier : IXmlElement {
private byte[] kivalue;
private XmlQualifiedName vtype;
public KeyIdentifier (byte[] identifier)
{
if (identifier == null)
throw new ArgumentNullException ("identifier");
kivalue = (byte[]) identifier.Clone ();
}
public KeyIdentifier (XmlElement element)
{
LoadXml (element);
}
public KeyIdentifier (byte[] identifier, XmlQualifiedName valueType)
{
if (identifier == null)
throw new ArgumentNullException ("identifier");
kivalue = (byte[]) identifier.Clone ();
vtype = valueType;
}
public byte[] Value {
get { return (byte[]) kivalue.Clone (); }
set {
if (value == null)
throw new ArgumentNullException ("value");
kivalue = value;
}
}
public XmlQualifiedName ValueType {
get { return vtype; }
set { vtype = value; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
return null;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.KeyIdentifier) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -1,73 +0,0 @@
//
// Nonce.cs: Handles WS-Security Nonce
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
// References:
// a. Web Services Security Addendum, Version 1.0, August 18, 2002
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/ws-security.asp
public class Nonce : IXmlElement {
private byte[] nonce;
internal Nonce ()
{
nonce = new byte [16]; // FIXME ???
RandomNumberGenerator rng = RandomNumberGenerator.Create ();
rng.GetBytes (nonce);
}
// default to Base64 if no EncodingType attribute is specified
public string Value {
get { return Convert.ToBase64String (nonce); }
}
public byte[] GetValueBytes()
{
return (byte[]) nonce.Clone ();
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// much cleaner than using StringBuilder!
XmlElement xel = document.CreateElement (WSSecurity.Prefix, WSSecurity.ElementNames.Nonce, WSSecurity.NamespaceURI);
xel.InnerText = Convert.ToBase64String (nonce);
return xel;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.Nonce) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
XmlAttribute xa = element.Attributes [WSSecurity.AttributeNames.EncodingType, WSSecurity.NamespaceURI];
if ((xa == null) || (xa.Value == "Base64Binary")) {
nonce = Convert.FromBase64String (element.InnerText);
}
else
throw new NotSupportedException (xa.Value);
}
}
}
@@ -1,28 +0,0 @@
//
// PasswordOption.cs: Handles WS-Security PasswordOption
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
namespace Microsoft.Web.Services.Security {
[Serializable]
public enum PasswordOption {
SendHashed,
SendNone,
SendPlainText
}
}
@@ -1,191 +0,0 @@
//
// Reference.cs - Reference implementation for XML Signature
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.IO;
using System.Security.Cryptography;
using System.Xml;
#if (WSE1 || WSE2)
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
#else
namespace System.Security.Cryptography.Xml {
#endif
// http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/Overview.html#sec-Reference
public class Reference {
private TransformChain chain;
private string digestMethod;
private byte[] digestValue;
private string id;
private string uri;
private string type;
private HashAlgorithm hash;
public Reference ()
{
chain = new TransformChain ();
digestMethod = XmlSignature.NamespaceURI + "sha1";
}
[MonoTODO()]
public Reference (Stream stream) : this ()
{
}
public Reference (string uri) : this ()
{
this.uri = uri;
}
// default to SHA1
public string DigestMethod {
get { return digestMethod; }
set { digestMethod = value; }
}
public byte[] DigestValue {
get { return digestValue; }
set { digestValue = value; }
}
public string Id {
get { return id; }
set { id = value; }
}
public TransformChain TransformChain {
get { return chain; }
}
public string Type {
get { return type; }
set { type = value; }
}
public string Uri {
get { return uri; }
set { uri = value; }
}
public void AddTransform (Transform transform)
{
chain.Add (transform);
}
public XmlElement GetXml ()
{
if (digestMethod == null)
throw new CryptographicException ("DigestMethod");
if (digestValue == null)
throw new NullReferenceException ("DigestValue");
XmlDocument document = new XmlDocument ();
XmlElement xel = document.CreateElement (XmlSignature.ElementNames.Reference, XmlSignature.NamespaceURI);
if (id != null)
xel.SetAttribute (XmlSignature.AttributeNames.Id, id);
if (uri != null)
xel.SetAttribute (XmlSignature.AttributeNames.URI, uri);
if (type != null)
xel.SetAttribute (XmlSignature.AttributeNames.Type, type);
if (chain.Count > 0) {
XmlElement ts = document.CreateElement (XmlSignature.ElementNames.Transforms, XmlSignature.NamespaceURI);
foreach (Transform t in chain) {
XmlNode xn = t.GetXml ();
XmlNode newNode = document.ImportNode (xn, true);
ts.AppendChild (newNode);
}
xel.AppendChild (ts);
}
XmlElement dm = document.CreateElement (XmlSignature.ElementNames.DigestMethod, XmlSignature.NamespaceURI);
dm.SetAttribute (XmlSignature.AttributeNames.Algorithm, digestMethod);
xel.AppendChild (dm);
XmlElement dv = document.CreateElement (XmlSignature.ElementNames.DigestValue, XmlSignature.NamespaceURI);
dv.InnerText = Convert.ToBase64String (digestValue);
xel.AppendChild (dv);
return xel;
}
private string GetAttributeFromElement (XmlElement xel, string attribute, string element)
{
string result = null;
XmlNodeList xnl = xel.GetElementsByTagName (element);
if ((xnl != null) && (xnl.Count > 0)) {
XmlAttribute xa = xnl[0].Attributes [attribute];
if (xa != null)
result = xa.InnerText;
}
return result;
}
// note: we do NOT return null -on purpose- if attribute isn't found
private string GetAttribute (XmlElement xel, string attribute)
{
XmlAttribute xa = xel.Attributes [attribute];
return ((xa != null) ? xa.InnerText : null);
}
public void LoadXml (XmlElement value)
{
if (value == null)
throw new ArgumentNullException ("value");
if ((value.LocalName != XmlSignature.ElementNames.Reference) || (value.NamespaceURI != XmlSignature.NamespaceURI))
throw new CryptographicException ();
id = GetAttribute (value, XmlSignature.AttributeNames.Id);
uri = GetAttribute (value, XmlSignature.AttributeNames.URI);
type = GetAttribute (value, XmlSignature.AttributeNames.Type);
// Note: order is important for validations
XmlNodeList xnl = value.GetElementsByTagName (XmlSignature.ElementNames.Transform);
if ((xnl != null) && (xnl.Count > 0)) {
Transform t = null;
foreach (XmlNode xn in xnl) {
string a = GetAttribute ((XmlElement)xn, XmlSignature.AttributeNames.Algorithm);
switch (a) {
case "http://www.w3.org/2000/09/xmldsig#base64":
t = new XmlDsigBase64Transform ();
break;
case "http://www.w3.org/TR/2001/REC-xml-c14n-20010315":
t = new XmlDsigC14NTransform ();
break;
case "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":
t = new XmlDsigC14NWithCommentsTransform ();
break;
case "http://www.w3.org/2000/09/xmldsig#enveloped-signature":
t = new XmlDsigEnvelopedSignatureTransform ();
break;
case "http://www.w3.org/TR/1999/REC-xpath-19991116":
t = new XmlDsigXPathTransform ();
break;
case "http://www.w3.org/TR/1999/REC-xslt-19991116":
t = new XmlDsigXsltTransform ();
break;
default:
throw new NotSupportedException ();
}
AddTransform (t);
}
}
// get DigestMethod
DigestMethod = GetAttributeFromElement (value, XmlSignature.AttributeNames.Algorithm, XmlSignature.ElementNames.DigestMethod);
// get DigestValue
xnl = value.GetElementsByTagName (XmlSignature.ElementNames.DigestValue);
if ((xnl != null) && (xnl.Count > 0)) {
DigestValue = Convert.FromBase64String (xnl[0].InnerText);
}
}
}
}
@@ -1,74 +0,0 @@
//
// ReferenceList.cs: Handles WS-Security ReferenceList
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Collections;
using System.Security.Cryptography.Xml;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
public class ReferenceList : IXmlElement {
private ArrayList list;
public ReferenceList ()
{
list = new ArrayList ();
}
public ReferenceList (XmlElement element) : this ()
{
LoadXml (element);
}
public void Add (string reference)
{
if (reference == null)
throw new ArgumentNullException ("reference");
list.Add (reference);
}
public bool Contains (string reference)
{
if (reference == null)
throw new ArgumentNullException ("reference");
return list.Contains (reference);
}
public IEnumerator GetEnumerator()
{
return list.GetEnumerator ();
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// TODO
return null;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != "") || (element.NamespaceURI != ""))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -1,107 +0,0 @@
//
// Security.cs: Handles WS-Security Security
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public class Security : SoapHeader, IXmlElement {
private static string SoapActor = "actor"; // not Actor - no capital A
private static string SoapNamespaceURI = "http://www.w3.org/2001/12/soap-envelope";
private SecurityElementCollection elems;
private SecurityTokenCollection tokens;
public Security (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
Actor = actor;
}
public Security (XmlElement element)
{
LoadXml (element);
}
public SecurityElementCollection Elements {
get { return elems; }
}
public SecurityTokenCollection Tokens {
get { return tokens; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// much cleaner than using StringBuilder!
XmlElement xel = document.CreateElement (WSSecurity.Prefix, WSSecurity.ElementNames.Security, WSSecurity.NamespaceURI);
xel.SetAttribute (SoapActor, SoapNamespaceURI, Actor);
foreach (ISecurityElement se in Elements) {
if (se is Signature) {
// TODO
}
else if (se is EncryptedData) {
xel.AppendChild ((se as EncryptedData).GetXml (document));
}
}
foreach (SecurityToken st in Tokens)
xel.AppendChild (st.GetXml (document));
return xel;
}
// base class doesn't have a LoadXml method
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.Security) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// get attributes
XmlAttribute xa = element.Attributes [SoapActor, SoapNamespaceURI];
Actor = ((xa == null) ? null : xa.Value);
Elements.Clear ();
Tokens.Clear ();
foreach (XmlNode xn in element.ChildNodes) {
XmlElement xel = (XmlElement) xn;
switch (xn.NamespaceURI) {
case WSSecurity.NamespaceURI:
switch (xn.LocalName) {
case WSSecurity.ElementNames.UsernameToken:
UsernameToken unt = new UsernameToken (xel);
Tokens.Add (unt);
break;
case WSSecurity.ElementNames.BinarySecurityToken:
//FIXME BinarySecurityToken bst = new BinarySecurityToken (xel);
//FIXME Tokens.Add (bst);
break;
}
break;
}
}
}
}
}
@@ -1,112 +0,0 @@
//
// SecurityCollection.cs: Handles WS-Security SecurityCollection
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Security {
public class SecurityCollection : ICollection, IEnumerable {
private ArrayList list;
public SecurityCollection ()
{
list = new ArrayList ();
}
public int Count {
get { return list.Count; }
}
public bool IsSynchronized {
get { return list.IsSynchronized; }
}
public Security this [Uri actor] {
get {
if (actor == null)
throw new ArgumentNullException ("actor");
return null;
}
}
public Security this [string actor] {
get {
if (actor == null)
throw new ArgumentNullException ("actor");
return null;
}
}
public object SyncRoot {
get { return list.SyncRoot; }
}
public void Add (Security security)
{
// note: doc says it not ArgumentNullException
if (security == null)
throw new ArgumentException ("security");
if (list.Contains (security))
throw new ArgumentException ("duplicate");
list.Add (security);
}
public void Clear ()
{
list.Clear ();
}
public bool Contains (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
return false;
}
public bool Contains (Uri actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
return false;
}
public void CopyTo (Array array, int index)
{
if (array == null)
throw new ArgumentNullException ("array");
}
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
public void Remove (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
}
public void Remove (Uri actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
}
}
}
@@ -1,77 +0,0 @@
//
// SecurityElementCollection.cs: Handles WS-Security SecurityElementCollection
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Security {
public class SecurityElementCollection : ICollection, IEnumerable {
private ArrayList list;
public SecurityElementCollection ()
{
list = new ArrayList ();
}
public int Count {
get { return list.Count; }
}
public bool IsSynchronized {
get { return list.IsSynchronized; }
}
public ISecurityElement this [int index] {
get { return (ISecurityElement) list [index]; }
}
public object SyncRoot {
get { return list.SyncRoot; }
}
public void Add (ISecurityElement element)
{
list.Add (element);
}
public void Clear ()
{
list.Clear ();
}
public void CopyTo (Array array, int index)
{
if (array == null)
throw new ArgumentNullException ("array");
list.CopyTo (array, index);
}
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
public void Remove (ISecurityElement element)
{
if (element == null)
throw new ArgumentNullException ("element");
list.Remove (element);
}
}
}
@@ -1,29 +0,0 @@
//
// SecurityFault.cs: Undocument exception when a security fault happens
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Security {
internal class SecurityFault : SoapHeaderException {
public SecurityFault (string message, XmlQualifiedName code) : base (message, code) {}
}
}
@@ -1,30 +0,0 @@
//
// SecurityFormatException.cs:
// Implements SecurityFormatException Exception
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Web.Services.Protocols;
namespace Microsoft.Web.Services.Security {
[Serializable]
public class SecurityFormatException : SoapHeaderException {
public SecurityFormatException (string message) : base (message, null) {}
}
}
@@ -1,34 +0,0 @@
//
// SecurityInputFilter.cs: Security SOAP Input Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
namespace Microsoft.Web.Services.Security {
public class SecurityInputFilter : SoapInputFilter {
public SecurityInputFilter () {}
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
Loaded 100 of 747 files, more files were not shown because too many files have changed in this diff. Show more