From b67d1c3350cb5ebce3d8cc42491ccf21a0e2e482 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 14 Feb 2018 16:32:06 +0000 Subject: Start providing parts of the OpenSSL 1.1 API. This will ease the burden on ports and others trying to make software work with LibreSSL, while avoiding #ifdef mazes. Note that we are not removing 1.0.1 API or making things opaque, hence software written to use the older APIs will continue to work, as will software written to use the 1.1 API (as more functionality become available). Discussed at length with deraadt@ and others. --- src/lib/libcrypto/cversion.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/cversion.c') diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index 7ffa80ec26..b8b1a22a8a 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cversion.c,v 1.15 2014/07/11 11:42:28 jsing Exp $ */ +/* $OpenBSD: cversion.c,v 1.16 2018/02/14 16:32:06 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -84,3 +84,15 @@ SSLeay(void) { return (SSLEAY_VERSION_NUMBER); } + +const char * +OpenSSL_version(int t) +{ + return SSLeay_version(t); +} + +unsigned long +OpenSSL_version_num(void) +{ + return SSLeay(); +} -- cgit v1.2.3-55-g6feb