Move the registration of callback functions to special functions
authorRichard Levitte <levitte@openssl.org>
Sun, 20 Feb 2000 23:43:02 +0000 (23:43 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 20 Feb 2000 23:43:02 +0000 (23:43 +0000)
commitd3442bc780473f0cd4f378bc31130d4579da640b
treea9e0e2f1ba5080829e22783c739a9cacaa95ebd5
parentdab6f09573742df94c4767663565aca3863f8173
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.
28 files changed:
crypto/bio/bf_buff.c
crypto/bio/bf_nbio.c
crypto/bio/bf_null.c
crypto/bio/bio.h
crypto/bio/bio_lib.c
crypto/bio/bss_acpt.c
crypto/bio/bss_bio.c
crypto/bio/bss_conn.c
crypto/bio/bss_file.c
crypto/bio/bss_log.c
crypto/bio/bss_mem.c
crypto/bio/bss_null.c
crypto/bio/bss_rtcp.c
crypto/bio/bss_sock.c
crypto/comp/comp.h
crypto/evp/bio_b64.c
crypto/evp/bio_enc.c
crypto/evp/bio_md.c
crypto/evp/bio_ok.c
crypto/pkcs7/bio_ber.c
ssl/bio_ssl.c
ssl/s23_lib.c
ssl/s2_lib.c
ssl/s3_lib.c
ssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c