mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
76374ef352
commit
7eb717ffea
4 changed files with 48 additions and 4 deletions
|
@ -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 />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue