diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-09-07 15:43:47 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-09-07 15:43:47 +0400 |
commit | 2cccd84c63dd96b321bc4a04ece1735fe9bbe317 (patch) | |
tree | cea2feb949e6c4431d972984fdb180835085dd14 /mcs | |
parent | fb034cbc9499c34476d3ade5af6d715077fbb9e9 (diff) |
2004-09-07 Sebastien Pouliot <sebastien@ximian.com>
* X509Chain.cs: Fixed a bug when constructing a certificate chain from
a collection (endless loop). Fixed bug when Reset-ing an empty chain.
svn path=/trunk/mcs/; revision=33493
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/Mono.Security/Mono.Security.X509/ChangeLog | 5 | ||||
-rwxr-xr-x | mcs/class/Mono.Security/Mono.Security.X509/X509Chain.cs | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog b/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog index 2fcbbaee834..efbd6db684b 100644 --- a/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog +++ b/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog @@ -1,3 +1,8 @@ +2004-09-07 Sebastien Pouliot <sebastien@ximian.com> + + * X509Chain.cs: Fixed a bug when constructing a certificate chain from + a collection (endless loop). Fixed bug when Reset-ing an empty chain. + 2004-08-10 Sebastien Pouliot <sebastien@ximian.com> * X509Store.cs: Now returns empty collection/list for certificates/ diff --git a/mcs/class/Mono.Security/Mono.Security.X509/X509Chain.cs b/mcs/class/Mono.Security/Mono.Security.X509/X509Chain.cs index 254ff1b70fa..f8035e6c661 100755 --- a/mcs/class/Mono.Security/Mono.Security.X509/X509Chain.cs +++ b/mcs/class/Mono.Security/Mono.Security.X509/X509Chain.cs @@ -9,9 +9,7 @@ // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) -// (C) 2004 Novell (http://www.novell.com) -// - +// Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -134,7 +132,7 @@ namespace Mono.Security.X509 { tmp = FindCertificateParent (x); if (x != null) { _chain.Add (x); - tmp = x; // last valid + x = tmp; // last valid } } // find a trusted root @@ -191,7 +189,8 @@ namespace Mono.Security.X509 { _status = X509ChainStatusFlags.NoError; roots = null; // this force a reload certs.Clear (); - _chain.Clear (); + if (_chain != null) + _chain.Clear (); } // private stuff |