Skip to content
Snippets Groups Projects
Commit c5c79c57 authored by nbd's avatar nbd
Browse files

openvpn: replace polarssl run-time version check with a compile-time one


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45608 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 2fea10b9
No related branches found
No related tags found
No related merge requests found
--- a/src/openvpn/ssl_polarssl.c
+++ b/src/openvpn/ssl_polarssl.c
@@ -1119,7 +1119,7 @@ const char *
get_ssl_library_version(void)
{
static char polar_version[30];
- unsigned int pv = version_get_number();
+ unsigned int pv = POLARSSL_VERSION_NUMBER;
sprintf( polar_version, "PolarSSL %d.%d.%d",
(pv>>24)&0xff, (pv>>16)&0xff, (pv>>8)&0xff );
return polar_version;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment