summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libssh2/src/version.c')
-rw-r--r--libs/libssh2/src/version.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/libssh2/src/version.c b/libs/libssh2/src/version.c
index 408f83a398..d32ae64ae0 100644
--- a/libs/libssh2/src/version.c
+++ b/libs/libssh2/src/version.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 2009 Daniel Stenberg. All rights reserved.
+/* Copyright (C) Daniel Stenberg
+ * All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
@@ -33,18 +34,11 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
+ * SPDX-License-Identifier: BSD-3-Clause
*/
#include "libssh2_priv.h"
-/*
- libssh2_version() can be used like this:
-
- if (!libssh2_version(LIBSSH2_VERSION_NUM)) {
- fprintf (stderr, "Runtime libssh2 version too old!\n");
- exit(1);
- }
-*/
LIBSSH2_API
const char *libssh2_version(int req_version_num)
{
@@ -52,3 +46,9 @@ const char *libssh2_version(int req_version_num)
return LIBSSH2_VERSION;
return NULL; /* this is not a suitable library! */
}
+
+LIBSSH2_API
+libssh2_crypto_engine_t libssh2_crypto_engine(void)
+{
+ return LIBSSH2_CRYPTO_ENGINE;
+}