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. --- crypto/bio/bss_mem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/bio/bss_mem.c') diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index d9a2280d8f..41eab92415 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -79,6 +79,7 @@ static BIO_METHOD mem_method= mem_ctrl, mem_new, mem_free, + NULL, }; /* bio->num is used to hold the value to return on 'empty', if it is -- cgit v1.2.3