mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fall back to a sane default if the TLS priority setting is invalid.
This commit is contained in:
parent
ebbe3f9081
commit
cc50c639ae
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2019-10-29 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/GSTLS.m:
|
||||||
|
Fall back to a sane default if the TLS priority setting is invalid.
|
||||||
|
|
||||||
2019-10-28 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2019-10-28 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/GSSocketStream.m:
|
* Source/GSSocketStream.m:
|
||||||
|
|
|
@ -1771,7 +1771,13 @@ retrieve_callback(gnutls_session_t session,
|
||||||
/* By default we disable SSL3.0 as the 'POODLE' attack (Oct 2014)
|
/* By default we disable SSL3.0 as the 'POODLE' attack (Oct 2014)
|
||||||
* renders it insecure.
|
* renders it insecure.
|
||||||
*/
|
*/
|
||||||
gnutls_priority_set_direct(session, [str UTF8String], NULL);
|
const char *err_pos;
|
||||||
|
if (gnutls_priority_set_direct(session, [str UTF8String], &err_pos))
|
||||||
|
{
|
||||||
|
NSLog(@"Invalid GSTLSPriority: %s", err_pos);
|
||||||
|
NSLog(@"Falling back to NORMAL:-VERS-SSL3.0");
|
||||||
|
gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue