/[radius]/radius/include/radius.h
ViewVC logotype

Diff of /radius/include/radius.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.63 by gray, Fri Oct 31 09:16:17 2003 UTC revision 1.64 by gray, Sat Nov 1 13:43:19 2003 UTC
# Line 101  enum { Line 101  enum {
101  #define MAX_LONGNAME  256  #define MAX_LONGNAME  256
102  #define MAX_SHORTNAME 32  #define MAX_SHORTNAME 32
103    
104    /* Attribute flags and properties:
105    
106        0                   1                   2                   3
107        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
108       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
109       | A | E |  P  | | LHS | RHS |     USER FLAGS    |               |
110       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
111    
112       A - Additivity bits
113       E - Encryption bits
114       P - Property flags
115       LHS - Syntax flags for LHS
116       RHS - Syntax flags for RHS
117      
118       Bits 7 and 24-31 are unused */
119    
120  /* Attribute properties */  /* Attribute properties */
121  #define AP_ADD_REPLACE   0  #define AP_ADD_REPLACE   0
122  #define AP_ADD_APPEND    1  #define AP_ADD_APPEND    1
123  #define AP_ADD_NONE      2  #define AP_ADD_NONE      2
124    
125    /* Encryption bits */
126    #define AP_ENCRYPT_RFC2138 0x4 /* Encrypted per RFC 2138 */
127    #define AP_ENCRYPT_RFC2868 0x8 /* Encrypted per RFC 2868 */
128    
129    #define AP_ENCRYPT (AP_ENCRYPT_RFC2138|AP_ENCRYPT_RFC2868)
130    
131  #define AP_PROPAGATE     0x10 /* Propagate attribute through the proxy chain */  #define AP_PROPAGATE     0x10 /* Propagate attribute through the proxy chain */
132  #define AP_REQ_CMP       0x20 /* Not used */  #define AP_INTERNAL      0x20 /* Internal attribute. */
133  #define AP_BINARY_STRING 0x40 /* Binary string value. A special interpreter  #define AP_BINARY_STRING 0x40 /* Binary string value. No str..() functions
134                                   must be registered for this attribute */                                   should be used */
135  #define AP_INTERNAL      0x80 /* Internal attribute. */  
136  #define AP_USER_FLAG(n) (0x4000<<(n))  #define AP_USER_FLAG(n) (0x4000<<(n))
137    
138  #define ADDITIVITY(val) ((val) & 0x3)  #define ADDITIVITY(val) ((val) & 0x3)
# Line 420  void decrypt_password(char *password, VA Line 442  void decrypt_password(char *password, VA
442                        char *vector, char *secret);                        char *vector, char *secret);
443  void decrypt_password_broken(char *password, VALUE_PAIR *pair,  void decrypt_password_broken(char *password, VALUE_PAIR *pair,
444                               char *vector, char *secret);                               char *vector, char *secret);
445    void encrypt_tunnel_password(VALUE_PAIR *pair, u_char tag, char *password,
446                                 char *vector, char *secret);
447    void decrypt_tunnel_password(char *password, u_char *tag, VALUE_PAIR *pair,
448                                 char *vector, char *secret);
449    
450  /* gethost_r.c */  /* gethost_r.c */
451  struct hostent *rad_gethostbyname_r(const char *name, struct hostent *result,  struct hostent *rad_gethostbyname_r(const char *name, struct hostent *result,

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26