Avoid memory leaks by implementing hash and isEqual: for credentials

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23088 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-06-19 15:37:50 +00:00
parent 76374ef352
commit 7eb717ffea
4 changed files with 48 additions and 4 deletions

View file

@ -72,6 +72,13 @@ typedef enum {
password: (NSString *)password
persistence: (NSURLCredentialPersistence)persistence;
/**
* Tests two credentials for equality ... credentials are considered to
* be equal if their -user methods return the same value, since you cannot
* have more than one credential for a suser within an [NSURLProtectionSpace].
*/
- (BOOL) isEqual: (id)other;
/**
* Returns the password for the receiver.<br />
* May require prompting of the user to authorize retrieval.<br />