diff options
author | Richard Levitte <levitte@openssl.org> | 2000-02-21 00:43:02 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-02-21 00:43:02 +0100 |
commit | d3442bc780473f0cd4f378bc31130d4579da640b (patch) | |
tree | a9e0e2f1ba5080829e22783c739a9cacaa95ebd5 /ssl/t1_lib.c | |
parent | Workaround for irrelevant problem. (diff) | |
download | openssl-d3442bc780473f0cd4f378bc31130d4579da640b.tar.xz openssl-d3442bc780473f0cd4f378bc31130d4579da640b.zip |
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.
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 531969b421..ca6c03d5af 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -101,6 +101,9 @@ static SSL_METHOD TLSv1_data= { ssl_bad_method, tls1_default_timeout, &TLSv1_enc_data, + ssl_undefined_function, + ssl3_callback_ctrl, + ssl3_ctx_callback_ctrl, }; static long tls1_default_timeout(void) @@ -138,4 +141,9 @@ long tls1_ctrl(SSL *s, int cmd, long larg, char *parg) { return(0); } + +long tls1_callback_ctrl(SSL *s, int cmd, void *(*fp)()) + { + return(0); + } #endif |