Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)

Tim Rice tim at multitalents.net
Wed Oct 31 07:00:40 EST 2001


On Tue, 30 Oct 2001, Damien Miller wrote:

> Can people try this patch?

Builds fine with 0.9.5a

>
> Index: defines.h
> ===================================================================
> RCS file: /var/cvs/openssh/defines.h,v
> retrieving revision 1.74
> diff -u -r1.74 defines.h
> --- defines.h	2001/10/30 02:50:40	1.74
> +++ defines.h	2001/10/30 11:23:51
> @@ -45,6 +45,7 @@
>  #include <unistd.h> /* For STDIN_FILENO, etc */
>  #include <termios.h> /* Struct winsize */
>  #include <fcntl.h> /* For O_NONBLOCK */
> +#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
>
>  /* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */
>  #ifdef HAVE_STRINGS_H
> @@ -448,6 +449,11 @@
>
>  #ifndef GETPGRP_VOID
>  # define getpgrp() getpgrp(0)
> +#endif
> +
> +/* OPENSSL_free() is only available in OpenSSL 0.9.6 onwards */
> +#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
> +# define OPENSSL_free(x) free(x)
>  #endif
>
>  /*
>
> -d
>
>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net






More information about the openssh-unix-dev mailing list