mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-19 10:01:24 +00:00
Fixup bad checks in previous update
This commit is contained in:
parent
1f54bdf600
commit
d28d019bb5
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-11-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcCommand.m:
|
||||
Fix a few incorrect checks for TLS certificate presence.
|
||||
|
||||
2022-11-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Control.plist:
|
||||
|
|
|
@ -1501,6 +1501,12 @@ valgrindLog(NSString *name)
|
|||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"invalid ServerOptionsForTLS"];
|
||||
}
|
||||
g = [conf objectForKey: @"OptionsForTLS"];
|
||||
if (g && NO == [g isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"invalid OptionsForTLS"];
|
||||
}
|
||||
|
||||
if (nil == g && nil == c && nil == s)
|
||||
{
|
||||
|
@ -1549,7 +1555,7 @@ valgrindLog(NSString *name)
|
|||
GSTLSCertificateKeyFile];
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (s)
|
||||
{
|
||||
if (nil == [s objectForKey: GSTLSCertificateFile])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue