diff options
| author | Theodore Tso <tytso@mit.edu> | 1992-09-24 23:12:55 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1992-09-24 23:12:55 +0000 |
| commit | c16525ca812975bfa23f7cbe96c5e7f598a507d4 (patch) | |
| tree | 10917a5b5ee5636370860315010e2efbed5619ca /src/include | |
| parent | 568dd58d114c880275a83fd1be9451507619c0ca (diff) | |
| download | krb5-c16525ca812975bfa23f7cbe96c5e7f598a507d4.tar.gz krb5-c16525ca812975bfa23f7cbe96c5e7f598a507d4.tar.xz krb5-c16525ca812975bfa23f7cbe96c5e7f598a507d4.zip | |
Added Sandia changes; password phrase changes, and FD_SET macros
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2390 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/krb5.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/krb5/krb5.h b/src/include/krb5/krb5.h index f0370f366..efd6fade7 100644 --- a/src/include/krb5/krb5.h +++ b/src/include/krb5/krb5.h @@ -248,4 +248,25 @@ typedef struct _krb5_priv_enc_part { #include <krb5/func-proto.h> #include <krb5/free.h> +/* This is from Sandia */ +#ifndef FD_SET +#define FD_SETSIZE (sizeof (fd_set) * 8) + +#define FD_SET(f,s) ((s)->fds_bits[0] |= (1 << (f))) +#define FD_CLR(f,s) ((s)->fds_bits[0] &= ~(1 << (f))) +#define FD_ISSET(f,s) ((s)->fds_bits[0] & (1 << (f))) +#define FD_ZERO(s) ((s)->fds_bits[0] = 0) +#endif + +/* Sandia password generation structures */ +typedef struct _passwd_phrase_element { + krb5_data *passwd; + krb5_data *phrase; +} passwd_phrase_element; + +typedef struct _krb5_pwd_data { + int sequence_count; + passwd_phrase_element **element; +} krb5_pwd_data; + #endif /* KRB5_GENERAL__ */ |
