'#if OPENSSL_VERSION_NUMBER >= ...' to document the recent change

This commit is contained in:
Bodo Möller 2002-03-05 09:07:16 +00:00
parent a08ee55e2d
commit 93683c3cf8

View File

@ -1,7 +1,7 @@
/* -*- Mode: C; c-file-style: "bsd" -*- */ /* -*- Mode: C; c-file-style: "bsd" -*- */
/* /*
* easy-tls.c -- generic TLS proxy. * easy-tls.c -- generic TLS proxy.
* $Id: easy-tls.c,v 1.3 2002/02/28 10:52:01 bodo Exp $ * $Id: easy-tls.c,v 1.4 2002/03/05 09:07:16 bodo Exp $
*/ */
/* /*
(c) Copyright 1999 Bodo Moeller. All rights reserved. (c) Copyright 1999 Bodo Moeller. All rights reserved.
@ -73,7 +73,7 @@
*/ */
static char const rcsid[] = static char const rcsid[] =
"$Id: easy-tls.c,v 1.3 2002/02/28 10:52:01 bodo Exp $"; "$Id: easy-tls.c,v 1.4 2002/03/05 09:07:16 bodo Exp $";
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
@ -567,8 +567,13 @@ no_passphrase_callback(char *buf, int num, int w, void *arg)
return -1; return -1;
} }
#if OPENSSL_VERSION_NUMBER >= 0x00907000L
static int static int
verify_dont_fail_cb(X509_STORE_CTX *c, void *unused_arg) verify_dont_fail_cb(X509_STORE_CTX *c, void *unused_arg)
#else
static int
verify_dont_fail_cb(X509_STORE_CTX *c)
#endif
{ {
int i; int i;