~ubuntu-branches/ubuntu/precise/openvpn/precise-updates

« back to all changes in this revision

Viewing changes to misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-10-05 06:21:14 UTC
  • mfrom: (1.1.16 upstream) (10.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101005062114-18lyqud9e3p4g735
Tags: 2.1.3-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  + debian/openvpn.init.d:
    - Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    - Show per-VPN result messages.
    - Add "--script-security 2" by default for backwards compatablitiy
  + debian/control: Add lsb-base >= 3.2-14 to allow status_of_proc()

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *             packet encryption, packet authentication, and
6
6
 *             packet compression.
7
7
 *
8
 
 *  Copyright (C) 2002-2009 OpenVPN Technologies, Inc. <sales@openvpn.net>
 
8
 *  Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
9
9
 *
10
10
 *  This program is free software; you can redistribute it and/or modify
11
11
 *  it under the terms of the GNU General Public License version 2
263
263
#define GET_USER_PASS_NEED_OK       (1<<3)
264
264
#define GET_USER_PASS_NOFATAL       (1<<4)
265
265
#define GET_USER_PASS_NEED_STR      (1<<5)
 
266
#define GET_USER_PASS_PREVIOUS_CREDS_FAILED (1<<6)
266
267
 
267
268
bool get_user_pass (struct user_pass *up,
268
269
                    const char *auth_file,
269
270
                    const char *prefix,
270
271
                    const unsigned int flags);
271
272
 
 
273
void fail_user_pass (const char *prefix,
 
274
                     const unsigned int flags,
 
275
                     const char *reason);
 
276
 
272
277
void purge_user_pass (struct user_pass *up, const bool force);
273
278
 
274
279
/*