Fix build of smart_lock_linux sample when SECURE=0
@@ -414,8 +414,10 @@ main(void)
#ifdef OC_STORAGE
oc_storage_config("./smart_lock_creds");
- oc_set_random_pin_callback(random_pin_cb, NULL);
#endif /* OC_STORAGE */
+#ifdef OC_SECURITY
+ oc_set_random_pin_callback(random_pin_cb, NULL);
+#endif
oc_set_con_res_announced(false);
init = oc_main_init(&handler);
