summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cversion.c
diff options
context:
space:
mode:
authorjsing <>2018-02-14 16:32:06 +0000
committerjsing <>2018-02-14 16:32:06 +0000
commitb67d1c3350cb5ebce3d8cc42491ccf21a0e2e482 (patch)
tree2bef41e0dead5333cbb82a36a9651fa52e970550 /src/lib/libcrypto/cversion.c
parentbadad72c27155e042a4ba77f179c0771b373d3fa (diff)
downloadopenbsd-b67d1c3350cb5ebce3d8cc42491ccf21a0e2e482.tar.gz
openbsd-b67d1c3350cb5ebce3d8cc42491ccf21a0e2e482.tar.bz2
openbsd-b67d1c3350cb5ebce3d8cc42491ccf21a0e2e482.zip
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.
Diffstat (limited to 'src/lib/libcrypto/cversion.c')
-rw-r--r--src/lib/libcrypto/cversion.c14
1 files changed, 13 insertions, 1 deletions
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 @@
1/* $OpenBSD: cversion.c,v 1.15 2014/07/11 11:42:28 jsing Exp $ */ 1/* $OpenBSD: cversion.c,v 1.16 2018/02/14 16:32:06 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -84,3 +84,15 @@ SSLeay(void)
84{ 84{
85 return (SSLEAY_VERSION_NUMBER); 85 return (SSLEAY_VERSION_NUMBER);
86} 86}
87
88const char *
89OpenSSL_version(int t)
90{
91 return SSLeay_version(t);
92}
93
94unsigned long
95OpenSSL_version_num(void)
96{
97 return SSLeay();
98}