1 /*                                  Network News Transfer protocol module for the WWW library
2                                           HTNEWS
3 
4  */
5 /* History:
6  *      26 Sep 90       Written TBL in Objective-C
7  *      29 Nov 91       Downgraded to C, for portable implementation.
8  */
9 
10 #ifndef HTNEWS_H
11 #define HTNEWS_H
12 
13 #include <HTAccess.h>
14 #include <HTAnchor.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19     extern int HTNewsChunkSize;
20     extern int HTNewsMaxChunk;
21 
22 #ifdef GLOBALREF_IS_MACRO
23     extern GLOBALREF (HTProtocol, HTNews);
24     extern GLOBALREF (HTProtocol, HTNNTP);
25     extern GLOBALREF (HTProtocol, HTNewsPost);
26     extern GLOBALREF (HTProtocol, HTNewsReply);
27     extern GLOBALREF (HTProtocol, HTSNews);
28     extern GLOBALREF (HTProtocol, HTSNewsPost);
29     extern GLOBALREF (HTProtocol, HTSNewsReply);
30 
31 #else
32     GLOBALREF HTProtocol HTNews;
33     GLOBALREF HTProtocol HTNNTP;
34     GLOBALREF HTProtocol HTNewsPost;
35     GLOBALREF HTProtocol HTNewsReply;
36     GLOBALREF HTProtocol HTSNews;
37     GLOBALREF HTProtocol HTSNewsPost;
38     GLOBALREF HTProtocol HTSNewsReply;
39 #endif				/* GLOBALREF_IS_MACRO */
40 
41     extern void HTSetNewsHost(const char *value);
42     extern const char *HTGetNewsHost(void);
43     extern char *HTNewsHost;
44 
45     extern void HTClearNNTPAuthInfo(void);
46 
47 #ifdef USE_SSL
48     extern SSL_CTX *ssl_ctx;
49 
50     extern int HTNewsProxyConnect(int sock,
51 				  const char *url,
52 				  HTParentAnchor *anAnchor,
53 				  HTFormat format_out,
54 				  HTStream *sink);
55 #endif
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif				/* HTNEWS_H */
61