Check-in [81acda317b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Move the prototype for platform_get_x11_auth() from x11fwd.c to ssh.h so that it can be checked against the implementation.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 81acda317b22101b716f7328889b64f9bc4f75c1
User & Date: ben 2003-01-11 08:20:00.000
Context
2003-01-11
11:31
When polling MacTCP connections, check the connection state and if the far end has sent a FIN pass that up to the plug. TODO: handle less graceful connection closures. check-in: 0f347a7892 user: ben tags: trunk
08:20
Move the prototype for platform_get_x11_auth() from x11fwd.c to ssh.h so that it can be checked against the implementation. check-in: 81acda317b user: ben tags: trunk
08:08
Add a cast for a char * vs unsigned char * conflict. check-in: 2fb4a2e5b1 user: ben tags: trunk
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to ssh.h.
271
272
273
274
275
276
277




278
279
280
281
282
283
284
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288







+
+
+
+







extern int x11_send(Socket, char *, int);
extern void *x11_invent_auth(char *, int, char *, int);
extern void x11_unthrottle(Socket s);
extern void x11_override_throttle(Socket s, int enable);
extern int x11_get_screen_number(char *display);
void x11_get_real_auth(void *authv, char *display);

/* Platfdorm-dependent X11 function */
extern void platform_get_x11_auth(char *display, int *proto,
                                  unsigned char *data, int *datalen);

Bignum copybn(Bignum b);
Bignum bn_power_2(int n);
void bn_restore_invariant(Bignum b);
Bignum bignum_from_long(unsigned long n);
void freebn(Bignum b);
Bignum modpow(Bignum base, Bignum exp, Bignum mod);
Bignum modmul(Bignum a, Bignum b, Bignum mod);
Changes to x11fwd.c.
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
58
59
60
61
62
63
64



65
66
67
68
69
70
71







-
-
-








struct X11Auth {
    unsigned char fakedata[64], realdata[64];
    int fakeproto, realproto;
    int fakelen, reallen;
};

extern void platform_get_x11_auth(char *display, int *proto,
                                  unsigned char *data, int *datalen);

struct X11Private {
    const struct plug_function_table *fn;
    /* the above variable absolutely *must* be the first in this structure */
    unsigned char firstpkt[12];	       /* first X data packet */
    struct X11Auth *auth;
    char *auth_protocol;
    unsigned char *auth_data;