2013-12-02 16:20:26 -05:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
|
|
|
/*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
2015-11-23 17:47:00 +01:00
|
|
|
* Copyright 2013 - 2015 Red Hat, Inc.
|
2013-12-02 16:20:26 -05:00
|
|
|
*/
|
|
|
|
|
|
2015-11-23 17:47:00 +01:00
|
|
|
#ifndef __NM_VPN_HELPERS_H__
|
|
|
|
|
#define __NM_VPN_HELPERS_H__
|
2013-12-02 16:20:26 -05:00
|
|
|
|
2015-05-26 11:10:12 +02:00
|
|
|
#include <NetworkManager.h>
|
2013-12-02 16:20:26 -05:00
|
|
|
|
2015-07-17 14:38:54 +02:00
|
|
|
#include "nm-default.h"
|
2015-04-06 16:42:31 -04:00
|
|
|
|
2015-11-27 11:09:20 +01:00
|
|
|
struct {
|
|
|
|
|
const char *name;
|
|
|
|
|
const char *ui_name;
|
|
|
|
|
} typedef VpnPasswordName;
|
|
|
|
|
|
2015-11-23 17:47:00 +01:00
|
|
|
GSList *nm_vpn_get_plugins (void);
|
2013-12-02 16:20:26 -05:00
|
|
|
|
2016-05-19 10:51:58 +02:00
|
|
|
const char **nm_vpn_get_plugin_names (gboolean only_available_plugins);
|
|
|
|
|
|
|
|
|
|
const char *nm_vpn_get_service_for_name (const char *name);
|
|
|
|
|
char * nm_vpn_get_service_for_name_default (const char *name);
|
|
|
|
|
|
2016-05-19 10:06:27 +02:00
|
|
|
NMVpnEditorPlugin *nm_vpn_lookup_plugin (const char *name, const char *service, GError **error);
|
2013-12-02 16:20:26 -05:00
|
|
|
|
2015-11-23 17:47:00 +01:00
|
|
|
gboolean nm_vpn_supports_ipv6 (NMConnection *connection);
|
2013-12-02 16:20:26 -05:00
|
|
|
|
2015-11-27 11:09:20 +01:00
|
|
|
const VpnPasswordName * nm_vpn_get_secret_names (const char *vpn_type);
|
|
|
|
|
|
2015-12-11 21:47:27 +01:00
|
|
|
gboolean nm_vpn_openconnect_authenticate_helper (const char *host,
|
|
|
|
|
char **cookie,
|
|
|
|
|
char **gateway,
|
|
|
|
|
char **gwcert,
|
|
|
|
|
int *status,
|
|
|
|
|
GError **error);
|
|
|
|
|
|
2015-11-23 17:47:00 +01:00
|
|
|
#endif /* __NM_VPN_HELPERS_H__ */
|