imc: get_default_pwd_status(), as it currently is, works on Windows too
authorTobias Brunner <tobias@strongswan.org>
Wed, 19 Aug 2015 10:10:09 +0000 (12:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 19 Aug 2015 10:10:09 +0000 (12:10 +0200)
This fixes the build on Windows.

src/libimcv/imc/imc_os_info.c

index e0579b4..0a094eb 100644 (file)
@@ -90,6 +90,14 @@ METHOD(imc_os_info_t, get_version, chunk_t,
        return this->version;
 }
 
+METHOD(imc_os_info_t, get_default_pwd_status, bool,
+       private_imc_os_info_t *this)
+{
+       /* As an option the default password status can be configured manually */
+       return lib->settings->get_bool(lib->settings,
+                                       "%s.imcv.os_info.default_password_enabled", FALSE, lib->ns);
+}
+
 #ifdef WIN32
 
 METHOD(imc_os_info_t, get_fwd_status, os_fwd_status_t,
@@ -196,14 +204,6 @@ METHOD(imc_os_info_t, get_fwd_status, os_fwd_status_t,
        return fwd_status;
 }
 
-METHOD(imc_os_info_t, get_default_pwd_status, bool,
-       private_imc_os_info_t *this)
-{
-       /* As an option the default password status can be configured manually */
-       return lib->settings->get_bool(lib->settings,
-                                       "%s.imcv.os_info.default_password_enabled", FALSE, lib->ns);
-}
-
 METHOD(imc_os_info_t, get_uptime, time_t,
        private_imc_os_info_t *this)
 {