aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-01-11 13:37:38 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-11 22:19:21 (GMT)
commita16514516b984b05425bb687b4c97c8db7ff2553 (patch)
tree62de1a7c6e358848088a27469d49f9866c9ad6df /hostapd/ctrl_iface.c
parentc3bb84b41535dbb076e90776e5755cc1a3d27ff1 (diff)
downloadhostap-a16514516b984b05425bb687b4c97c8db7ff2553.zip
hostap-a16514516b984b05425bb687b4c97c8db7ff2553.tar.gz
hostap-a16514516b984b05425bb687b4c97c8db7ff2553.tar.bz2
Add "GET tls_library" to provide information on TLS library and version
This new wpa_supplicant and hostapd control interface command can be used to determine which TLS library is used in the build and what is the version of that library. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/ctrl_iface.c')
-rw-r--r--hostapd/ctrl_iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index a7235a4..bef16b1 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -23,6 +23,7 @@
#include "utils/eloop.h"
#include "common/version.h"
#include "common/ieee802_11_defs.h"
+#include "crypto/tls.h"
#include "drivers/driver.h"
#include "radius/radius_client.h"
#include "radius/radius_server.h"
@@ -1326,6 +1327,11 @@ static int hostapd_ctrl_iface_get(struct hostapd_data *hapd, char *cmd,
if (os_snprintf_error(buflen, res))
return -1;
return res;
+ } else if (os_strcmp(cmd, "tls_library") == 0) {
+ res = tls_get_library_version(buf, buflen);
+ if (os_snprintf_error(buflen, res))
+ return -1;
+ return res;
}
return -1;