summaryrefslogtreecommitdiffstats
path: root/tun.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-13 09:44:10 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-13 09:44:10 +0000
commit5f31881ec189f02297b961c990c471568f25dbde (patch)
tree75d2fa3cb8741730afadf9da2ba2fb03b225eff9 /tun.c
parent2c21891ec156adc304f4012343d75808a1036d0f (diff)
downloadopenvpn-5f31881ec189f02297b961c990c471568f25dbde.tar.gz
openvpn-5f31881ec189f02297b961c990c471568f25dbde.tar.xz
openvpn-5f31881ec189f02297b961c990c471568f25dbde.zip
New try at AUTO_USERID.
Implemented AUTO_USERID using MD5(MAC address(primary network adapter)). Currently implemented for Linux and Windows. Basically if ENABLE_AUTO_USERID is defined, the --auth-user-pass option will not prompt for username/password, but will rather generate a unique username and blank password. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1459 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun.c b/tun.c
index f0c2d49..e305ee9 100644
--- a/tun.c
+++ b/tun.c
@@ -2505,7 +2505,7 @@ get_interface_info (DWORD index, struct gc_arena *gc)
* IP_ADAPTER_INFO structure for that adapter.
*/
-static const IP_ADAPTER_INFO *
+const IP_ADAPTER_INFO *
get_adapter (const IP_ADAPTER_INFO *ai, DWORD index)
{
if (ai && index != (DWORD)~0)