~ubuntu-branches/ubuntu/edgy/freeradius/edgy-updates

« back to all changes in this revision

Viewing changes to src/modules/rlm_otp/otp.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremie Corbier
  • Date: 2006-07-08 19:41:05 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708194105-2dabtaxd16o7p90g
Tags: 1.1.2-2ubuntu1
* Merge from debian unstable.
* Remove previous patches merged upstream:
  - 14_freeradius-dictionary-fix.dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * otp.h
3
 
 * $Id: otp.h,v 1.28.2.2 2006/01/11 15:50:15 nbk Exp $
 
3
 * $Id: otp.h,v 1.28.2.6 2006/03/29 19:22:00 fcusack Exp $
4
4
 *
5
5
 *   This program is free software; you can redistribute it and/or modify
6
6
 *   it under the terms of the GNU General Public License as published by
14
14
 *
15
15
 *   You should have received a copy of the GNU General Public License
16
16
 *   along with this program; if not, write to the Free Software
17
 
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18
18
 *
19
19
 * Copyright 2001-2005 Google, Inc.
20
 
 * Copyright 2005 TRI-D Systems, Inc.
 
20
 * Copyright 2005,2006 TRI-D Systems, Inc.
21
21
 */
22
22
 
23
23
#ifndef OTP_H
89
89
  int ewindow_size;     /* sync mode event window size (right side value)  */
90
90
  int rwindow_size;     /* softfail override event window size             */
91
91
  int rwindow_delay;    /* softfail override max time delay                */
 
92
  int site_transform;   /* apply site transform to challenge? (undoc)      */
92
93
  int debug;            /* print debug info?                               */
93
94
#if defined(FREERADIUS)
94
95
  /* freeradius-specific items */
101
102
#elif defined(PAM)
102
103
  /* PAM specific items */
103
104
  char *fast_prompt;    /* fast mode prompt                                */
 
105
  int useauthtok;       /* use_first_pass                                  */
104
106
#endif
105
107
} otp_option_t;
106
108
 
178
180
/* otp_hotp.c */
179
181
extern int otp_hotp_mac(const unsigned char [8], unsigned char [7],
180
182
                        const unsigned char [OTP_MAX_KEY_LEN], size_t,
181
 
                        const char *);
 
183
                        int, const char *);
182
184
 
183
185
/* otp_util.c */
184
186
/* Character maps for generic hex and vendor specific decimal modes */