Revision 1785 trunk/nntpgrab_core/nntpconnection.c
| nntpconnection.c (revision 1785) | ||
|---|---|---|
| 1193 | 1193 |
return retval; |
| 1194 | 1194 |
} |
| 1195 | 1195 |
|
| 1196 |
#define GNUTLS_CHECK_VERSION(major,minor,micro) \ |
|
| 1197 |
(GNUTLS_VERSION_MAJOR > (major) || \ |
|
| 1198 |
(GNUTLS_VERSION_MAJOR == (major) && GNUTLS_VERSION_MINOR > (minor)) || \ |
|
| 1199 |
(GNUTLS_VERSION_MAJOR == (major) && GNUTLS_VERSION_MINOR == (minor) && \ |
|
| 1200 |
GNUTLS_VERSION_MICRO >= (micro))) |
|
| 1201 |
|
|
| 1196 | 1202 |
static gboolean |
| 1197 | 1203 |
prepare_gnutls_connection(NNTPConnectionInfo *conn, char **errmsg) |
| 1198 | 1204 |
{
|
| ... | ... | |
| 1212 | 1218 |
gnutls_init (&conn->ssl_session, GNUTLS_CLIENT); |
| 1213 | 1219 |
|
| 1214 | 1220 |
/* Use default priorities */ |
| 1221 |
#if GNUTLS_CHECK_VERSION(2,1,7) |
|
| 1215 | 1222 |
gnutls_priority_set_direct (conn->ssl_session, "PERFORMANCE:+ANON-DH:!ARCFOUR-128", NULL); |
| 1223 |
#endif |
|
| 1216 | 1224 |
|
| 1217 | 1225 |
/* put the anonymous credentials to the current session */ |
| 1218 | 1226 |
gnutls_certificate_allocate_credentials(&cred); |
Also available in: Unified diff
NNTPGrab

