From d3442bc780473f0cd4f378bc31130d4579da640b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 20 Feb 2000 23:43:02 +0000 Subject: Move the registration of callback functions to special functions designed for that. This removes the potential error to mix data and function pointers. Please note that I'm a little unsure how incorrect calls to the old ctrl functions should be handled, in som cases. I currently return 0 and that's it, but it may be more correct to generate a genuine error in those cases. --- ssl/ssl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssl/ssl.h') diff --git a/ssl/ssl.h b/ssl/ssl.h index 6f31992e5d..040304b774 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -210,6 +210,8 @@ typedef struct ssl_method_st long (*get_timeout)(void); struct ssl3_enc_method *ssl3_enc; /* Extra SSLv3/TLS stuff */ int (*ssl_version)(); + long (*ssl_callback_ctrl)(SSL *s, int cb_id, void (*fp)()); + long (*ssl_ctx_callback_ctrl)(SSL_CTX *s, int cb_id, void (*fp)()); } SSL_METHOD; /* Lets make this into an ASN.1 type structure as follows -- cgit v1.2.3